ERROR An error occurred while running npm i (exit code 1): Ionic Error
After spending more than day i came across many solutions, which are as follow
Some developers solve this problem by, i downgraded node from v8 to v7.6.0 and all seems to work fine with ionic CLI. From Here but this solution not work for me.
Run Command Line as Administrative, this solution is beneficial
The Correct and well solution work for me, is to install install all node-gyp dependencies by following command
$ npm install --global --production windows-build-tools
and then install the package
$ npm install --global node-gyp
Solution Link
Solution:
step 1 : sudo -s
step 2 : sudo ionic start todo blank ( for ubuntu )
I also face the same problem.
Solution is worked for me in Ubuntu 16.04:
sudo -s
First Get Access of Super User from Above Command
sudo ionic start myApp tabs
After Get into SUDO Mode, then run ionic command with sudo, like above
Thanks