当前位置:   article > 正文

.npmrc 文件_npmrc文件在哪

npmrc文件在哪

.npmrc文件,就是npm的配置文件所在位置。

npm config edit

执行“npm config edit”时会弹出.npmrc文件,修改后保存即可。

查看.npmrc位置

  1. C:\Users\test>npm config list
  2. ; "builtin" config from C:\Program Files\nodejs\node_modules\npm\npmrc
  3. prefix = "C:\\Users\\test\\AppData\\Roaming\\npm"
  4. ; "user" config from C:\Users\test\.npmrc
  5. node_gyp = "C:\\Program Files\\nodejs\\node_global\\node_modules\\node-gyp\\bin\\node-gyp.js"
  6. python = "C:\\Program_Apps\\Python27\\python.exe"
  7. ; node bin location = C:\Program Files\nodejs\node.exe
  8. ; cwd = C:\Users\test
  9. ; HOME = C:\Users\test
  10. ; Run `npm config ls -l` to show all defaults.

常用配置如下:

  1. prefix=C:\Users\test\node\nodejs\node_global
  2. cache=C:\Users\test\node\nodejs\node_cache
  3. registry=http://registry.npmjs.org
  4. strict-ssl=false
声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/木道寻08/article/detail/977139
推荐阅读
相关标签
  

闽ICP备14008679号