gpt4 book ai didi

node.js - 无法使用命令 ionic server 运行 ionic 项目

转载 作者:太空宇宙 更新时间:2023-11-04 01:40:43 24 4
gpt4 key购买 nike

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

ionic :

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 (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>

当我在命令行中输入 ionicserve 时,出现以下错误:

[app-scripts] '"E:\uQuestfinal\node_modules.bin\ionic-app-scripts"' is not recognized as an internal or external command, [app-scripts] operable program or batch file.

[ERROR] ionic-app-scripts has unexpectedly closed (exit code 1).

The Ionic CLI will exit. Please check any output above for error details.

我该如何解决这个问题?

最佳答案

[app-scripts] 运行 npmrebuildnode-sass --force 为当前环境构建绑定(bind)。

您在错误消息中看到了吗?我运行该命令后它起作用了。

关于node.js - 无法使用命令 ionic server 运行 ionic 项目,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/53076504/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com