Updating npm and Global npm packages
If Node is the lowest-level tool in your tech stack, npm and global npm packages would be considered the next layer sitting in between Angular and Node.
Every time you update your version of Node, you also get a new version of npm, which ships bundled with Node. However, npm's release schedule doesn't coincide with Node's. At times, there will be significant performance and feature gains to warrant a specific upgrade to your version of npm, such as the order of magnitude speed improvements introduced with npm v5.0.0 or the npx tool, which reduces the need for global packages, introduced with npm v5.2.0:
- On Windows, you need the
npm-windows-upgrade
tool to upgrade your version of npm:
- Install
npm-windows-upgrade
:
PS> npm install --global --production npm-windows-upgrade
If you run into errors during installation of the tool, refer to the Npm fails to install a global tool on Windows section to resolve any issues with your system setup.
- Execute
npm-windows...