I was shown this when I was installing dependencies for a project:
Update available 5.7.1 → 5.8.0 │
│ Run npm i npm to update
Then I did this:
$ npm i npm
npm WARN [email protected] requires a peer of react@>=0.11.0 || ^0.14.0-rc but none is installed. You must install peer dependencies yourself.
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
+ [email protected]
added 523 packages from 726 contributors in 12.75s
But why is it still the old version?
$ npm --version
5.7.1