Hi I am trying to setup development environment in ubuntu but when i run below command
npm run setupi am getting error. Caught exception:
undefined
Mind letting us know? https://github.com/driftyco/ionic-cli/issues
bower ESUDO Cannot be run with sudo
Additional error details:
Since bower is a user command, there is no need to execute it with superuser permissions.
If you're having permission errors when using bower without sudo, please spend a few minutes learning more about how your system should work and make any necessary repairs.
http://www.joyent.com/blog/installing-node-and-npm
https://gist.github.com/isaacs/579814
You can however run a command with sudo using --allow-root option
npm ERR! Linux 4.10.0-35-generic
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "run" "setup" "--allow-root" "option"
npm ERR! node v6.9.1
npm ERR! npm v3.10.8
npm ERR! code ELIFECYCLE
npm ERR! moodlemobile@3.3.2 setup: `npm install && ionic state restore && bower install && gulp "option"`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the moodlemobile@3.3.2 setup script 'npm install && ionic state restore && bower install && gulp "option"'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the moodlemobile package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! npm install && ionic state restore && bower install && gulp "option"
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs moodlemobile
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls moodlemobile
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request:
npm ERR! /home/pradeep/moodlemobile/npm-debug.log
Please help me to resolve the issue ASAP