I'm following steps from updating global packages, so I executed npm outdated -g --depth=0
and got:
Package Current Wanted Latest Location typescript 2.2.2 2.2.2 2.4.1
Then, I executed npm update -g
, but I still got the same output from npm outdated -g --depth=0
.
Executing npm list -g --depth=0
also confirms that the typescript package has not been updated to 2.4.1:
+-- [email protected] +-- [email protected] +-- [email protected] `-- [email protected]
What am I missing?
The npm install installs all modules that are listed on package. json file and their dependencies. npm update updates all packages in the node_modules directory and their dependencies.
You will have to either use this script or do them one by one it seems.
This global update is a known breaking point. Here is the reference to this issue. They seem to have closed it without addressing the issue
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With