created a ionic2 project using sidemenu template but when run ionic serve inside project folder:
Error: ENOENT: no such file or directory, open '/root/Documents/mobile/ionic2/project5/www/index.html’
In github sidemenu project I didn’t find index.html under ww and also there is no build folder inside www.
Even I add platform android, no build folder generated and ionic serve not working
Its working fine in the older projects created earlier, so it may be problem with the latest update?
ionic -v
2.1.1
cordova -v
6.3.1
npm -v
3.10.3
node -v
v6.6.0
This is my directory structure (seems fine to me)
config.xml node_modules plugins tsconfig.json
hooks package.json resources tslint.json
ionic.config.json platforms src www
This is my pacjage.json
{
“name”: “ionic-hello-world”,
“author”: “Ionic Framework”,
“homepage”: “http://ionicframework.com/”,
“private”: true,
“scripts”: {
“ionic:build”: “ionic-app-scripts build”,
“ionic:serve”: “ionic-app-scripts serve”
},
“dependencies”: {
"@angular/common": “2.1.1”,
"@angular/compiler": “2.1.1”,
"@angular/compiler-cli": “2.1.1”,
"@angular/core": “2.1.1”,
"@angular/forms": “2.1.1”,
"@angular/http": “2.1.1”,
"@angular/platform-browser": “2.1.1”,
"@angular/platform-browser-dynamic": “2.1.1”,
"@angular/platform-server": “2.1.1”,
"@ionic/storage": “1.1.6”,
“ionic-angular”: “2.0.0-rc.3”,
“ionic-native”: “2.2.3”,
“ionicons”: “3.0.0”,
“rxjs”: “5.0.0-beta.12”,
“zone.js”: “0.6.26”
},
“devDependencies”: {
"@ionic/app-scripts": “0.0.45”,
“typescript”: “2.0.6”
},
“description”: “project5: An Ionic project”,
“cordovaPlugins”: [
“cordova-plugin-device”,
“cordova-plugin-console”,
“cordova-plugin-whitelist”,
“cordova-plugin-splashscreen”,
“cordova-plugin-statusbar”,
“ionic-plugin-keyboard”
],
“cordovaPlatforms”: []
}
I am using linux (CentOs7)