npm中@polymer/paper-radio-button最新版本咨询及安装疑问
Hey there! I totally get your confusion here—let's clear this up right away.
The Root Cause
The paper-radio-button package you're installing (without the @polymer/ prefix) is a legacy Bower-era package that's no longer maintained. It was never updated beyond version 0.3.0 once Polymer moved its official elements to npm under the @polymer/ namespace.
The Fix
You need to install the official, actively maintained version of the element, which lives under the @polymer scope. Run this command instead:
npm install @polymer/paper-radio-button
Extra Steps (If Needed)
- If you already installed the outdated package first, uninstall it to avoid conflicts:
npm uninstall paper-radio-button - To verify you're getting the latest compatible version, you can check the current latest release with:
This should return a version that aligns with your Polymer 2.x setup (likely something like 2.1.1, which is the latest for Polymer 2 compatibility).npm show @polymer/paper-radio-button version
That's it! You'll now have the up-to-date, supported version of the paper radio button element.
内容的提问来源于stack exchange,提问作者alex island
相关产品推荐
相关产品推荐

