参考网站

 http://www.jianshu.com/p/20ea93641bda

https://changelog.com/posts/install-node-js-with-homebrew-on-os-x

 

将brew的位置添加到$PATH环境变量中,并保存bash或者profile文件;

export PATH="/usr/local/bin:$PATH"

vi  ~/.bash_profile

编辑进去.

 

安装 切换node.js版本的工具n

 npm install -g n   (-g全局安装)

 使用  n 6.10.1,即可切换到6.10.1版本

 

相关文章:

  • 2022-12-23
  • 2022-01-07
  • 2019-01-08
  • 2021-05-09
  • 2021-10-05
  • 2021-04-02
  • 2021-08-22
猜你喜欢
  • 2022-01-27
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-12-28
  • 2021-10-02
  • 2022-12-23
相关资源
相似解决方案