For some reason (and not every time) in WebStorms,...
# dev-ops
d
For some reason (and not every time) in WebStorms, when I update an npm package (whether through the Preferences or npm install), it seems to NOT update. So I get an warning the the version I requested in the package.json doesn't match that of the actual node_modules version
Permissions issue? Having said that, I ran npm install with SUDO just to see, and no luck.
s
depending on how you specify your dependencies, npm call pull down slightly different versions based on how you specify version for each package
e.g. it can pull down a newer patch release than what you specify
d
I specify the version I wanted, npm install appears to run fine, but the npm_module folder says it didn't update
s
you're specifying exact version e.g no leading
^
or anything like that?
d
It has the
^
s
^ means it will pull in the latest patch release, IIRC
so if you ask for version
^3.0.0
it can legitimately pull down
3.0.1
instead, since that should be just a bugfix if the module is following semantic versioning.
if you want exactly 3.0.0 and not 3.0.1 you can drop the leading caret (again IIRC)