admin管理员组

文章数量:1403443

I am having trouble installing the "react-addons-transition-group" using npm. According to the react website:

The addons have moved to separate packages as well: 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-pare, react-addons-transition-group, and react-addons-update, plus ReactDOM.unstable_batchedUpdates in react-dom. - .14-beta-1.html

I have tried:

npm install react-addons-transition-group
npm install react-addons-css-transition-group

but I'm getting:

npm ERR! notarget No patible 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.

I am using:

"react": "^0.14.0-rc1",
"react-dom": "0.14.0-rc1"

so I am not sure why it is throwing the error. 0.14.0-rc1 is on the list of patible versions.

My npm version is 2.11.3 and node 0.12.7

Any idea what could be causing this?

I am having trouble installing the "react-addons-transition-group" using npm. According to the react website:

The addons have moved to separate packages as well: 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-pare, react-addons-transition-group, and react-addons-update, plus ReactDOM.unstable_batchedUpdates in react-dom. - https://facebook.github.io/react/blog/2015/07/03/react-v0.14-beta-1.html

I have tried:

npm install react-addons-transition-group
npm install react-addons-css-transition-group

but I'm getting:

npm ERR! notarget No patible 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.

I am using:

"react": "^0.14.0-rc1",
"react-dom": "0.14.0-rc1"

so I am not sure why it is throwing the error. 0.14.0-rc1 is on the list of patible versions.

My npm version is 2.11.3 and node 0.12.7

Any idea what could be causing this?

Share Improve this question edited Sep 13, 2015 at 8:25 hilarl asked Sep 13, 2015 at 8:18 hilarlhilarl 6,88013 gold badges51 silver badges58 bronze badges
Add a ment  | 

1 Answer 1

Reset to default 6

This bug was fixed in [email protected]. Basically, [email protected] fixed a bug wherein pre-releases would satisfy the * semver range. When [email protected] came out with this update, packages like react-addons-transition-group, which only have pre-releases for some reason, could no longer be installed by npm unless you explicitly told npm what version to install.

Issue tracker ticket is npm/npm#8855. A guide for updating npm is available here.

本文标签: javascriptTrouble installing reactaddonstransitiongroupStack Overflow