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

Ionic serve error: Error: ENOENT: no such file or directory, open '/home/.../IonicTest/www/index.html'

Open pdrosos opened this issue 10 years ago • 63 comments

Hi,

I have just removed the previous version of ionic cli and installed the new one: npm uninstall -g ionic npm cache clean npm install -g ionic

and started a new project: ionic start IonicTest --v2

The project is generated with the latest ionic-angular 2.0.0-rc.0, but when I go to the project directory and run ionic serve, I see an error in the browser: Error: ENOENT: no such file or directory, open '/home/pavlina/IonicTest/www/index.html'

CC @jgw96 @danbucholtz @brandyscarney

pdrosos avatar Sep 28 '16 10:09 pdrosos

+1

same problem

flutterwhale avatar Sep 28 '16 10:09 flutterwhale

Try updating to the current version of Node, not LTS: https://nodejs.org/en/download/current/

I had trouble on 4.x, but with Node v6.7.0 and npm v3.10.3 everything worked fine.

joshuamorony avatar Sep 28 '16 11:09 joshuamorony

@joshuamorony thanks! It works with Node 6.7.0 indeed. I was with 6.5.0 before, which is not the LTS, but there were obviously some issues with it.

pdrosos avatar Sep 28 '16 11:09 pdrosos

same problem node5.12.0 npm 3.8.6

huichogil avatar Sep 28 '16 21:09 huichogil

I have done everything mentioned in this forum but still has same issue.

This is very frustrating.

chandandas avatar Sep 29 '16 05:09 chandandas

save problem

adirzoari avatar Sep 29 '16 08:09 adirzoari

I've node 6.6.0, npm 3.10.3 and ionic 2.0.0. I'm getting same error too. I also noticed that there is no gulpfile.js to build the app. Please help.

Issue, got resolved after updating ionic 2.1.0 Thanks

mmmathur avatar Sep 29 '16 09:09 mmmathur

I just wake up this morning with many problems with ionic 2 project. yesterday everything worked project with another project I worked on. anyone know how to import "LocalStorage"? it shows me error "LocalStorage is undefined".

adirzoari avatar Sep 29 '16 11:09 adirzoari

A few things need to be checked:

  1. CLI version should be 2.1.0 not beta. If you run ionic -v and have anything other than 2.1.0, run:

    npm uninstall -g ionic
    npm install -g ionic
    
  2. NPM version needs to be 3.x, you can check this by running npm -v, if it is not, upgrade your npm version by installing Node 6 or following the instructions here: https://docs.npmjs.com/getting-started/installing-node#updating-npm

We released RC0 with many breaking changes. These have been outlined in the changelog. Please check the changelog and let me know if we need to add clarification to it. We also posted a blog here: http://blog.ionic.io/announcing-the-ionic-2-release-candidate/

@adirzoari Storage has been moved. See the storage section in the changelog.

brandyscarney avatar Sep 29 '16 12:09 brandyscarney

@brandyscarney thank your for you reply. what about the LocalStorage? how I import it? I just trying to do ` public local: Storage; this.local=new Storage(LocalStorage);

;` and I get error--> LocalStorage is undefined

adirzoari avatar Sep 29 '16 12:09 adirzoari

@brandyscarney another thing. when I try to install npm install @ionic/storage --save --save-exact I get this error

npm WARN optional Skipping failed optional dependency /chokidar/fsevents: npm WARN notsup Not compatible with your operating system or architecture: [email protected]

adirzoari avatar Sep 29 '16 12:09 adirzoari

@adirzoari,

LocalStorage was removed from Ionic as it wasn't a best practice. See the changelog for instructions on how to get up and running with the new @ionic/storage module.

Thanks, Dan

danbucholtz avatar Sep 29 '16 14:09 danbucholtz

i cant solve the Eonent issue for 4 days i am about to turn mad :(

ghost avatar Oct 02 '16 17:10 ghost

@blackkaiken,

Can you provide some more info?

If you run ionic --version, what prints out? If you run npm --version, what prints out?

Can you run npm run build from your project directory and let me know the output?

Thanks, Dan

danbucholtz avatar Oct 03 '16 02:10 danbucholtz

hello, why I don't have access to global.scss? I mean when I defined button with primary color it's not change the color to primary color, why is that? i checked the global page exist.

adirzoari avatar Oct 04 '16 17:10 adirzoari

@adirzoari,

Please create separate issues for your issues.

https://github.com/driftyco/ionic/issues

Thanks, Dan

danbucholtz avatar Oct 04 '16 17:10 danbucholtz

hey dan, I opened a new issue. just saying that I never get recive to my 4 posts i open.. just when I write into other issues I get recive.. feel confused about that.

adirzoari avatar Oct 04 '16 17:10 adirzoari

@danbucholtz @adirzoari

thank you very much for your responses here is the screen shot. if you help me i ll be honoured

http://imgim.com/image/4108inciy4859929.png

ghost avatar Oct 06 '16 10:10 ghost

I have the same problem error_app_test3

ionic info: captura de tela de 2016-10-06 08-58-05

Can someone help me?

lucascardoso avatar Oct 06 '16 12:10 lucascardoso

Are you all running npm 3.x?

Can you run npm --version and verify?

Thanks, Dan

danbucholtz avatar Oct 06 '16 14:10 danbucholtz