Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Error when starting Node Application - MEAN Stack

I have started to create a Node js application using MEAN Stack so i have followed the steps in the following URL to intialize a node js Application using MEAN. Link

When i provide GRUNT or Started the Node js Application in Terminal, I am getting the following error.

events.js:72
    throw er; // Unhandled 'error' event
          ^
    Error: ENOENT, open '/home/vigneshmoha/Documents/node/branding/public/system/lib/bootstrap/dist/css/bootstrap.css'
    [nodemon] app crashed - waiting for file changes before starting...

npm version 1.4.15

Node js version v0.10.28

MongoDB version v2.6.1

I haven't changed anything else. Am i missing anything?

like image 531
vigneshmoha Avatar asked Jun 15 '14 07:06

vigneshmoha


People also ask

Why is node js not running?

Make sure the node path is added, if not added it. After doing this restart Visual Studio or open a fresh command prompt. From the command prompt type 'node -v' to echo the node version installed. You can also add the path to node or any other application directly on the command line.

What is Node JS in MEAN stack?

Node. js is used to write the Server Side Code in Javascript. One of the most important points is that it runs the JavaScript code outside the Browser. It is cross-platform and Open Source.


4 Answers

I am not sure about this but try installing bower with the command..

npm install -g bower

and then sudo bower install --allow -root Now check if the files are created

like image 61
Srinath Avatar answered Oct 19 '22 19:10

Srinath


try this

npm cache clean 
npm install
like image 30
Carlos Avalos Avatar answered Oct 19 '22 20:10

Carlos Avalos


I just had the exact same problem (on Mac OS X 10.9). Running npm install without sudo fixed it. Seems like bower is causing some troubles when used with sudo.

like image 2
madc Avatar answered Oct 19 '22 18:10

madc


This error might be also due to errors in your Nodejs application. Fix the errors. You might also need to install bower: npm install -g bower . tested on windows 10 and it worked.

like image 1
Pejman Saberin Avatar answered Oct 19 '22 19:10

Pejman Saberin