deepin 安装 nodejs npm

Ubuntu apt 安装 nodejs

#先安装Python的软件仓库支持
sudo apt-get install -y python-software-properties software-properties-common
#增加nodejs 的仓库配置
sudo add-apt-repository ppa:chris-lea/node.js
#更新APT 仓库缓存
sudo apt-get update

安装Nodejs

sudo apt-get install nodejs
nodejs -v

安装NPM

apt-get install nodejs-legacy
apt-get install npm
# 安装n模块
npm install -g n
# 升级nodejs到最新stable版本
n stable
# 升级最新npm
npm install npm@latest -g
posted @   Lafite-1820  阅读(264)  评论(0编辑  收藏  举报
相关博文:
阅读排行:
· 分享4款.NET开源、免费、实用的商城系统
· 全程不用写代码,我用AI程序员写了一个飞机大战
· MongoDB 8.0这个新功能碉堡了,比商业数据库还牛
· 白话解读 Dapr 1.15:你的「微服务管家」又秀新绝活了
· 上周热点回顾(2.24-3.2)
点击右上角即可分享
微信分享提示