npm查看配置信息
表白:黑白圣堂血天使,天剑鬼刀阿修罗。
讲解对象:/npm查看配置信息
作者:融水公子 rsgz
Node.js教程Node.js教程 http://www.rsgz.top/post/110.htmlnpm查看配置信息只需要一条命令即可
查看配置信息:npm config ls >npm config ls ; cli configs metrics-registry = "https://registry.npmjs.org/" scope = "" user-agent = "npm/6.14.10 node/v14.15.0 win32 x64" ; userconfig C:\Users\Administrator\.npmrc registry = "https://registry.npmjs.org/" ; builtin config undefined prefix = "C:\\Users\\Administrator\\AppData\\Roaming\\npm" ; node bin location = D:\node.js\anzhuang\node.exe ; cwd = C:\Users\Administrator\my-website ; HOME = C:\Users\Administrator ; "npm config ls -l" to show all defaults.查看更加详细的配置信息:
>npm config ls -l ; cli configs long = true metrics-registry = "https://registry.npmjs.org/" scope = "" user-agent = "npm/6.14.10 node/v14.15.0 win32 x64" ; userconfig C:\Users\Administrator\.npmrc registry = "https://registry.npmjs.org/" ; builtin config undefined prefix = "C:\\Users\\Administrator\\AppData\\Roaming\\npm" ; default values access = null allow-same-version = false also = null always-auth = false audit = true audit-level = "low" auth-type = "legacy" before = null bin-links = true browser = null ca = null cache = "C:\\Users\\Administrator\\AppData\\Roaming\\npm-cache" cache-lock-retries = 10 cache-lock-stale = 60000 cache-lock-wait = 10000 cache-max = null cache-min = 10 cafile = undefined cert = null cidr = null color = true commit-hooks = true depth = null description = true dev = false dry-run = false editor = "notepad.exe" engine-strict = false fetch-retries = 2 fetch-retry-factor = 10 fetch-retry-maxtimeout = 60000 fetch-retry-mintimeout = 10000 force = false format-package-lock = true fund = true git = "git" git-tag-version = true global = false global-style = false globalconfig = "C:\\Users\\Administrator\\AppData\\Roaming\\npm\\etc\\npmrc" globalignorefile = "C:\\Users\\Administrator\\AppData\\Roaming\\npm\\etc\\npmignore" group = 0 ham-it-up = false heading = "npm" https-proxy = null if-present = false ignore-prepublish = false ignore-scripts = false init-author-email = "" init-author-name = "" init-author-url = "" init-license = "ISC" init-module = "C:\\Users\\Administrator\\.npm-init.js" init-version = "1.0.0" json = false key = null legacy-bundling = false link = false local-address = undefined loglevel = "notice" logs-max = 10 ; long = false (overridden) maxsockets = 50 message = "%s" ; metrics-registry = null (overridden) node-options = null node-version = "14.15.0" noproxy = null offline = false onload-script = null only = null optional = true otp = null package-lock = true package-lock-only = false parseable = false prefer-offline = false prefer-online = false ; prefix = "D:\\node.js\\anzhuang" (overridden) preid = "" production = false progress = true proxy = null read-only = false rebuild-bundle = true registry = "https://registry.npmjs.org/" rollback = true save = true save-bundle = false save-dev = false save-exact = false save-optional = false save-prefix = "^" save-prod = false scope = "" script-shell = null scripts-prepend-node-path = "warn-only" searchexclude = null searchlimit = 20 searchopts = "" searchstaleness = 900 send-metrics = false shell = "C:\\WINDOWS\\system32\\cmd.exe" shrinkwrap = true sign-git-commit = false sign-git-tag = false sso-poll-frequency = 500 sso-type = "oauth" strict-ssl = true tag = "latest" tag-version-prefix = "v" timing = false tmp = "C:\\Users\\ADMINI~1\\AppData\\Local\\Temp" umask = 0 unicode = false unsafe-perm = true update-notifier = true usage = false user = 0 ; user-agent = "npm/{npm-version} node/{node-version} {platform} {arch} {ci}" (overridden) userconfig = "C:\\Users\\Administrator\\.npmrc" version = false versions = false viewer = "browser"===
公众号:小雪妃谢谢大家的支持!可以点击我的头像,进入我的空间浏览更多文章呢。建议大家360doc[www.360doc.com]注册一个账号登录,里面真的有很多优秀的文章,欢迎大家的到来。
---
赞 (0)