Nodejs教程
Nodejs Mysql
Nodejs MongoDB
Nodejs 对比

在Linux/Ubuntu/CentOS上安装Node.js

在Linux/Ubuntu/CentOS上安装Node.js

我们可以在Linux/ubuntu/centOS/fedora/linuxmint等上轻松安装Node.js。要在Linux(Ubuntu)操作系统,请遵循以下说明:
1)打开Ubuntu终端(您可以使用快捷键(Ctrl + Alt + T)。
在linux/ubuntu/centos上安装Node.js 1
2)键入命令 sudo apt-get install python-software-properties
3)按Enter(如果您为系统设置了密码,则系统将要求输入密码)
4)键入密码并按Enter
在Linux/ubuntu/centos上安装Node.js 2
5)键入命令 sudo apt-add-repository ppa: chris-lea/node.js
6)按Enter
在linux/ubuntu/centos 3上安装Node.js 3
7)再次按Enter继续
8)键入命令 sudo apt-get update (等待一段时间)
安装节点linux/ubuntu/centos上的.js 4
9)键入命令 sudo apt-get install nodejs npm
在linux/ubuntu/centos 5上安装Node.js
10)键入命令 sudo apt-get install nodejs
在Linux/ubuntu/centos 6上安装Node.js
安装已完成。现在,您可以通过 node--version
安装来检查Node的版本。 linux/ubuntu/centos 7上的Node.js
通过 npm-v
在linux/ubuntu/centos 8上安装Node.js
现在,您可以通过键入以下命令来检查已安装程序列表中的node.js
dpkg--get-selections
在Linux/ubuntu上安装Node.js/centos 9
昵称: 邮箱:
Copyright © 2022 立地货 All Rights Reserved.
备案号:京ICP备14037608号-4