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
其他版本继续浏览
原创文章,作者:kepupublish,如若转载,请注明出处:https://blog.ytso.com/243924.html