Node.js/npm/配置文件:修订间差异
来自康健生活
无编辑摘要 |
|||
| 第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}} | |||
2025年8月18日 (一) 07:06的最新版本
引言
官方文档:https://docs.npmjs.com/misc/config#unsafe-perm
标题文本
查看配置文件路径
[jian@kang /home/kwy]$
npm config ls -l | grep config
; "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
No categories