首页 文章

无法使用命令离子服务器运行离子项目

提问于
浏览
1

使用这些版本的Ionic,Cordova和Node.js

离子型:

ionic (Ionic CLI)  : 4.2.1 <br>(C:\Users\yymal\AppData\Roaming\npm\node_modules\ionic)<br>
Ionic Framework    : ionic-angular 3.9.2<br>
@ionic/app-scripts : 3.2.0<br>

科尔多瓦:

cordova (Cordova CLI) : 8.1.2 (cordova-lib@8.1.1)<br>
Cordova Platforms     : android 7.0.0<br>
Cordova Plugins       : cordova-plugin-ionic-keyboard 2.1.3, cordova-plugin-ionic-webview 2.2.0, (and 7 other plugins)

系统:

NodeJS : v8.12.0 (C:\Program Files\nodejs\node.exe)<br>
npm    : 6.4.1<br>
OS     : Windows 10<br>

当我在命令行中键入ionic serve时,出现以下错误:

[app-scripts]'“E:\ uQuestfinal \ node_modules.bin \ ionic-app-scripts”'不被识别为内部或外部命令,[app-scripts]可操作程序或批处理文件 . [ERROR] ionic-app-scripts意外关闭(退出代码1) . Ionic CLI将退出 . 请检查上面的任何输出以获取错误详情 .

我怎样才能解决这个问题?

1 回答

  • 0

    [app-scripts]运行 npm rebuild node-sass --force 为您当前的环境构建绑定 .

    你在错误信息中得到了吗?在我运行该命令后它工作了 .

相关问题