New to ionic. Failing with the getting started docs!

As the subject states. Brand new to Ionic but confident programmer. Tried following the instructions outlined on http://ionicframework.com/docs/intro/installation/ and I’m getting an error trying to run the empty app before I even get to start coding. I found a couple of entries on stackoverflow about trying npm rebuilds for node-sass, and also trying an install with sudo but no luck. Still getting the same error about a vendor file missing from sass.

I’m on a Mac running osx 10.12.3 with node 6.10.1, cordova 7.0.1, and ionic 3.0.0

Any suggestions greatly appreciated.

--user--mbp:ionic --user--$ sudo ionic start tester
? What starter would you like to use: tabs
✔ Creating directory /Users/--user--/projects/ionic/tester - done!
Fetching app base (https://github.com/driftyco/ionic2-app-base/archive/master.tar.gz)
✔ Downloading - done!
Fetching starter template tabs (https://github.com/driftyco/ionic2-starter-tabs/archive/master.tar.gz)
✔ Downloading - done!
✔ Updating package.json with app details - done!
✔ Creating configuration file ionic.config.json - done!
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!
> npm install --save-dev --save-exact @ionic/cli-plugin-cordova@latest
✔ 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? No

Go to your newly created project: cd ./tester
--user---mbp:ionic --user--$ cd tester
--user---mbp:tester --user--$ ionic serve
Error: ENOENT: no such file or directory, scandir '/Users/--user--/projects/ionic/tester/node_modules/node-sass/vendor'

--user---mbp:tester --user--$ sudo ionic serve
Error: ENOENT: no such file or directory, scandir '/Users/--user--/projects/ionic/tester/node_modules/node-sass/vendor'

The comments in this issue look like they might be useful.

1 Like

Ahhh… perfect. Thank you. My google skills were sadly lacking in this instance.
For reference for others: The first suggestion in that thread, to delete the node_modules folder and re-installing didn’t fix. The fix that worked was:

node node_modules/node-sass/scripts/install.js
npm rebuild node-sass

Thanks :smiley:

1 Like