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

问题描述 投票:1回答:2

使用这些版本的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 ([email protected])<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将退出。请检查上面的任何输出以获取错误详情。

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

node.js cordova ionic-framework ionic3
2个回答
0
投票

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

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


0
投票

请将您的离子版本从4更改为3

© www.soinside.com 2019 - 2024. All rights reserved.