美文网首页
Mac brew 安装指定版本后 node命令找不到

Mac brew 安装指定版本后 node命令找不到

作者: 温柔vs先生 | 来源:发表于2022-01-14 12:32 被阅读0次

比如安装的是14的版本

brew install node@14

执行node命令无法使用,可以执行如下命令

brew link --overwrite --force node@14

下面是执行后的内容:

wbb@wubangbangdeMacBook-Pro ~ % brew link --overwrite --force node@14
Linking /usr/local/Cellar/node@14/14.18.2... 3868 symlinks created.

If you need to have this software first in your PATH instead consider running:
  echo 'export PATH="/usr/local/opt/node@14/bin:$PATH"' >> ~/.zshrc

如果报这个错:

Warning: Homebrew's sbin was not found in your PATH but you haveinstalled
formulae that put executables in /usr/local/sbin.
Consider setting the PATH for example like so
echo 'exportPATH="/usr/local/sbin:$PATH"' >> ~/.bash_profile

解决方法:

export PATH="/usr/local/bin:$PATH"
source ~/.bash_profile

相关文章

  • Mac brew 安装指定版本后 node命令找不到

    比如安装的是14的版本 执行node命令无法使用,可以执行如下命令 下面是执行后的内容: 如果报这个错: 解决方法:

  • MAC终端安装指定版本node

    MAC终端安装指定版本node 安装brew 终端上运行 $ /usr/bin/ruby -e “$(curl -...

  • 数据库的安装

    mac 版本安装1、brew 安装brewbrew 是mac版本下的包管理器安装命令 /usr/bin/ru...

  • mac安装使用node.js

    1.安装node.js 确保mac电脑上已经安装homeBrew,使用下面命令安装node.js brew ins...

  • 2018-03-27 智能合约truffle初体验 -by sk

    0. 准备,安装node, npm 安装brew,brew是mac平台软件安装工具 通过brew安装node,no...

  • node和npm

    我使用的是mac电脑环境 1. 安装node 通过 brew install node 安装最新版本的node n...

  • 在Mac上安装node.js

    @(web)[node] 在Mac上安装node.js 安装Homebrew brew install node ...

  • Mac 安装nvm

    brew安装nvm nvm是nodejs版本管理器,在Mac下可方便安装多版本的nodejs。 nvm命令

  • mac appium

    mac 安装appium mac安装brew run appium in OS X mac 卸载node 临时使用...

  • mac安装brew

    mac安装brew试了网上几个版本下载速度都很慢,可以使用下面的命令 执行命令后可以选择镜像,如下图 选择镜像后开...

网友评论

      本文标题:Mac brew 安装指定版本后 node命令找不到

      本文链接:https://www.haomeiwen.com/subject/hveacrtx.html