-
Notifications
You must be signed in to change notification settings - Fork 3.4k
##Frequently Asked Questions
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.
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
Either you havn't run npm install or it in turn did not trigger bower install
Install grunt-cli globally - npm install grunt-cli -g
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).
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.
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/
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
- Getting Started Guides
- Deployment
- Testing
- System Deep Dives
Aggregation- Packages
- Database
- Menus
- Circles (roles/permissions) High Level Overview
- Circles code examples
- User Auth withJWT
- Contributing