Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Trouble installing react-addons-transition-group

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-compare, 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 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.

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 compatible versions.

My npm version is 2.11.3 and node 0.12.7

Any idea what could be causing this?

like image 981
hilarl Avatar asked Sep 13 '15 08:09

hilarl


1 Answers

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.

like image 56
Kenan Avatar answered Nov 04 '22 20:11

Kenan