brew install npm >Error: [email protected]: wrong number of arguments (given 1, expected 0)
程序员文章站
2023-12-28 10:35:16
...
问题
- 笔记本环境:mac os catalina 10.15.6
- homebrew版本:
Homebrew 2.7.5
Homebrew/homebrew-core (git revision cbdbf6; last commit 2021-06-07)
Homebrew/homebrew-cask (git revision fe5ca; last commit 2021-06-07)
背景:手贱brew update了一版,然后:
brew install node 报错:Error: [email protected]: wrong number of arguments (given 1, expected 0)
解决:在高人指点下:
- brew install cmake
然后homebrew的版本就变成了:
Homebrew 3.1.9
Homebrew/homebrew-core (git revision cbdbf68578; last commit 2021-06-07)
Homebrew/homebrew-cask (git revision fe5caa7d3e; last commit 2021-06-07)
然后就可以愉快的: brew install node
至于高人在哪里,下面的网址慢慢爬楼,你就会发现了:
https://bleepcoder.com/brew/647960270/macos-11-0-big-sur-compatibility-on-apple-silicon