Failed at the ionic-hello-world@ watch script 'ionic-app-scripts watch'.
See original GitHub issueNote: for support questions, please use one of these channels:
https://forum.ionicframework.com/ http://ionicworldwide.herokuapp.com/
Note: for build related issues you can open up an issue on the ionic-app-scripts repo
https://github.com/driftyco/ionic-app-scripts
Short description of the problem:
Cannot type ionic serve
without getting the following error
What behavior are you expecting?
Seeing my code run in a browser
Steps to reproduce:
- Installed node 6
- Installed ionic and cordova
- Verified that repository works on other machines
ionic serve
Running 'serve:before' npm script before serve
> ionic-hello-world@ watch /Users/Tassos/Dropbox/Code/LittleBrother
> ionic-app-scripts watch
sh: ionic-app-scripts: command not found
npm ERR! Darwin 15.6.0
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "run" "watch" "--color"
npm ERR! node v6.9.1
npm ERR! npm v3.10.8
npm ERR! file sh
npm ERR! code ELIFECYCLE
npm ERR! errno ENOENT
npm ERR! syscall spawn
npm ERR! ionic-hello-world@ watch: `ionic-app-scripts watch`
npm ERR! spawn ENOENT
npm ERR!
npm ERR! Failed at the ionic-hello-world@ watch script 'ionic-app-scripts watch'.
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 watch
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! /Users/Tassos/Dropbox/Code/LittleBrother/npm-debug.log
Caught exception:
undefined
Mind letting us know? https://github.com/driftyco/ionic-cli/issues
Post the output of ionic info
below please
ionic info
--------------------------------
--------------------------------
Your system information:
Cordova CLI: 6.3.1
Ionic CLI Version: 2.1.1
Ionic App Lib Version: 2.1.1
ios-deploy version: Not installed
ios-sim version: 5.0.8
OS: Mac OS X El Capitan
Node Version: v6.9.1
Xcode version: Xcode 8.0 Build version 8A218a
--------------------------------
******************************************************
Dependency warning - for the CLI to run correctly,
it is highly recommended to install/upgrade the following:
Install ios-deploy to deploy iOS applications to devices. `npm install -g ios-deploy` (may require sudo)
******************************************************
Other information: (e.g. stacktraces, related issues, suggestions how to fix, stackoverflow links, forum links, etc)
Issue Analytics
- State:
- Created 7 years ago
- Comments:10 (1 by maintainers)
Top Results From Across the Web
Failed at the ionic-hello-world@ watch script 'ionic-app-scripts ...
Steps to reproduce: Installed node 6; Installed ionic and cordova; Verified that repository works on other machines. ionic serve Running 'serve:before' npm ...
Read more >Serve error - ionic-v3 - Ionic Forum - Ionic Framework
I'm getting an error when running ionic serve command. Running 'serve:before' npm script before serve > ionic-hello-world@ watch /home/arvin/mobile/gumanaka ...
Read more >A watch configured to watch the following paths failed to start ...
I guess that the problem is when ionic serve command is invoked, it calls an NPM script. This npm scripts call the @ionic/app-scripts...
Read more >@ionic/app-scripts - npm
Helper scripts to get Ionic apps up and running quickly (minus the config overload). To get the latest @ionic/app-scripts , please run: npm ......
Read more >WebStorm 2017.1 EAP, 171.3224 breaks ionic serve (ionic 2 ...
For more information, please see the default Ionic project main.ts file here: ... Failed at the ionic-hello-world@ ionic:serve script 'ionic-app-scripts ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
In my case it appears that the problem was related to having my ionic app running in a folder that was synced to cloud services (Dropbox, iCloud). After moving the directory to a non-synced folder, things began working again. # #
@tlambrou i solve this by adding ionic-app-scripts to the project
npm install @ionic/app-scripts@latest --save-dev