I am using npm v5.3.0. Now I want to update npm to v5.4.1.To do this I type the following in my terminal:
npm install -g npm
without any errors.Howe
To upgrade, run: sudo npm install npm@latest -g
sudo npm install npm@latest -g
The npm module is available for download at https://registry.npmjs.org/npm/-/npm-{VERSION}.tgz.