npm install -g n

n stable

安装的路径:

cd /usr/local/n/versions/node/10.15.3

修改环境变量

cd /etc

sudo vim profile

在最末尾加上

#set node pathexport
NODE_HOME=/usr/local/n/versions/node/10.15.3export
PATH=$NODE_HOME/bin:$PATH

 

相关文章:

  • 2021-12-18
  • 2022-12-23
  • 2021-04-19
  • 2021-09-27
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-01-23
  • 2022-03-02
  • 2022-02-22
  • 2022-01-03
  • 2022-02-13
  • 2021-12-24
相关资源
相似解决方案