前几天发现ionic升级到了 ionic2 ,如是就去cmd上工更新一下:
npm update npm ionic
结果就,之前的项目都 ionic serve 运行不起来了。
还报
gyp ERR! stack Error: Can't find Python executable "python", you can set the
解决方法:
$ npm install --global --production windows-build-tools
然后:
$ npm install --global node-gyp