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:
  1. Install npm-windows-upgrade ...

Get Angular 6 for Enterprise-Ready Web Applications now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.