Quantcast
Channel: Ionic Framework - Ionic Forum
Viewing all articles
Browse latest Browse all 49248

Ionic serve fails after upgrade to CLI 5.0.2 - [ng] The system cannot find the path specified

$
0
0

@synpanuser wrote:

I upgraded the ionic CLI to 5.0.2 (from 4.12.something, if I remember correctly) with

npm install -g ionic

after that, ionic serve no longer works:

C:\mobile\myappdir>ionic serve
> ng.bat run app:serve --host=localhost --port=8100
[ng] The system cannot find the path specified.

[ERROR] ng has unexpectedly closed (exit code 1).

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

I tried running the following, but it didn’t change anything:

npm install -g cordova-res native-run
npm install @ionic/angular-toolkit@latest

Other pertinent info:


C:\mobile\myappdir>ionic info

Ionic:

Ionic CLI : 5.0.2 (C:\Users\alfon1\AppData\Roaming\nvm\v10.15.0\node_modules\ionic)
Ionic Framework : @ionic/angular 4.4.0
@angular-devkit/build-angular : 0.13.9
@angular-devkit/schematics : 7.3.9
@angular/cli : 7.3.9
@ionic/angular-toolkit : 1.5.1

Cordova:

Cordova CLI : 8.1.2 (cordova-lib@8.1.1)
Cordova Platforms : android 7.1.4
Cordova Plugins : cordova-plugin-ionic-keyboard 2.1.3, cordova-plugin-ionic-webview 2.4.1, (and 8 other plugins)

Utility:

cordova-res : 0.3.0
native-run : 0.2.5

System:

Android SDK Tools : 26.0.2 (c:\users\alfon1\appdata\local\android\sdk)
NodeJS : v10.15.0 (C:\Program Files\nodejs\node.exe)
npm : 6.4.1
OS : Windows 10


Everything was running correctly until the CLI upgrade.

Other ionic commands also fail with a similar message (e.g. ionic build).

“Cordova build android” runs without an issue and produces an APK.

“ionic cordova build android” fails:

C:\mobile\davdtexv03>ionic cordova build android
> ng.bat run app:ionic-cordova-build --platform=android
The system cannot find the path specified.
[ERROR] An error occurred while running subprocess ng.

        ng.bat run app:ionic-cordova-build --platform=android exited with exit code 1.

        Re-running this command with the --verbose flag may provide more information.

C:\mobile\davdtexv03>

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 49248

Trending Articles