Ubuntu 上安装 Node.js

xiaoxiao2021-02-28  87

Node.js 源码安装

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

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

修改目录权限:

$ sudo chmod -R 755 node

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

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

查看 node 版本:

$ node --version v0.10.25

Ubuntu apt-get命令安装

sudo apt-get install nodejs sudo apt-get install npm
转载请注明原文地址: https://www.6miu.com/read-41444.html

最新回复(0)