最近学习Ionic+angular+cordova混合式开发,项目创建就卡了两天。使用ionic start project_name [template]方式创建之后,ionic serve 跑项目时报错
错误如下:
[img]http://dl2.iteye.com/upload/attachment/0129/9242/305a9a3d-af44-3153-86ab-1dc9340f5a26.png[/img]
找了各种办法,把ionic由3.20降到3.9、使用http代理等等办法都不行。最后,在github上找到了解决办法。
引起这个问题的原因是,app-script@3.1.0,依赖ws@3.3.3版本,这个问题出现在ws中。所以替换wx即可。
npm install ws@3.3.2
注:貌似该问题出现在chrome浏览器中。
错误如下:
[img]http://dl2.iteye.com/upload/attachment/0129/9242/305a9a3d-af44-3153-86ab-1dc9340f5a26.png[/img]
找了各种办法,把ionic由3.20降到3.9、使用http代理等等办法都不行。最后,在github上找到了解决办法。
引起这个问题的原因是,app-script@3.1.0,依赖ws@3.3.3版本,这个问题出现在ws中。所以替换wx即可。
npm install ws@3.3.2
注:貌似该问题出现在chrome浏览器中。