首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >如何在macOS上卸载和重新安装节点?

如何在macOS上卸载和重新安装节点?
EN

Stack Overflow用户
提问于 2022-05-29 14:37:05
回答 1查看 446关注 0票数 1
代码语言:javascript
复制
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。这开始运行,但随后出现错误,表示链接命令无法运行。有什么建议吗?

EN

Stack Overflow用户

发布于 2022-05-29 15:13:10

Node.js卸载命令此

brew uninstall --force node

Node.js安装

然后,您可以通过输入https://nodejs.dev/download下载所需的版本。我可以给您的建议是安装nvm。这样,您可以使用更多的版本。

我希望它对你有用:)

票数 1
EN
查看全部 1 条回答
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/72424597

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档