ubuntu 安装最新nodejs/npm
1.打开github nodejs源码地址
GitHub - nodesource/distributions: NodeSource Node.js Binary Distributions
2.拉到下面找到安装部分
安装介绍
Node.js v17.x:
# Using Ubuntu curl -fsSL https://deb.nodesource.com/setup_17.x | sudo -E bash - sudo apt-get install -y nodejs # Using Debian, as root curl -fsSL https://deb.nodesource.com/setup_17.x | bash - apt-get install -y nodejs
Node.js v16.x:
# Using Ubuntu curl -fsSL https://deb.nodesource.com/setup_16.x | sudo -E bash - sudo apt-get install -y nodejs # Using Debian, as root curl -fsSL https://deb.nodesource.com/setup_16.x | bash - apt-get install -y nodejs
其他版本继续浏览
版权所有 © 【代码谷】 欢迎非商用转载,转载请按下面格式注明出处,商业转载请联系授权,违者必究。(提示:点击下方内容复制出处)
源文:《ubuntu 安装最新nodejs/npm》,链接:https://www.daimagu.com/article/952.html,来源:【代码谷】
评论