Ionic打包和启动APP报错汇总

胡鸿禧
2023-12-01

一、打包报错

Error: Metadata version mismatch for module E:/Ionic 2/kit/node_modules/@ionic-native/device/index.d.ts, found version 4 , expected 3

暂未解决

参考https://github.com/ionic-team/ionic-native/issues/2620

将angular版本升级到5,@ ionic-native安装到固定版本4.10.1

二、启动APP报错

ionic serve: @ionic/app-scripts isn't installed in this project, but it is.

通过重装解决

参考https://github.com/ionic-team/ionic-cli/issues/3399

rm -rf node_modules package-lock.json

npm install

 类似资料: