Sometimes, you'll run into unforeseen issues while developing for the SharePoint Framework. These issues might include different errors during your development cycle, such as when you generate a new project with Yeoman.
One of the basic things to do is to update npm, the Node Package Manager, that you installed in Chapter 3, Getting Started with the SharePoint Framework.
In order to force an update on npm, use npm and run the following command:
npm install -g npm
This is a simple process, and after it completes, you can verify your npm version with the following command:
npm -v
At the time of writing this book, the latest stable version of npm was 5.4.2: