Ubuntu20安装nodejs和npm并切换阿里源

参考

阿里巴巴开源镜像站

Ubuntu20安装npm并切换阿里源

安装直接在终端执行

sudo apt-get install nodejs

file

npm没有安装上就执行

sudo apt-get install npm

file

查看版本

node -v

file

npm-v

file

然后安装个nrm好管理

sudo npm install -g nrm

file

切换国内阿里源

nrm ls

查看菜单,然后选择源

nrm use taobao

file

完成

本文转自:https://blog.csdn.net/a1587943743/article/details/122134877

posted @   萌褚  阅读(288)  评论(0编辑  收藏  举报
相关博文:
阅读排行:
· 单线程的Redis速度为什么快?
· 展开说说关于C#中ORM框架的用法!
· Pantheons:用 TypeScript 打造主流大模型对话的一站式集成库
· SQL Server 2025 AI相关能力初探
· 为什么 退出登录 或 修改密码 无法使 token 失效
点击右上角即可分享
微信分享提示