美文网首页
Ionic打包和启动APP报错汇总

Ionic打包和启动APP报错汇总

作者: 仙女滢宝的李先生 | 来源:发表于2018-12-06 17:25 被阅读0次

    一、打包报错

    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

    相关文章

      网友评论

          本文标题:Ionic打包和启动APP报错汇总

          本文链接:https://www.haomeiwen.com/subject/grnocqtx.html