1. 代碼如下:
dev = false
編輯器= 注意墊.exe"
強制= false
git = "git"
global = false
globalconfig = "C:\Program Files (x86)\nodejs\etc\npmrc"
group = 0
ignore = ""
init-module = "C:\Users\sam\. npm-init. "
init.version = "0.0.0"
init.author.name = ""
init.author.email = ""
init.author.url = ""
json = false
連結 = false
loglevel = "http"
; long = false (覆蓋)
message = "%s"
node-version = "0.8.0"
npaturl = "http://npat.npmjs.org/"
npat = false
onload-script = null
outfd = 1
可解析= false
pre = false
; prefix = "C:\Program Files (x86)\nodejs" (覆蓋)
Production = false
proprietary-attribs = true
proxy = null
https-prof = null
user> agent = "npm/1.1.32 node/v0.8.0"
rebuild-bundle = true
registry = "https://registry.npmjs.org/"
rollback = true
save =npmjs.org/"
rollback = true
save = false
save-bundle = false
save-dev = false
save-Optional = false
searchopts = ""
searchexclude = null
searchsort = "name"
searchexclude = 無> = "C:\windows\system32\cmd.exe"
strict-ssl = true
tag = "最新"
tmp = "C:\Users\sam\AppData\Local\Temp"
unicode = true
unsafe-perm = true
便利= false
使用者= 0
使用者名稱= ""
userconfig = "C:\Users\sam\.npmrc"
userignorefile = "C:\Users\sam\.npmignore"
umask = "022"
版本= false
版本= false
viewer = "瀏覽器"
yes = null
_exit = true
2. 程式碼如下:
npm config set 屬性名稱 屬性值
的方式來進行設定。
例如:
複製程式碼
程式碼如下:
npm config set prefix "C:123"
3. npm config get prefix