Hopp til hovedinnhold
  1. Posts/
  2. Programmering/

nodejs

·1 min

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-cache

This 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