企业🤖AI智能体构建引擎,智能编排和调试,一键部署,支持私有化部署方案 广告
[TOC] # ionic问题汇总: ## 1:ionic app混淆,遇到命令:`ionic serve`时报错! ![](https://box.kancloud.cn/910052fd58b943e48272f4313fa9c765_643x258.png) 先要理解:需要安装python2.7和vs2012,再把node-sass自己build出来的 解决步骤:1,[关于安装gulp-sass失败的问题解决](http://blog.csdn.net/jimmyhandy/article/details/50723174) 2,如果上面都不能解决你的问题,那你的问题很可能是: ~~~ Check that you have the latest gulp-sass version in package.json; It's a dependency of node-sass + required by Ionic, e.g. "dependencies": { "gulp-sass": "^2.3.2" }, Uninstall gulp-sass $ npm uninstall --save-dev gulp-sass Reinstall gulp-sass $ npm install --save-dev gulp-sass@2 There are a large number of issues pertaining to node-sass installation. You may have to rebuild node-sass: $ npm rebuild node-sass ~~~ >参考:http://stackoverflow.com/questions/37207069/error-when-running-ionic-serve-in-ionic-2 总结:我想我可能是因为npm install 了最新的ionic 2,所以有这个问题!