Error: ENOENT: no such file or directory, open 'app/www/index.html'


#1

Hello, I tried to update the version of ionic to 2.1.0 and tried to create a new project, but every time I run the ionic serves appears this:

Could anyone help me with this issue?
Thanks in advance!


#2

I’m having exactly the same problem and i’m trying to figure out what’s wrong. I’m also having problems with TS in this new version.

Hopefully some can help us with this.


#3

Well I’ve just solved it. All I have to do was update Node to v6.


#4

I updated the version of the node and deleted the project and created again but still did not work for me.

Thank you!


#5

@laurazenc the index.html file appears to you in the folder ‘www /’?

Thank you!


#6

yes, it’s there now. I also did npm install/ npm update after the ionic start.


#7

No success yet :frowning:
I ran the commands npm npm install and update and it did not work
After I deleted the folder ‘node_modules’ and ran the npm install command, but still did not work

Thanks for your help!


#8

Have you tried creating the project again after updating node?


#9

Yes, I’ve tried to create a new project after upgrading the node


#10

Even I have the same issue as I stated here

https://forum.ionicframework.com/t/ionic-2-rc0-serve-and-run-screwed-up/65526/3

It happens when compilation fails. so index is not generated in www.
and compilation fails at any random time.


#11

and how could I solve this?


#12

I don’t know the solution yet. I simply keep restarting serve , it works randomly.


#13

It worked for me!
I ran the command npm config set ignore-scripts false
and then I ran the command npm run build
Now the index file and folder build there