Skip to content
Lior Kesos edited this page Oct 13, 2015 · 34 revisions

##Frequently Asked Questions

1. Error: ENOENT, no such file or directory '...bower_components/jquery/dist/jquery.min.map'

Did you install as root?

Bower breaks when you try to install it as root, it gets invoked by the npm install command so when you run npm install. You can run it with the --allow-root flag but you should not be running mean as root.


2. "Error: failed to connect to [localhost:27017]"

MongoDB isn't running, please run it before you run node server...
Consider MongoDB a program that needs to be running before you can run grunt on your MEAN project.
Follow these instructions here for mongodb installation:
http://docs.mongodb.org/manual/tutorial/install-mongodb-on-os-x/ Manual Installation is the only manner I could get things working

I also needed to be in /usr/local/bin before I could fire mongod Once mongod is running in your terminal window, open a different terminal window and cd to the directory where your MEAN project is located.

There you can run a grunt command and avoid the dreaded warning: [nodemon] app crashed - waiting for file changes before starting...

At that point, you can navigate to http://localhost:3000

Mcferren thanks for the explanation


3. "I run grunt but see a white screen with nothing in it"

Either you havn't run npm install or it in turn did not trigger bower install


4. "I run grunt as documented but get a command line not found"

Install grunt-cli globally - npm install grunt-cli -g


5. "I get Error: EMFILE, too many open files” in npm install."**

See http://otaqui.com/blog/1618/how-to-fix-error-emfile-too-many-open-files-from-yeoman-and-npm/
or - set your ulimit higher if using a Mac ulimit -n 1024


6. "Even after installing git, I still get 'Prerequisite not installed : git' error when I try mean init."

Does git -v work from the command line? If not, you probably need to add the git executable to your PATH.


7. "I get the following issue when opening my mean app in a browser. MongoDB seems to be running fine, and the grunt command works fine."

[nodemon] starting node --debug server.js
debugger listening on port 5858
Mean app started on port 3000 (development)
GET / 200 28.054 ms - -

events.js:72
throw er; // Unhandled 'error' event
^
Error: ENOENT, open '../myApp/bower_components/bootstrap/dist/css/bootstrap.css'

bootstrap.css is installed as part of bootstrap by bower, which is automatically run as a postinstall script after npm install. Sometimes, if there are errors during the npm install, or permissions problems for bower, this process does not complete.

Please try node node_modules/bower/bin/bower install from your project root. Or if you already have bower installed globally, you just run bower install. This should either install the missing file(s), or help lead to the root of problem (usually permisssions).

If you are installing from root, you can do sudo bower install --allow-root (NOT recommended).


8. "public/lib directory does not get created"

Your .bowerrc has not been copied - If you're on a mac - @jpattisoninc offered a way to make sure that dot files are being copied too.


9. "Consecutive Async DELETE responses aren't returned to the browser"

When attempting to perform consecutive Async DELETE requests as a result of user interaction (e.g. removing items from a table), after a few have completed, subsequent DELETE responses don't return to the browser. If you have Sophos Anti-Virus installed, please disable Web Protection.

http://community.sophos.com/t5/Sophos-EndUser-Protection/Sophos-Anti-Virus-9-2-2-Web-Protection-interfering-with-AJAX/td-p/55241 https://github.com/linnovate/mean/issues/987


10. "Grunt /Gulp is falling because of js errors and css errors which I cant (or don't care to) fix"

Run them with gulp -f or grunt -f to disregard the jshint errors or read about how to configure jshint to ignore them permanently here - http://jshint.com/docs/

11. "“The build tools for v120 (Platform Toolset = 'v120') cannot be found”

Install using the msvs version param - npm install --msvs_version=2015 See stackoverflow for reference - http://stackoverflow.com/questions/32556295/npm-install-error-the-build-tools-for-v120-platform-toolset-v120-cannot

Clone this wiki locally