【发布时间】:2015-12-09 10:42:14
【问题描述】:
我在使用 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,以及 react-dom 中的 ReactDOM.unstable_batchedUpdates。 - 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
知道是什么原因造成的吗?
【问题讨论】:
标签: javascript node.js npm reactjs