[SOLVED]Error when starting an app

I am using latest Ionic.
I get this.

× Running command - failed!
[ERROR] An error occurred while running npm install (exit code 1):

        npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.1.2 (node_modules\fsevents):
        npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, rename
        'C:\Users\DaX\Desktop\vodomerIonic-master\node_modules\.staging\fsevents-d48d4a7d\node_modules\abbrev' ->

        npm ERR! code E404
        npm ERR! 404 Not Found: ansi-styles@https://registry.npmjs.org/ansi-styles/-/ansi-styles-2.2.0.tgz

        npm ERR! A complete log of this run can be found in:
        npm ERR!     C:\Users\DaX\AppData\Roaming\npm-cache\_logs\2017-08-26T20_57_43_086Z-debug.log

I’ve tried to delete node_modules folder but it didn’t help me.


Fixed it by deleting and reinstalling Node. I think that problem was with unstable release of version 8. So i’ve deleted everything following answers here and installed stable release of Node again and everything worked fine for me.

Looks like a network problem. If you’re behind a firewall, can you get out from under it?

1 Like

Tried on few networks and 3 different PCs, Linux/Windows and MacBook Air(which was used to develop this app previous two months.