一.查看本机当前Node.js和npm版本


node -v

npm -v
二.清除node.js的cache


sudo npm cache clean -f
三.安装"n"版本管理工具,管理node.js


sudo npm install -g n
四.更新node.js版本


sudo n stable
五.更新npm版本


sudo npm install npm@latest -g

 

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-11-02
  • 2021-11-19
  • 2022-12-23
  • 2021-06-11
  • 2021-08-01
  • 2022-12-23
猜你喜欢
  • 2021-11-19
  • 2021-06-21
  • 2022-12-23
  • 2021-07-19
  • 2021-10-17
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案