Questions tagged [mean-stack]

The MEAN stack is a methodology that employs MongoDB, Express, Angular / AngularJS, and Node.js to provide a complete end-to-end system. One of the primary motivations for such a stack is that it is pure JavaScript at all ends. Two different implementations are available: mean.io and mean.js

MEAN (an initialism for Mongo, Express, Angular, Node) stack can be implemented just as LAMP stack is implemented, with or without a specific framework or architecture as the four technologies can be implemented in completely different ways.

A ready-to-go implementation is available at meanjs.org.

Related tags:

3884 questions
336
votes
5 answers

Difference between MEAN.js and MEAN.io

I wanted to use the MEAN JavaScript Stack, but I noticed that there are two different stacks with either their own website and installation methods: mean.js and mean.io. So I came up asking myself this question: "Which one do I use?". So in order to…
CMPSoares
  • 4,175
  • 3
  • 24
  • 42
329
votes
41 answers

Npm install cannot find module 'semver'

I can't use npm install using the command prompt in NodeJS. I'm getting these errors when running npm install: module.js:339 throw err; ^ Error: Cannot find module 'semver' at Function.Module._resolveFilename (module.js:337:15) at…
user2447562
  • 3,431
  • 2
  • 16
  • 15
153
votes
12 answers

An unhandled exception occurred: Job name "..getProjectMetadata" does not exist

When I start to run my Application, I get this error: **[error] Error: Job name "..getProjectMetadata" does not exist.** at Observable._subscribe…
vasil001
  • 2,501
  • 4
  • 8
  • 22
95
votes
6 answers

When to use saveUninitialized and resave in express-session

I am newbie with the MEAN stack. I read the express-session github doc but there are some options which are unclear to me. Those options are saveUninitialized and resave. Can anyone please explain with examples what are the advatanges of using…
user7104874
  • 1,321
  • 2
  • 15
  • 21
65
votes
20 answers

Error: [ng:areq] from angular controller

This is a long shot, but has anyone seen this error before? I am trying to add 'Transporters' using express, angular and mongoDB. I get this error whenever I access a page ruled by the transporters controller: Error: [ng:areq]…
Connor Leech
  • 18,052
  • 30
  • 105
  • 150
57
votes
33 answers

nodemon app crashed - waiting for file changes before starting

EDIT After further testing, I have found that this is happening with both gulp and grunt on this app and on the default install of mean.js. I'm running this locally on a Mac. When I running either app using "node server.js" they don't crash. I'm…
MTD
  • 609
  • 1
  • 5
  • 6
49
votes
3 answers

Logging stdout and stderr of Node

I am using the boilerplate code of mean.io and starting my server with the command: node server.js How do I log stdout and stderr of my Express application? Here's my file server.js: 'use strict'; /** * Module dependencies. */ var mongoose =…
raju
  • 4,788
  • 15
  • 64
  • 119
48
votes
4 answers

grunt error: cannot find module 'load-grunt-tasks'

When I am using grunt command it is showing me following error: $ grunt Loading "Gruntfile.js" tasks...ERROR >> Error: Cannot find module 'load-grunt-tasks' Warning: Task "default" not found. Use --force to continue. Aborted due to…
silent_programmer
  • 768
  • 2
  • 8
  • 18
47
votes
10 answers

git is not installed or not in the PATH

Windows, when I try to run npm install, it shows: mean@1.0.0 postinstall E:\mean node node_modules/grunt-cli/bin/grunt install Running "bower:install" (bower) task Fatal error : git is not installed or not in the PATH npm ERR! weird error 1 npm…
lilyH
  • 481
  • 1
  • 5
  • 7
43
votes
9 answers

MongoDB - Error: invalid schema, expected mongodb

I'm new in building application with MEAN Stack, I'm trying to build a real time chat app, here is my server side : console.log("Server running...!"); var mongo=require('mongodb').MongoClient; var…
Ahmed202
  • 737
  • 3
  • 7
  • 12
41
votes
9 answers

Javascript delete object property not working

I'm running some project on MEAN.js and I've got a following problem. I want to make some user's profile calculation and the save it to database. But there's a problem with method in users model: UserSchema.pre('save', function(next) { if…
ketysek
  • 1,159
  • 1
  • 16
  • 46
38
votes
1 answer

io.on('connection',...) vs io.sockets.on('connection',...)

I am using socket.io and the Mean stack for a web app. I started the server for socket on 3006 port.. var http = require('http').createServer(app); http.listen(3006); var io = require('socket.io').listen(http); Both of these seem to work on…
Srinath Mandava
  • 3,384
  • 2
  • 24
  • 37
35
votes
1 answer

Want to get crystal clear about NodeJS app structure (Full JavaScript Stack)

I would like to know the structure of a typical NodeJS app, because the more I read and see the projects, the more confused I am, specifically for questions like these (or even more after I updated this question): Take the MEAN stack for example,…
JustinHo
  • 4,695
  • 3
  • 20
  • 20
33
votes
4 answers

How do I name the .bowerrc file?

This MEAN-stack tutorial describes using Bower to install AngularJS in your public folder. One of the steps describes creating a file called ".bowerrc" in your test-app folder. However, Windows won't let you create a file without a name. How do I…
WEFX
  • 8,298
  • 8
  • 66
  • 102
29
votes
1 answer

Express.js or angular for handling routes in a MEAN application?

I am totally new to everything Nodejs/express/angular, and I just ran into a question that bothers me. When you have a MEAN stack, it seems that routes can be handled by both Express.js and Angular. Angular: For instance, if I define a route in…
Lars Holdgaard
  • 9,496
  • 26
  • 102
  • 182
1
2 3
99 100