简体   繁体   中英

Ember App Kit project vendor folder empty

Currently I am trying to start a project with EmberJS. And from what I found on the internet Ember App Kit is a nice "template" to kick start an application.

So I followed the getting started guide but I am running into a problem.

I have installed npm, bower and grunt and run all the commands given on that page. But my vendor folder stays empty. So when start everything with grunt server and go to my browser to localhost:8000 it shows nothing (and I get a bunch of 404 for the vendor libraries (eg jQuery, Ember and so on).

I have found that they are place here in public/js/libs instead of /vendor (this folder does exist though) and I could change the address in the index.html to point to there. But I don't think that is what I am supposed to do.

Did I do something wrong, or did I forget something.

For me this was fixed by running Bower as root (I probably installed it in a wrong way earlier), which fetched the deps correctly (and into the /vendor directory as defined in .bowerrc).

sudo bower install --allow-root

Bower specifically discourages this approach:

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

Did you miss the .browerrc when you copy files?

If .browerrc file not exist, dependencies will be installed to bower_components folder not vendor , this file is hidden in OS X Finder by default (because the "." prefix).

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM