Using newer version of npm on Windowsdevelopment
Using newer version of npm on Windows
To get the bleeding edge features install npm globally using npm.
npm install -g npm
You will need to use an elevated command prompt (run as Administrator) to correctly install packages globally.
Check which version you are using at the command line
If this command reports back to you a version different than the one that was installed previously then you should check your environment
If the node director appears in your
PATH before npm then you will be using the version packaged with node. If this is the case you will need to edit your
PATH so that npm appears first. There are a some nice options for editing your PATH that are far better than what Windows offers by default.
Once you ensure the order for those two folders is correct, save your changes and restart your shell and check your version again.
You should now see you are using the version you independently installed rather than the version packaged with node.
After updating my PC to Windows 10 I have found that the UI for editing environment variables has been vastly improved. It’s nice that I don’t need a third-party application to manage my OS.