如何安装 npm 的最早版本

huangapple go评论74阅读模式
英文:

how can i install npm earliest version

问题

npm ERR! code EEXIST
npm ERR! syscall mkdir
npm ERR! path /Users/refilwe/.npm/\_cacache/content-v2/sha512/2c/35
npm ERR! errno EEXIST
npm ERR! Invalid response body while trying to fetch https://registry.npmjs.org/log-symbols: EACCES: permission denied, mkdir '/Users/refilwe/.npm/\_cacache/content-v2/sha512/2c/35'
npm ERR! File exists: /Users/refilwe/.npm/\_cacache/content-v2/sha512/2c/35
npm ERR! Remove the existing file and try again, or run npm
npm ERR! with --force to overwrite files recklessly.

npm ERR! A complete log of this run can be found in: /Users/refilwe/.npm/\_logs/2023-07-06T08_28_27_953Z-debug-0.log

pc221:~ refilwe$ npm install -g @angular/cli
英文:
npm ERR! code EEXIST
npm ERR! syscall mkdir
npm ERR! path /Users/refilwe/.npm/\_cacache/content-v2/sha512/2c/35
npm ERR! errno EEXIST
npm ERR! Invalid response body while trying to fetch https://registry.npmjs.org/log-symbols: EACCES: permission denied, mkdir '/Users/refilwe/.npm/\_cacache/content-v2/sha512/2c/35'
npm ERR! File exists: /Users/refilwe/.npm/\_cacache/content-v2/sha512/2c/35
npm ERR! Remove the existing file and try again, or run npm
npm ERR! with --force to overwrite files recklessly.

npm ERR! A complete log of this run can be found in: /Users/refilwe/.npm/\_logs/2023-07-06T08_28_27_953Z-debug-0.log

pc221:\~ refilwe$ npm install -g @angular/cli

答案1

得分: 1

Sure, here's the translation of the code part:

npm install -g @angular/cli@<version>

英文:

can you please specify which package you want to install or you just want to install cli with specific version can use this

npm install -g @angular/cli@&lt;version&gt;

huangapple
  • 本文由 发表于 2023年7月6日 16:33:05
  • 转载请务必保留本文链接:https://go.coder-hub.com/76626951.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定