I have just transferred ionic 2 project code from mac to windows and when i am trying to run ionic serve. I am getting this error, please check below:
ionic-hello-_emphasized text_world@ ionic:serve D:\Applications\App
ionic-app-scripts serve
'ionic-app-scripts' is not recognized as an internal or external command,
operable program or batch file.
npm ERR! Windows_NT 6.3.9600`Preformatted text`
npm ERR! argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bi
npm ERR! node v6.9.2
npm ERR! npm v3.10.9
npm ERR! code ELIFECYCLE
npm ERR! ionic-hello-world@ ionic:serve: `ionic-app-scripts serve`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the ionic-hello-world@ ionic:serve script 'ionic-app-scripts serve'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the ionic-hello-world package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! ionic-app-scripts serve
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs ionic-hello-world
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls ionic-hello-world
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request:
npm ERR! D:\Applications\App\npm-debug.log
There was an error serving your Ionic application: There was an error with the spawned command: serve
No, Didn’t managed to fix this. Will work on the same later, currently working on mac for both (ios and android). Please let me know if you fix this.