Node.js/npm/配置文件:修订间差异

来自康健生活
Kangkk​(留言 | 贡献)
无编辑摘要
Kangkk​(留言 | 贡献)
 
第1行: 第1行:
== 引言 ==
== 引言 ==
官方文档:https://docs.npmjs.com/misc/config#unsafe-perm
官方文档:https://docs.npmjs.com/misc/config#unsafe-perm
== 标题文本 ==
查看配置文件路径
{{Shc_out|<syntaxhighlight lang="bash">
npm config ls -l | grep config</syntaxhighlight>|<syntaxhighlight lang="bash">
; "default" config from default values
globalconfig = "/home/kwy/.local/share/fnm/node-versions/v22.17.0/installation/etc/npmrc"
userconfig = "/home/kwy/.npmrc"
; "user" config from /home/kwy/.npmrc
; "project" config from /home/kwy/canvas-word/.npmrc
; "cli" config from command line options
</syntaxhighlight>|$|/home/kwy}}