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

最新文章

  1. const,static,extern 简介
  2. 【Win 10应用开发】自定义浮动层——Flyout
  3. 【工匠大道】Git的使用总结
  4. Hibernate框架简述 内部资料 请勿转载 谢谢合作
  5. DICOM:DICOM3.0网络通信协议
  6. 洛谷P2731 骑马修栅栏 Riding the Fences
  7. FlatBuffers与protobuf性能比较
  8. Git push 时每次都需要密码的疑惑
  9. 使用 HttpWebRequest 发送模拟 POST 请求
  10. AOP学习笔记一
  11. java虚拟机学习-JVM调优总结-新一代的垃圾回收算法(11)
  12. bug:记最近出现的非功能bug
  13. static 与final abstract关键字
  14. SpringBoot整合阿里Druid数据源及Spring-Data-Jpa
  15. OpenStack实践系列⑦深入理解neutron和虚拟机
  16. 暑假里的第八篇Java
  17. C++ code:判断字符串相等
  18. C++原创应用类库和工具类库
  19. Vue随性小笔记
  20. 第一关练习题统计网站最大访问量sed法,隐藏知识数组下标不能重复

热门文章

  1. Less(6)
  2. flex布局使用
  3. Python 从入门到进阶之路(七)
  4. mybatis无效比较:invalid comparison:java.util.data and java.lang.string
  5. shell 中长命令的换行处理
  6. vscode解决nuget插件不能使用的问题
  7. C++ 深入浅出工厂模式(进阶篇)
  8. Linux加密known_hosts文件中的IP
  9. Linux相关集合
  10. 在Ubuntu上安装Miniconda