Note that there are some explanatory texts on larger screens.

plurals
  1. PORunning node (express) on linux produces Error: spawn EACCES
    primarykey
    data
    text
    <p>I'm building a node app with using Expressjs and I'm trying to run my node app on a freshly installed Ubuntu (I just installed git and node v 0.10.19).</p> <p>Sadly though, I'm getting the following error when trying to run the app in terminal:</p> <pre><code> Events.js:72 throw er; // unhandled 'error' event Error: spawn EACCES </code></pre> <p>I'm running on port 3000 and I am using sudo. I also tried as root and I also played around with different ports above the 1024 threshold. </p> <p>The app is just basic Expressjs and I'm using the default method for opening the app socket:</p> <pre><code> app.listen(3000); </code></pre> <p>I'm a Linux noob so any help is appreciated. the app works just great on Windows by the way.</p> <p>The basic server code:</p> <pre><code> var express = require('express') , app = express() , fs = require ('fs') , lingua = require('lingua'); process.env.NODE_ENV = 'development'; app.configure(function(){ app.set('view engine', 'jade'); app.set('views', __dirname + '/views'); app.setMaxListeners(100); app.use(express.bodyParser()); app.use(express.methodOverride()); app.use(express.static(__dirname + '/public')); app.use(express.favicon(__dirname + '/public/core/favicon.ico')); app.use(lingua(app, { defaultLocale: 'translation_', storageKey: 'lang', path: __dirname+'/public/translations/', cookieOptions: { httpOnly: false, expires: new Date(Date.now(-1)), secure: false } })); app.use(app.router); app.locals.pretty = true; }); app.configure('development', function(){ app.enable('verbose errors'); app.use(express.errorHandler({ dumpExceptions: true, showStack: true })); }); app.configure('production', function(){ app.disable('verbose errors'); app.use(express.errorHandler()); }); require('./lib/routing/routing')(app,{ verbose: !module.parent }); app.listen(3000); </code></pre> <p>You can test it out yourself by installing: <code>npm install mediacenterjs</code></p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload