nodejs modify npm package mounting position

Applicable to non-PC, portable use

npm config set cache    D:\nodejs\node_cache
npm config set prefix   D:\nodejs
npm config set registry https://registry.npm.taobao.org/

# https://registry.npmjs.org/

Guess you like

Origin www.cnblogs.com/lunoctis/p/12071464.html
Recommended