Node.js/npm:修订间差异

来自康健生活
Kangkk​(留言 | 贡献)
Kangkk​(留言 | 贡献)
第27行: 第27行:
npm i --legacy-peer-deps</syntaxhighlight>|$|/home/kangkk}}
npm i --legacy-peer-deps</syntaxhighlight>|$|/home/kangkk}}


== package-lock ==
禁止生成 package-lock.json 文件。
{{shc|<syntaxhighlight lang="bash">
npm config set package-lock false</syntaxhighlight>|$|/home/kangkk}}
== other ==
== other ==
设置 python 环境的指向。
设置 python 环境的指向。

2025年7月19日 (六) 04:18的版本

目录

参数

unsafe-perm postinstall 示例
示例 示例 示例
示例 示例 示例

legacy-peer-deps

/home/kangkk
npm i --legacy-peer-deps

other

设置 python 环境的指向。

npm config set python "/Library/Frameworks/Python.framework/Versions/2.7/bin/python"