Node.js/npm/指令:修订间差异
来自康健生活
| (未显示同一用户的3个中间版本) | |||
| 第105行: | 第105行: | ||
└── vue@2.6.12 | └── vue@2.6.12 | ||
</syntaxhighlight>|kangkk@LAPTOP-S5B1JMCV:/mnt/d/gitee/k/ask-go-pc$}} | </syntaxhighlight>|kangkk@LAPTOP-S5B1JMCV:/mnt/d/gitee/k/ask-go-pc$}} | ||
== install== | |||
{{shc|<syntaxhighlight lang="bash"> | |||
npm install kangwuyi/git-repo.git | |||
npm install github:kangwuyi/git-repo.git | |||
npm install git+https://github.com/kangwuyi/git-repo.git | |||
npm install git+ssh://github.com/kangwuyi/git-repo.git</syntaxhighlight>|$|/home/kangkk}} | |||
== view == | |||
{{Shc_out|<syntaxhighlight lang="bash"> | |||
npm view think-view versions</syntaxhighlight>|<syntaxhighlight lang="bash"> | |||
[ | |||
'1.0.0', '1.0.1', | |||
'1.0.2', '1.0.3', | |||
'1.0.4', '1.0.5', | |||
'1.0.7', '1.0.8', | |||
'1.0.9', '1.0.10', | |||
'1.0.11', '1.0.12', | |||
'1.0.13' | |||
] | |||
</syntaxhighlight>|$|/home/kangkk}} | |||
{{Shc_out|<syntaxhighlight lang="bash"> | |||
npm view think-view versions --json</syntaxhighlight>|<syntaxhighlight lang="bash"> | |||
[ | |||
"1.0.0", | |||
"1.0.1", | |||
"1.0.2", | |||
"1.0.3", | |||
"1.0.4", | |||
"1.0.5", | |||
"1.0.7", | |||
"1.0.8", | |||
"1.0.9", | |||
"1.0.10", | |||
"1.0.11", | |||
"1.0.12", | |||
"1.0.13" | |||
] | |||
</syntaxhighlight>|$|/home/kangkk}} | |||
{{Shc_out|<syntaxhighlight lang="bash"> | |||
npm view think-view@1.0.13 engines</syntaxhighlight>|<syntaxhighlight lang="bash"> | |||
{ node: '>=6.0.0' } | |||
</syntaxhighlight>|$|/home/kangkk}} | |||
== package-lock == | |||
禁止生成 package-lock.json 文件。 | |||
{{shc|<syntaxhighlight lang="bash"> | |||
npm config set package-lock false</syntaxhighlight>|$|/home/kangkk}} | |||
=== legacy-peer-deps === | |||
{{shc|<syntaxhighlight lang="bash"> | |||
npm i --legacy-peer-deps</syntaxhighlight>|$|/home/kangkk}} | |||