Ubuntu 安装 NodeJS #38
onnttf
started this conversation in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
为了省事儿,麻烦少,本文所有操作都是使用 ubuntu 用户操作。
安装 NodeJS
下载脚本
curl -sL https://deb.nodesource.com/setup_15.x | sudo bash -
如需安装其他版本的
NodeJS
,脚本下载地址可以在常用的 NodeJS 版本以及脚本下载地址中找到,替换上面命令中的https://deb.nodesource.com/setup_15.x
即可。更新可用包的列表
安装
NodeJS
中途会提示一个
Do you want to continue? [Y/n]
,直接回车就行。确认是否安装成功
常用
NodeJS
版本以及脚本下载地址目前常用的
NodeJS
版本以及脚本下载地址如下:https://deb.nodesource.com/setup_10.x
https://deb.nodesource.com/setup_12.x
https://deb.nodesource.com/setup_14.x
https://deb.nodesource.com/setup_15.x
Beta Was this translation helpful? Give feedback.
All reactions