无法安装react-addons-transition-group
我在使用npm安装“react-addons-transition-group”时遇到了问题。 根据反应网站:
这些插件已经转移到了独立的软件包中:react-addons-clone-with-props,react-addons-create-fragment,react-addons-css-transition-group,react-addons-linked-state-mixin,react- addons-pure-render-mixin,react-addons-shallow-compare,react-addons-transition-group和react-addons-update,再加上ReactDOM.unstable_batchedUpdates在react-dom中。 – https://facebook.github.io/react/blog/2015/07/03/react-v0.14-beta-1.html
我努力了:
npm install react-addons-transition-group npm install react-addons-css-transition-group
但我得到:
npm ERR! notarget No compatible version found: react-addons-transition-group@'*' npm ERR! notarget Valid install targets: npm ERR! notarget ["0.14.0-beta1","0.14.0-beta2","0.14.0-beta3","0.14.0-rc1"] npm ERR! notarget npm ERR! notarget This is most likely not a problem with npm itself. npm ERR! notarget In most cases you or one of your dependencies are requesting npm ERR! notarget a package version that doesn't exist.
我在用:
"react": "^0.14.0-rc1", "react-dom": "0.14.0-rc1"
所以我不确定为什么会抛出错误。 0.14.0-rc1位于兼容版本的列表中。
我的npm版本是2.11.3和节点0.12.7
任何想法可能是什么原因造成的?
这个bug在npm@2.13.1
中npm@2.13.1
。 基本上, semver@4.3.5
修正了预发布满足*
semver范围的错误。 当npm@2.11.1
出现这个更新时,像react-addons-transition-group
这样的软件包,由于某种原因,只有预发行版,不能再通过npm
安装,除非你明确地告诉npm
安装哪个版本。
问题跟踪者票证是npm / npm#8855 。 更新npm
的指南可以在这里find 。