IT:AD:npm:HowTo:Configure
- See also:
Summary
- See:
- https://docs.npmjs.com/misc/config
npmgets its config settings from
- the command line,
- environment variables,
Process
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.