模块可能与当前的NODE版本不和,NODE升级问题? 一切尽在掌握

 

1.首先设置好PATH(你安装的目录)

 

1 Debian系列:
2 sudo gedit /etc/profile
3 Redhat系列:
4 su -root
5 gedit /etc/profile

 

谈一谈关于NODE里的N管理

 

2.然后

1 source /etc/profile

 

3.再然后

1 npm i -g n

 

4.安装完后

1 安装最新版NODE:n latest
2 
3 安装稳定版NODE:n stable
4 
5 安装版本号(示例):n x.x.x 
6 选择版本号(实例):n 8.7.0
7 
8 选择版本号:n

 

   

5.如果需要更多命令,请输入:n --help

 

6.对了,Windows(7/8/8.1/10)对于序号2以后的操作都一样

 

相关文章:

  • 2021-12-11
  • 2021-09-07
  • 2021-06-25
  • 2021-08-05
  • 2021-11-23
  • 2022-02-10
  • 2021-06-23
  • 2021-08-14
猜你喜欢
  • 2021-04-09
  • 2021-05-09
  • 2022-12-23
  • 2021-09-12
  • 2021-11-04
  • 2021-04-16
  • 2022-01-24
相关资源
相似解决方案