Friday 5 May 2017

npm installs wrong package version

I'm trying to install karma using the following command npm i karma@^1.0.0. npm installs karma@1.0.0 rather than latest version karma@1.6.0. After a little investigation, I figured out that these commands work: npm i karma@^1 and npm i karma@^"1.0.0" (enclose command with double quotes). Anyone can explain how it should work?

I guess that this is not related to karma since it's reproducible with any package.

Thanks.



via Bob

No comments:

Post a Comment