Can not run ionic project using command ionic server

General Tech Bugs & Fixes 2 years ago

0 3 0 0 0 tuteeHUB earn credit +10 pts

5 Star Rating 1 Rating

Posted on 16 Aug 2022, this text provides information on Bugs & Fixes related to General Tech. Please note that while accuracy is prioritized, the data presented might not be entirely correct or up-to-date. This information is offered for general knowledge and informational purposes only, and should not be considered as a substitute for professional advice.

Take Quiz To Earn Credits!

Turn Your Knowledge into Earnings.

tuteehub_quiz

Answers (3)

Post Answer
profilepic.png
manpreet Tuteehub forum best answer Best Answer 2 years ago

Using these versions of Ionic, Cordova, and 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)

System:

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

When I type ionic serve in the command line, I get the following error:

[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.

How can I fix this?

profilepic.png
manpreet 2 years ago

[app-scripts] Run npm rebuild node-sass --force to build the binding for your current environment.

Do you get that in the error message? It worked after I ran that command.


0 views   0 shares

profilepic.png
manpreet 2 years ago

[app-scripts] Run npm rebuild node-sass --force to build the binding for your current environment.

Do you get that in the error message? It worked after I ran that command.


0 views   0 shares

No matter what stage you're at in your education or career, TuteeHub will help you reach the next level that you're aiming for. Simply,Choose a subject/topic and get started in self-paced practice sessions to improve your knowledge and scores.