首页 > 编程知识 正文

ubuntu 安装node,ubuntu nodejs安装

时间:2023-05-05 01:08:49 阅读:203376 作者:2394

对于nodejs和npm的安装,如果是通过apt-get 命令进行直接安装的话 版本相对较低.

sudo apt-get install nodejs npm

然而kwdxlz需要安装特定版本时该怎么办呢?
其实nodejs的官方给出了安装方式,

在官方链接,https://github.com/nodesource/distributions 中给出了解决方案,
部分内容如下,

Node.js Current (v16.x):# Using Ubuntucurl -fsSL https://deb.nodesource.com/setup_current.x | sudo -E bash -sudo apt-get install -y nodejs# Using Debian, as rootcurl -fsSL https://deb.nodesource.com/setup_current.x | bash -apt-get install -y nodejs

版权声明:该文观点仅代表作者本人。处理文章:请发送邮件至 三1五14八八95#扣扣.com 举报,一经查实,本站将立刻删除。