使用Ubuntu安装Node.js

当已经进入时,删除。

sudo apt-get remove nodejs

添加特定版本

Node.js v18.x:

curl -fsSL https://deb.nodesource.com/setup_18.x | sudo -E bash -
Node.js v17.x:

curl -fsSL https://deb.nodesource.com/setup_17.x | sudo -E bash -
Node.js v16.x:

curl -fsSL https://deb.nodesource.com/setup_16.x | sudo -E bash -
Node.js v14.x:

curl -fsSL https://deb.nodesource.com/setup_14.x | sudo -E bash -
Node.js LTS:

curl -fsSL https://deb.nodesource.com/setup_lts.x | sudo -E bash -
Node.js Current (whatever is the latest version):

curl -fsSL https://deb.nodesource.com/setup_current.x | sudo -E bash -

安装

sudo apt-get install nodejs

以下是中文的同义表达:

– 参考一下
– 参考资料
– 引用
– 参照
– 借鉴
– 应用
– 参考案例
– 参考指南
– 鉴于

 

广告
将在 10 秒后关闭
bannerAds