IT:AD:npm:HowTo:Configure

Summary

Get/Set Variables

npm config get key

npm config set key value

List the Variables

List the config settings:

view config settings
npm config list

The results will be something like:


; cli configs
user-agent = "npm/2.15.1 node/v4.4.4 win32 x64"

; builtin config undefined
prefix = "C:\\Users\\foobar\\AppData\\Roaming\\npm"

; node bin location = C:\Program Files (x86)\nodejs\node.exe
; cwd = D:\a\b\c2\d
; HOME = C:\Users\foobar
; 'npm config ls -l' to show all defaults.


  • /home/skysigal/public_html/data/pages/it/ad/npm/howto/configure.txt
  • Last modified: 2023/11/04 23:00
  • by 127.0.0.1