下载:从 http://nodejs.org/download/  下载适合的版本。

解压:tar xzvf node-v0.10.19-linux-x64...

比如解压到 /alidata/node-v0.10.19-linux-x64

设置环境变量:

# vi /etc/profile

add the following content into the file's end:

export NODE_HOME=/alidata/node-v0.10.19-linux-x64
export PATH=$PATH:$NODE_HOME/bin
export NODE_PATH=$NODE_HOME/lib/node_modules

save it then source it with:

#source /etc/profile  

相关文章:

  • 2021-12-06
  • 2022-03-05
  • 2022-02-13
  • 2022-02-24
  • 2021-11-25
  • 2021-09-21
  • 2021-11-24
猜你喜欢
  • 2021-09-14
  • 2022-02-11
  • 2021-04-21
  • 2021-08-24
  • 2021-10-29
  • 2021-08-21
相关资源
相似解决方案