1.cannot find module node_modules\@ionic\app-scripts ionic
网络不好 记得安装淘宝镜像,我用npm装东西就没装上过
安装淘宝镜像
npm install -g cnpm --registry=https://registry.npm.taobao.org
用cnpm装东西
cnpm install@ionic/app-scripts@latest --save-dev
2.ionic页面报错webpackJsonP is not defined
index.html 里引用vendor.js
<
body
>
<!-- Ionic's root component and where the app will load -->
<
ion-app
></
ion-app
>
<!-- The polyfills js is generated during the build process -->
<
script
src=
"build/polyfills.js"
>
<
/
script
>
<
script
src=
"build/vendor.js"
>
<
/
script
>
<!-- The bundle js is generated during the build process -->
<
script
src=
"build/main.js"
>
<
/
script
>
</
body
>