只要运行这个代码就好了
npm install -gd ionic cordova --registry https://registry.npmjs.org
但是很遇到了新的问题
npm i
npm WARN @ionic/angular-toolkit@1.0.0 requires a peer of @angular-devkit/architect@0.9.0-beta.3 but none is installed. You must install peer dependencies yourself.
npm WARN @ionic/angular-toolkit@1.0.0 requires a peer of @angular-devkit/build-angular@0.9.0-beta.3 but none is installed. You must install peer dependencies yourself.
npm WARN @ionic/angular-toolkit@1.0.0 requires a peer of @angular-devkit/core@0.9.0-beta.3 but none is installed. You must install peer dependencies yourself.
npm WARN @ionic/angular-toolkit@1.0.0 requires a peer of @angular-devkit/schematics@0.9.0-beta.3 but none is installed. You must install peer dependencies yourself.
npm ERR! code EINTEGRITY
npm ERR! sha512-lcUKrjbBfCK6MNsh7xaY2UAUmZwe+/ib03AjVOpFobX4O7+83BUveSrLfU0Qsyb1DaKJdQRbuU+kM9aZ6QUhiQ== integrity checksum failed when using sha512: wanted sha512-lcUKrjbBfCK6MNsh7xaY2UAUmZwe+/ib03AjVOpFobX4O7+83BUveSrLfU0Qsyb1DaKJdQRbuU+kM9aZ6QUhiQ== but got sha512-+AiGn/ZddTKhkV0sX6DZSlHsJS5q0AHcEJskS8hjGTdeIzQ1YOip0eYkG0vr3GJNyoqzWMknvie8tLSXUlpJ4g==. (13062 bytes)
经过几次尝试发现就是网络不好的多试验几次居然行了。
网友评论