linux 安装 nvm, node.js, npm
2024-09-01 22:54:05
vscode在wsl中开发node应用,如何安装nvm?
git clone git@github.com:nvm-sh/nvm.git ~/.nvm
设置淘宝registry
npm config set registry https://registry.npm.taobao.org
~/.bashrc添加
export NVM_NODEJS_ORG_MIRROR=https://npm.taobao.org/mirrors/node
export NVM_IOJS_ORG_MIRROR=http://npm.taobao.org/mirrors/iojs
. ~/.nvm/nvm.sh
使配置生效
. ~/.bashrc
使用nvm
nvm list-remote
nvm ls
nvm install ...
nvm use ...
参考:
https://docs.microsoft.com/en-us/windows/nodejs/setup-on-wsl2#install-nvm-nodejs-and-npm
https://help.aliyun.com/document_detail/50775.html
https://npm.taobao.org/mirrors
最新文章
- const,static,extern 简介
- 【Win 10应用开发】自定义浮动层——Flyout
- 【工匠大道】Git的使用总结
- Hibernate框架简述 内部资料 请勿转载 谢谢合作
- DICOM:DICOM3.0网络通信协议
- 洛谷P2731 骑马修栅栏 Riding the Fences
- FlatBuffers与protobuf性能比较
- Git push 时每次都需要密码的疑惑
- 使用 HttpWebRequest 发送模拟 POST 请求
- AOP学习笔记一
- java虚拟机学习-JVM调优总结-新一代的垃圾回收算法(11)
- bug:记最近出现的非功能bug
- static 与final abstract关键字
- SpringBoot整合阿里Druid数据源及Spring-Data-Jpa
- OpenStack实践系列⑦深入理解neutron和虚拟机
- 暑假里的第八篇Java
- C++ code:判断字符串相等
- C++原创应用类库和工具类库
- Vue随性小笔记
- 第一关练习题统计网站最大访问量sed法,隐藏知识数组下标不能重复