1.新增package-lock.json

2.相关babel更新

重新安装

$ npm install babel-preset-env --save-dev

.babelrc文件修改

{
+  "presets": ["env"]
-  "presets": ["es2015"]
}

 

3.

Installing ERROR | Unexpected end of JSON input while parsing near ' : ' 

安装一直报错,这个时候需要清除缓存 npm cache clean --force

相关文章:

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