Update npm#
- npm i -g npm@latest – Update npm to latest version
Must have modules#
- npm-check – Checks for outdated packages either in package.json or global.
- More modules here…
Windows quirks#
Permisson error
npm config set prefix %APPDATA%\npm
npm config set cache %LOCALAPPDATA%\npm-cacheThis will set the PREFIX value to
C:\Users\<username>\AppData\Roaming\npm and cache value to C:\Users\<username>\AppData\Local\npm-cache
Alternatively you can edit the config file manually:
npm config edit