npm config ls
效果如下
C:\Users\xiaoyao>npm config ls
; "builtin" config from D:\developmentEnvironment\nodejs\node_global\node_modules\npm\npmrc
prefix = "C:\\Users\\xiaoyao\\AppData\\Roaming\\npm"
; "user" config from C:\Users\xiaoyao\.npmrc
registry = "https://repo.huaweicloud.com/repository/npm/"
; "cli" config from command line options
omit = []
user-agent = "npm/7.4.0 node/v14.15.4 win32 x64"
; node bin location = D:\developmentEnvironment\nodejs\node.exe
; cwd = C:\Users\xiaoyao
; HOME = C:\Users\xiaoyao
; Run `npm config ls -l` to show all defaults.
本文介绍了如何使用npm命令来查看和管理你的Node.js项目的配置信息,帮助开发者更好地理解和控制项目依赖及其设置。

3962

被折叠的 条评论
为什么被折叠?



