多node版本控制工具:nvm

更多文章可關注我的個人博客:https://seven777777.github.io/myblog/

有時候,不同的項目對於node版本的要求不同,如何快捷的控制我們電腦的node版本就成了我們需要考慮的問題

這裏記錄一下我平常使用的node版本控制工具:nvm

nvm is a version manager for node.js, designed to be installed per-user, and invoked per-shell. nvm works on any POSIX-compliant shell (sh, dash, ksh, zsh, bash), in particular on these platforms: unix, macOS, and windows WSL.

安裝(windows)

傳送門:https://github.com/coreybutler/nvm-windows/releases

網上有很多詳細說明,這裏就不贅述!

常用命令

  • nvm ls 查看已經安裝的所有nodejs版本
  • nvm install 版本號,可安裝指定版本的nodejs
  • nvm use 版本號,即可切換到指定版本
  • nvm current 當前使用版本
  • nvm uninstall 版本號,卸載指定版本
搴芳拾夢
歡迎關注的我的個人公衆號【搴芳拾夢】
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章