IONIC SERVE for Ionic --2

Hi, i just installed a blank ionic --2 but my index.html is inside src/index instead of www/index.
Now when i run ionic serve this is what i get
Error: ENOENT: no such file or directory, open ‘C:\Projects\Ionic 2 Projects\ionic-todo\www\index.html’

please assit.

I am having same problem

@bipzyy & @JUmar
Try replacing scripts in package.json :

  "scripts": {
    "build": "ionic-app-scripts build",
    "watch": "ionic-app-scripts watch",
    "serve:before": "watch",
    "emulate:before": "build",
    "deploy:before": "build",
    "build:before": "build",
    "run:before": "build"

Hello mvrc,
I face the same problem,
I got the same error also. I copy and paste your code and now the command “ionic serve” is working well.
thank you !!

1 Like

Thanks dear you save my time love u <3