ionic-framework icon indicating copy to clipboard operation
ionic-framework copied to clipboard

Error: ENOENT: no such file or directory, open d:\ionic2app\www\index.html'

Open junaidahmed93 opened this issue 10 years ago • 29 comments

I am trying to run Ionic project using ionic serve, but facing Error: ENOENT : no such file or directory, open d:\ionic2app\www\index.html I have update ionic but still no luck.

junaidahmed93 avatar Sep 28 '16 19:09 junaidahmed93

Hello, thanks for opening an issue with us. Would you mind telling me what version of the ionic-cli you are using? You can just run ionic --version to get the version.

jgw96 avatar Sep 28 '16 19:09 jgw96

Ionic version is 2.1.0

junaidahmed93 avatar Sep 28 '16 19:09 junaidahmed93

I believe the reason for this is that the build step isn't being run. I'm still getting errors because ionic serve is looking for a gulpfile

keithmattix avatar Sep 28 '16 19:09 keithmattix

probably this issue happens because of npm version. ionic requires npm version 3

comfortme avatar Sep 28 '16 20:09 comfortme

I updated, uninstalled, and reinstalled

On Wed, Sep 28, 2016 at 3:41 PM comfortme

< mailto:comfortme [email protected]

wrote:

a, pre, code, a:link, body { word-wrap: break-word !important; }

probably this issue happens because of npm version.

ionic requires npm version 3

—

You are receiving this because you commented.

Reply to this email directly, https://github.com/driftyco/ionic/issues/8262#issuecomment-250292786 , or https://github.com/notifications/unsubscribe-auth/ABdfDusJHYANNhX1l2j79cKAVpHeuU1Kks5qutDegaJpZM4KJNO- .

keithmattix avatar Sep 28 '16 20:09 keithmattix

@junaidahmed93 and @keithmattix what version of nodejs and NPM are you all running? Thanks!

jgw96 avatar Sep 28 '16 20:09 jgw96

I'm using nvm doing node 6.7.0 and npm 3.10.3

keithmattix avatar Sep 28 '16 20:09 keithmattix

@keithmattix what version of the ionic cli are you using?

jgw96 avatar Sep 28 '16 20:09 jgw96

Hm, it says 2.0.0-beta.23...I just uninstalled and reinstalled today.

keithmattix avatar Sep 28 '16 20:09 keithmattix

@jgw96 My Node version is 4.5 and npm 3.10.8

junaidahmed93 avatar Sep 28 '16 20:09 junaidahmed93

@keithmattix can you run npm uninstall -g ionic and npm install -g ionic. The beta flag is no longer required (: @junaidahmed93 are you getting this error with a beta.11 app or an RC.0 app?

jgw96 avatar Sep 28 '16 20:09 jgw96

@jgw96 I am getting this error with RC.0 app.

junaidahmed93 avatar Sep 28 '16 20:09 junaidahmed93

Same; mine is an rc.0 app

keithmattix avatar Sep 28 '16 21:09 keithmattix

I am getting this error with RC.0 app.

It seems that the files of pages directory, is not compiling for the build folder.

bergmito avatar Sep 28 '16 21:09 bergmito

@bergmito are you running Ionic cli version 2.1.0?

jgw96 avatar Sep 28 '16 21:09 jgw96

Yes, i'm running Ionic cli version 2.1.0.

Solve my problem, changing template url from components.

Before: templateUrl: 'build/pages/configs/configs.html', Now: templateUrl: 'configs.html',

bergmito avatar Sep 28 '16 21:09 bergmito

Ah, I figured out my problem. My old nvm version didn't allow my ionic binary to update

keithmattix avatar Sep 28 '16 21:09 keithmattix

@jgw96 , My problem is solved by updating ionic (nothing changes in version but app is working now strange). Thanks

junaidahmed93 avatar Sep 28 '16 21:09 junaidahmed93

Tanks for all

bergmito avatar Sep 28 '16 21:09 bergmito

@bergmito you can check out our changelog update instructions for all the upgrade instructions. Since it seems like this issue was fixed for everyone I am going to close this issue for now. Thanks!

jgw96 avatar Sep 28 '16 21:09 jgw96