npm 命令

2015年12月18日

使用 npm config ls可以查看npm的配置信息如下:

registry:npm安装地址

user-agent:用户环境

prefix:模块安装位置

node bin location:node的安装位置

cwd:当前路径

HOME:用户主目录

F:\work\moscatest>npm config ls
; cli configs
registry = "https://registry.npmjs.org/"
user-agent = "npm/1.4.23 node/v0.10.31 win32 ia32"

; builtin config undefined
prefix = "C:\\Users\\BC-219\\AppData\\Roaming\\npm"

; node bin location = D:\Dev\nodejs\\node.exe
; cwd = F:\work\moscatest
; HOME = C:\Users\BC-219
; 'npm config ls -l' to show all defaults.

 

posted @ 2015-12-18 16:05  流殇微  阅读(782)  评论(0编辑  收藏  举报