关注前端开发
关注用户体验

Windows node版本管理器–nvm

    众所周知,node版本众多,但是由于项目需要或其他原因我们需要切换node版本,这个时候就需要node版本管理器啦。目前比较流行的两个是‘n’和‘nvm’(ps:试了‘n’,未安装成功,查了一下据说不支持window),所以改用nvm了,所以就介绍这个了。

    NVM for Windows请戳–>nvm-windows,需要注意的是安装前需要卸载现有的nodej.s和npm安装位置。

    常用命令:

 nvm list        /*列出node.js列表*/
 nvm on          /*启用node.js版本管理*/
 nvm off         /*禁用node.js版本管理(不会卸载任何东西)*/
 nvm use <version>     /*切换到使用指定的版本*/
 nvm version           /*显示当前正在运行的NVM for Windows版本*/

    这里只列举了几个常用命令,更多命令见nvm-windows

赞(186)
未经允许不得转载:大前端 » Windows node版本管理器–nvm
分享到: 更多 (0)

评论 11

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址
  1. #11

    Enjoyed the post.

  2. #10

    Nice post! Thank you.

  3. #9

    I simply had to say thanks yet again. I do not know the things I would have made to happen in the absence of those ways contributed by you relating to such a theme. It previously was a real terrifying circumstance in my circumstances, but noticing your specialized fashion you processed the issue forced me to jump with gladness. I’m happy for your information and then believe you comprehend what a powerful job that you’re getting into educating some other people through the use of a web site. I know that you have never come across any of us.

  4. #8

    I truly wanted to write a brief note so as to say thanks to you for the stunning secrets you are sharing here. My extensive internet investigation has at the end of the day been paid with pleasant suggestions to share with my friends and family. I would repeat that we readers actually are unequivocally blessed to live in a very good network with many brilliant individuals with very helpful techniques. I feel somewhat grateful to have encountered your entire webpages and look forward to some more pleasurable minutes reading here. Thank you once more for everything.

  5. #7

    I need to to thank you for this great read!! I definitely loved every little bit of it. I’ve got you bookmarked to look at new stuff you post…

    DMC52周前 (04-07)回复
  6. #6

    Spot on with this write-up, I absolutely believe this web site needs much more attention. I’ll probably be returning to see more, thanks for the advice!

    Apex Legends DPS3周前 (03-31)回复
  7. #5

    You have a very nice layout for your blog” i want it to use on my site too , 

  8. #4

    Some really interesting information, well written and broadly speaking user genial .

    Carlos Starzynski1个月前 (03-11)回复
  9. #3

    你好

    怎么样7个月前 (09-18)回复
  10. #2

    还是用linux比较好

    solfKwolf9个月前 (07-25)回复
  11. #1

    66666

    mutaim11个月前 (05-10)回复

themebetter 国内更好的WordPress主题服务商

立即前往