请稍等 ...
×

采纳答案成功!

向帮助你的同学说点啥吧!感谢那些助人为乐的人

无法安装npm 6.4.1版本

输入brew install npm@6.4.1后,显示
Error: No similarly named formulae found.
Error: No available formula or cask with the name “npm@6.4.1”.
==> Searching for a previously deleted formula (in the last month)…
Error: No previously deleted formula found.
==> Searching taps on GitHub…
Error: No formulae found in taps.

正在回答 回答被采纳积分+3

1回答

李超 2021-04-04 00:54:04

node安装了嘛?

0 回复 有任何疑惑可以回复我~
  • 提问者 慕粉2110279712 #1
    老师,已经装nodejs了。执行npm install失败,查看npm的版本是6.14.11,所以想装6.4.1版本的npm.
    回复 有任何疑惑可以回复我~ 2021-04-04 22:03:07
  • 李超 #2
    你就用6.14 试试是否有问题
    回复 有任何疑惑可以回复我~ 2021-04-04 23:31:07
  • 提问者 慕粉2110279712 回复 李超 #3
    用6.14 执行npm install有错误:
    gyp ERR! build error 
    gyp ERR! stack Error: `make` failed with exit code: 2
    gyp ERR! stack     at ChildProcess.onExit (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:194:23)
    gyp ERR! stack     at ChildProcess.emit (events.js:315:20)
    gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:277:12)
    gyp ERR! System Darwin 20.3.0
    gyp ERR! command "/usr/local/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
    gyp ERR! cwd /Users/leoli/mediasoup-demo/server/node_modules/heapdump
    gyp ERR! node -v v14.16.0
    gyp ERR! node-gyp -v v5.1.0
    gyp ERR! not ok 
    npm ERR! code ELIFECYCLE
    npm ERR! errno 1
    npm ERR! heapdump@0.3.15 install: `node-gyp rebuild`
    npm ERR! Exit status 1
    npm ERR! 
    npm ERR! Failed at the heapdump@0.3.15 install script.
    npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
    
    npm ERR! A complete log of this run can be found in:
    npm ERR!     /Users/leoli/.npm/_logs/2021-04-04T15_41_27_211Z-debug.log
    还在查怎么解决。
    回复 有任何疑惑可以回复我~ 2021-04-04 23:44:29
问题已解决,确定采纳
还有疑问,暂不采纳
意见反馈 帮助中心 APP下载
官方微信