Heim >Web-Frontend >js-Tutorial >Konfigurationsmethoden und allgemeine Befehle für das NodeJS-NPM-Paket management_node.js
1. 代码如下:
ucG0xnIjAgBgNVBAsTGW5wbSBDZXJ0aWZpY2F0ZSBBdXRob3JpdHkxDjAMBgNVBAMTBW5wnbUNBMRc
wFQYJKoZIhvcNAQkBFghpQGl6cy5tZTAeFw0xMTA5MDUwMTQ3MTdaFw0ynMTA5MDIwMTQ3MTdaMIGHM
iMCAGA1UECxMZbnBtIENlcnRpZmljnYXRlIEF1dGhvcml0eTEOMAwGA1UEAxMFbnBtQ0ExFzAVBgkqh
kiG9w0BCQEWCGlAnaXpzLm1lMIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBg QDLI4tIqPpRW ACw9G
EnOgBlJZwK5f8nnKCLK629Pv5yJpQKs3DENExAyOgDcyaF0HD0zk8zTp ZsLaNdKOznGn2U181KGpr
GKAXP6DU6ByOJDWmTlY6 Ad1laYT0m64fERSp Hw/hjD3D iX4aMOlny0HdbT5m1ZGh6SJz3ZqxavhHL
QIDAQABMA0GCSqGSIb3DQEBBQUAA4GBAC4ySDbCnl7W1WpLmtLGEQ/yuMLUf6Jy/vr CRp4h UzL IQ
pCv8FfxsYE7dhf /bmWTEupBkvnyNL18lipt2jSvR3v6oAHAReotvdjqhxddpe5Holns6EQd1/xEZ7sB
1YhQKJtvUrlnZNufy1Jf1r0ldEGeA 0ISck7s = 0
Farbe = wahr
Abdeckung = falsch
Tiefe = null
Beschreibung = wahr
dev = falsch
editor = "notepad.exe"
erzwingen = false
git = "git"
global = false
globalconfig = "C:\Program Files (x86)\nodejs\etc\npmrc"
globalalignorefile = "C:\Program Files (x86 )\nodejs\ etc\npmignore"
group = 0
ignore = ""
init-module = "C:\Users\sam\.npm-init.js"
init.version = "0.0.0 "
init.author.name = ""
init.author.email = ""
init.author.url = ""
json = false
link = false
loglevel = "http"
; long = false (überschrieben)
message = "%s"
node-version = "0.8.0"
npaturl = "http://npat.npmjs.org/"
npat = false
onload-script = null
outfd = 1
parseable = false
pre = false
; prefix = "C:\Program Files (x86)\nodejs" (überschrieben)
Produktion = false
proprietary-attribs = true
proxy = null
https-proxy = null
user- agent = "npm/1.1.32 node/v0.8.0"
rebuild-bundle = true
registry = "https://registry.npmjs.org/"
rollback = true
save = false
save-bundle = false
save-dev = false
save-optional = false
searchopts = ""
searchexclude = null
searchsort = "name"
Shell = "C:\windows\system32\cmd.exe"
strict-ssl = true
tag = "latest"
tmp = "C:\Users\sam\AppData\Local\Temp"
unicode = true
unsafe-perm = true
usage = false
user = 0
username = ""
userconfig = "C:\Users\sam\.npmrc"
userignorefile = "C:\Users\sam\.npmignore"
umask = "022"
version = false
versions = false
viewer = "browser"
yes = null
_exit = true
2. 代码如下:
npm config set 属性名 属性值
的方式来进行配置.
例如: