Files
knowledge-kit/Chapter2 - Web FrontEnd/2.26.md
2020-02-25 17:46:51 +08:00

10 lines
420 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# Node.js 在 Linux 下的安装
如果是在新电脑上面部署 Node 项目,首先进入官网下载 Node 包,解压到系统的一个合适文件夹
执行下面2步命令将 Node 的命令关联到全局命令,这样就可以在命令行中执行 Node 脚本
```
sudo ln -s /home/LBP/node-v10.12.0-linux-x64/bin/node /usr/local/bin/
sudo ln -s /home/LBP/node-v10.12.0-linux-x64/bin/npm /usr/local/bin/