问题
I've been trying to use Ember CLI to set up a new ember install, but the process keeps dying when trying to install ember-cli-qunit. I'm relatively new to using npm, bower, and ember so maybe this could just be an issue with me being dumb. Here is the dump I get when running
ember new webapp
I've been working on this for a few hours and can't really figure out how to fix the issue.
Thanks in advance
回答1:
You must have ran bower as root
at some point, and that would've changed the permissions of bower's cache files in your home directory (as per the error in the EACCESS
line). Simply changing the permissions back to your own user (as root
of course) should fix the problem.
Because of similar sudo
problems driving me crazy (and the system's nodejs
package being dated) I switched my setup to nvm: node version manager which installs everything to my own home directory instead and I never need to use root
again for node-related installations.
来源:https://stackoverflow.com/questions/25493360/ember-cli-ember-new-fails-on-ember-cli-qunit