nicolasrulli@Nicolas-Rullis-MacBook-Pro / % brew install node
Running `brew update --preinstall`...
==> Auto-updated Homebrew!
Updated 1 tap (homebrew/core).
==> Updated Formulae
Updated 55 formulae.
==> Downloading https://ghcr.io/v2/homebrew/core/node/manifests/18.2.0
Already downloaded: /Users/nicolasrulli/Library/Caches/Homebrew/downloads/d3348030d8404d01cc32c085f75250b04ad35d8c17b9c7e5cbb2d1bc3617e697--node-18.2.0.bottle_manifest.json
==> Downloading https://ghcr.io/v2/homebrew/core/node/blobs/sha256:bc6d55e53035991aaa6d1917f396d2f0cd9e0281e80d1ba79e99211c5e82a
Already downloaded: /Users/nicolasrulli/Library/Caches/Homebrew/downloads/5daf56787ecaf72b3065acd64fff548c38ec43c7572d18b603bc33da86aa53a2--node--18.2.0.monterey.bottle.tar.gz
==> Pouring node--18.2.0.monterey.bottle.tar.gz
Error: The `brew link` step did not complete successfully
The formula built, but is not symlinked into /usr/local
Could not symlink share/doc/node/gdbinit
/usr/local/share/doc/node is not writable.
You can try again using:
brew link node
Warning: The post-install step did not complete successfully
You can try again using:
brew postinstall node
==> Summary
/usr/local/Cellar/node/18.2.0: 1,930 files, 49.2MB
==> Running `brew cleanup node`...
Disable this behaviour by setting HOMEBREW_NO_INSTALL_CLEANUP.
Hide these hints with HOMEBREW_NO_ENV_HINTS (see `man brew`).
nicolasrulli@Nicolas-Rullis-MacBook-Pro / % brew link node
Linking /usr/local/Cellar/node/18.2.0...
Error: Could not symlink share/doc/node/gdbinit
/usr/local/share/doc/node is not writable.
nicolasrulli@Nicolas-Rullis-MacBook-Pro / % brew postinstall node
==> Postinstalling node
Warning: The post-install step did not complete successfully
You can try again using:
brew postinstall node
nicolasrulli@Nicolas-Rullis-MacBook-Pro / % 我运行了brew uninstall --force node,这“奏效了”。然后我运行了brew cleanup,它也起作用了。其次是brew install node。这开始运行,但随后出现错误,表示链接命令无法运行。有什么建议吗?
发布于 2022-05-29 15:13:10
Node.js卸载命令此
brew uninstall --force node
Node.js安装
然后,您可以通过输入https://nodejs.dev/download下载所需的版本。我可以给您的建议是安装nvm。这样,您可以使用更多的版本。
我希望它对你有用:)
https://stackoverflow.com/questions/72424597
复制相似问题