Ember CLI ember new fails on ember-cli-qunit

2019-08-27 00:08发布

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

enter image description here

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条回答
甜甜的少女心
2楼-- · 2019-08-27 00:22

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.

查看更多
登录 后发表回答