Hi,
I installed today NodeJs. from scratch then installed Ionic and Cordova:
npm install -g cordova ionic
It went fine, no errors.Now my versions are:
global packages:
@ionic/cli-utils : 1.2.0
Ionic CLI : 3.2.0
System:
Node : v6.10.3
OS : Windows 7
Xcode : not installed
ios-deploy : not installed
ios-sim : not installed
Then I tried to start a new app with blank(or sidemenu) template. Which started with no errors.
Now when i run ionic serve, i get no errors in console, but i get only a blank app in browser stating the main.js is missing.
Indeed the file is not in www\bild, neither the map for main.js.
What i tried:
- Different version of node js (6.10.3 and 6.7.0 with nvm-windowds)
- Uninstall and delete the whole thing
- Use windows command line instead of gitbash
- Google the answer for a few hours
The question is: What else could i try? What could be the issue?
UPDATE
This is the start:
user@user-PC MINGW64 /e/!EPApp
$ ionic start asd blank
Creating directory .\asd - done!
[INFO] Fetching app base (https://github.com/driftyco/ionic2-app-base/archive/master.tar.gz)
Downloading - done!
[INFO] Fetching starter template blank (https://github.com/driftyco/ionic2-starter-blank/archive/master.tar.gz)
Downloading - done!
Updating package.json with app details - done!
Creating configuration file ionic.config.json - done!
[INFO] Installing dependencies may take several minutes!npm install
Running command - done!
npm install --save-dev --save-exact @ionic/cli-plugin-ionic-angular@latest
Running command - done!
git init
Running command - done!
git add -A
Running command - done!
git commit -m Initial commit
Running command - done!
β¬ β« β¬ β« Your Ionic app is ready to go! β¬ β« β¬ β«
Run your app in the browser (great for initial development):
ionic serve
Run on a device or simulator:
ionic cordova run ios
Test and share your app on a device with the Ionic View app:
http://view.ionic.io
? Link this app to your Ionic Dashboard to use tools like Ionic View? (Y/n) n
? Link this app to your Ionic Dashboard to use tools like Ionic View? No
Go to your newly created project: cd .\asd
Ionic info in project:
$ ionic info
global packages:
@ionic/cli-utils : 1.2.0 Ionic CLI : 3.2.0
local packages:
@ionic/app-scripts : 1.3.7 @ionic/cli-plugin-ionic-angular : 1.2.0 Ionic Framework : ionic-angular 3.2.1
System:
Node : v6.10.3 OS : Windows 7 Xcode : not installed ios-deploy : not installed ios-sim : not installed
Ionic serve:
Shows a blank page in the browser and writes this into the console:
Failed to load resource: the server responded with a status of 404 (Not Found) main.js
Ionic Serve:
$ ionic serve -lab
[INFO] Starting app-scripts server: --nobrowser --b --lab --l --a --port 8100 β p 8100 --livereload-port 35729 --r 35729 --address 0.0.0.0 - Ctrl+C to cancel
[16:12:12] watch started β¦
[16:12:12] build dev started β¦
[16:12:12] clean started β¦
[16:12:12] clean finished in 2 ms
[16:12:12] copy started β¦
[16:12:12] transpile started β¦
[16:12:15] transpile finished in 3.65 s
[16:12:15] preprocess started β¦
[16:12:15] deeplinks started β¦
[16:12:15] deeplinks finished in 25 ms
[16:12:15] preprocess finished in 25 ms
[16:12:16] webpack started β¦
[16:12:16] webpack finished in 235 ms
[16:12:16] sass started β¦
[16:12:16] copy finished in 3.93 s
[16:12:16] sass finished in 290 ms
[16:12:16] postprocess started β¦
[16:12:16] postprocess finished in 8 ms
[16:12:16] lint started β¦
[16:12:16] build dev finished in 4.25 s
[16:12:16] watch ready in 4.36 s
[16:12:16] dev server running: http://localhost:8100/
[16:12:20] lint finished in 3.58 s
npm build runs without output and nothing seems to change.