Deepin 15.5上安装 Node.js

Node.js 源码安装

以下部分我们将介绍在Ubuntu Linux下安装 Node.js 。 其他的Linux系统,如Centos等类似如下安装步骤。

在 Github 上获取 Node.js 源码:

$ sudo git clone https://github.com/nodejs/node.git

修改目录权限:

$ sudo chmod a+x node

使用 ./configure 创建编译文件,并按照:

$ cd node
$ sudo ./configure
$ sudo make
$ sudo make install

apt-get命令安装

命令格式如下:

sudo apt-get install nodejs
sudo apt-get install npm

查看 node 版本:

$ node -v
$ npm -v

 

猜你喜欢

转载自www.cnblogs.com/dinphy/p/9013238.html