Ionic serve command not working


#1

Hello,

I am new to Ionic, learning from udemy…
I am trying to run ionic serve command in Windows10 Bash CLI

This is what I get in return:

Please help


#2

What is your ionic info output?


#3

Here is my output

hamas@DESKTOP-32LEMPU:/mnt/c/Users/DesignImpact/Documents/ionic1/project1$ ionic info
[WARN] Error with ./www/lib/ionic/version.json file: FILE_NOT_FOUND, trying ./bower.json.

cli packages: (/usr/lib/node_modules)

    @ionic/cli-utils  : 1.19.0
    ionic (Ionic CLI) : 3.19.0

global packages:

    cordova (Cordova CLI) : 7.1.0
    Gulp CLI              : CLI version 3.9.1 Local version 3.9.1

local packages:

    Cordova Platforms : none
    Ionic Framework   : ionic1 1.3.4

System:

    Node : v9.2.0
    npm  : 5.5.1
    OS   : Linux 3.4

Environment Variables:

    ANDROID_HOME : not set

Misc:

    backend : pro


#4

I would advise you to try a LTS version.


#5

How do you i get it in current project?
Please don’t mind I m very new to this


#6

You can only change the version globally, but there are ways to have several versions installed at the same time:

Uninstall your node, install nvm (or nvm-windows if you are on Windows), install a new node (which includes npm) with this, then install ionic and cordova again and try your command again.