Ionic serve error: Error: ENOENT: no such file or directory, open '/home/.../IonicTest/www/index.html'
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
+1
same problem
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 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.
same problem node5.12.0 npm 3.8.6
I have done everything mentioned in this forum but still has same issue.
This is very frustrating.
save problem
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
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".
A few things need to be checked:
-
CLI version should be 2.1.0 not beta. If you run
ionic -vand have anything other than2.1.0, run:npm uninstall -g ionic npm install -g ionic -
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 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
@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,
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
i cant solve the Eonent issue for 4 days i am about to turn mad :(
@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
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,
Please create separate issues for your issues.
https://github.com/driftyco/ionic/issues
Thanks, Dan
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.
@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
I have the same problem

ionic info:

Can someone help me?
Are you all running npm 3.x?
Can you run npm --version and verify?
Thanks, Dan