更新Ionic版本时

npm i -g ionic@latest

出现如下错误

npm ERR! Unexpected end of input at 1:14782

如下图

Ionic 安装最新版本错误

 

解决方法

使用如下命令:

npm cache clean --force

 

相关文章:

  • 2021-12-11
  • 2021-05-10
  • 2021-06-06
  • 2021-04-21
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-09-09
猜你喜欢
  • 2021-12-12
  • 2021-04-03
  • 2021-08-24
  • 2022-12-23
  • 2022-12-23
  • 2021-06-15
相关资源
相似解决方案