There was an error with spawned command : serve

I am new in this framework , i have installed node v6.9.1 , npm v3.10.8 and cordova wih 6.4.0 but when i fire command IONIC SERVE , it gives me warning about updating your Cordova. and other errors are also coming i don’t know for what reason. Thank You

C:\Windows\System32\First>ionic serve


Dependency warning - for the CLI to run correctly,
it is highly recommended to install/upgrade the following:

Please install your Cordova CLI to version >=4.2.0 npm install -g cordova


WARN: No node_modules directory found, do you need to run npm install?
npm ERR! Windows_NT 10.0.14393
npm ERR! argv “C:\Program Files\nodejs\node.exe” “C:\Program Files\nodejs\node_modules\npm\bin\npm-cli.js” “run
” “ionic:serve” "–"
npm ERR! node v6.9.1
npm ERR! npm v3.10.8

npm ERR! missing script: ionic:serve
npm ERR!
npm ERR! If you need help, you may report this error at:
npm ERR! https://github.com/npm/npm/issues

npm ERR! Please include the following file with any support request:
npm ERR! C:\Windows\System32\npm-debug.log
There was an error serving your Ionic application: There was an error with the spawned command: serve

C:\Windows\System32\First>npm -version
3.10.8

C:\WINDOWS\system32>cordova --version
? May Cordova anonymously report usage statistics to improve the tool over time? (Y/n)
You have been opted out of telemetry. To change this, run: cordova telemetry on.
6.4.0

C:\WINDOWS\system32>

ionic serve is fired from the project folder.
Is the project folder set up in System32?

Nup its in other folder , but it is solved now. thank you

Nup it’s in other folder , but it is solved now. thank you

How did you solve this?

@cashpass Actually, there is no node_modules folder in his project directory I guess.
because his log says that,

WARN: No node_modules directory found, do you need to run npm install?

In such case, you have to perform npm install from your project directory.
Then ionic build android and finally ionic run android or ionic serve.