Event-driven I/O server-side JavaScript environment based on V8. Includes API documentation, change-log, examples and announcements.

learn more… | top users | synonyms

16
votes
4answers
13k views

node.js conflicts: /sbin/node vs /usr/bin/node

I have two Ubuntu 12.10 machines: machine A is a VMWare VM and machine B is and old Acer laptop. On both machines, I installed node using apt-get. However machine A installs the main binary as ...
16
votes
4answers
12k views

How can I update my nodeJS to the latest version?

I have installed nodeJS on Ubuntu with following code sudo apt-get install nodejs Since I am a new user for ubuntu I also ran this code too sudo apt-get install npm Now when I type nodejs ...
15
votes
1answer
10k views

Installing the latest Node.js / MongoDB?

How can I install Node.js and MongoDB so they are the most current versions? The available versions from package manager are not up to date, and PPA from Chris Lea for Node.js doesn't get updated on ...
7
votes
4answers
8k views

Checking version of nodejs returns nothing

I'm trying to install node js onto Ubuntu so that I can run AngularJS. I'm not sure if I've installed it before so I ran sudo-apt get install node and once that is done I then run node --version but ...
6
votes
3answers
11k views

“No such file or directory” error while using npm

I installed node and npm using the instructions provided here I was able to use node successfully. However, as I attempt to install the "Formidable" node module, I get the following error: $npm ...
6
votes
2answers
2k views

LESS CSS compilers returning blank

I am not even sure where to start debugging this. Months ago, I could happily compile my CSS from my LESS files. Today, I run either recess --compile test.less or lessc test.less and I just get a ...
5
votes
2answers
9k views

Ubuntu / Install NodeJS & npm

I'm trying to install nodejs and npm, however, it fails. This is my terminal: sudo apt-get install nodejs npm Reading package lists... Done Building dependency tree Reading state information... Done ...
5
votes
2answers
3k views

NVM Command Not Found

I am trying to install node version manager and followed the installation instructions provided at its Github page. Installation got over but now I am getting an error as command not found: nvm when ...
4
votes
3answers
13k views

Installing Grunt js on 13.04

How does one install grunt on Ubuntu 13.04? I've attempted to install it via NPM: sudo npm install -g grunt Then when i run grunt: grunt But it doesn't seem to work it throws an error: ...
3
votes
4answers
4k views

npm breaks after updating nodejs to 0.10

I am on 12.04LTS. I updated my system today and in that process nodejs got updated. Now my npm has stopped working. For e.g: $ npm install express npm http GET ...
3
votes
2answers
885 views

Why doesn't JSLint/JSHint work in Ubuntu?

I installed as described here and other places, but after using npm to install jslint, jshint, neither will work. Running "jslint", I only get: /usr/bin/env: node: No such file or directory Is ...
3
votes
2answers
4k views

NVM Command Not Found Issue [duplicate]

Attempted to add to this question: NVM Command Not Found, however wasn't able to. After installing nvm im having the same issue, here is the log from terminal: Michael-iMac:~ michaels_imac$ curl ...
3
votes
1answer
196 views

Node.js websocket error “Error: listen EADDRNOTAVAIL Error: listen EADDRNOTAVAIL”

Application work fine on localhost but when it's connected to the server, it is giving the next error. Error: listen EADDRNOTAVAIL Error: listen EADDRNOTAVAIL at errnoException (net.js:904:11) at ...
3
votes
0answers
500 views

Problem with Node.js installation

I am very new to Linux so my question may seem stupid however I cannot install Node.js and npm software successfully. More precisely, the installation is completed but when I am trying to run some ...
3
votes
0answers
58 views

Access API for Unity topbar?

Is there any way to access Ubuntu Unity topbar using node.js ? I just want to make a web app and need some way to make a indicator for the web app .
2
votes
2answers
2k views

less css and and node js troubles

When I try to install less css compiler under my Ubuntu 13.10 box I get following message and lescss don't working. In what way I can fix the problem? I execute: sudo npm install -g less After ...
2
votes
3answers
4k views

node: command not found

I don't understand why the node command will not work, whereas nodejs works: $ node --version zsh: command not found: node $ nodejs --version v0.10.15 I tried apt-get install nodejs, but the latest ...
2
votes
1answer
3k views

Unable to execute binary file. Exec format error

I recently heard about Breach, a Node.js based browser. I was following the instructions on http://codeforgeek.com/2014/08/download-install-breach-browser-ubuntu-14-04/ to install it but got the ...
2
votes
2answers
2k views

couldn't install npm on ubuntu

Tried to install nodejs and npm on ubuntu 12.04. I googled and did it. Now, I could not install npm on machine. sudo apt-get install npm Which gives me this The following packages have unmet ...
2
votes
1answer
257 views

Deploying a Node.js app using Juju

A little background. We are attempting to improve the deployment flow of our Node.js application, and decided to investigate Juju. I am attempting to deploy a small practice express app (which does ...
2
votes
2answers
2k views

Node executables not doing anything

I have some node executables installed on an Ubuntu server but whenever I try to execute them nothing happens. I don't even get an error message. I know they're in my path because which ...
2
votes
2answers
117 views

installing a script in $PATH

I am trying to use yeoman in Ubuntu. Everything is installed correctly but I can't use the command yo from bash. If I navigate to the appropriate directory and run node cli.js everything works from ...
2
votes
1answer
2k views

Trying to install yeoman on ubuntu to use with nodejs and npm

Using Ubuntu 13.10 I am trying to install yeoman using sudo npm install -g yo but it doesn't seem to work globally both npm and nodejs are installed, however, I am not sure that they are installed ...
2
votes
1answer
567 views

npm completion broken

I'm running npm 1.2.18 and node v0.10.15. npm completion is broken. If I try to tab complete with npm or if I run npm completion, it displays: npm ERR! System Linux 3.11.0-14-generic npm ERR! ...
2
votes
1answer
459 views

Packaging nodejs code, how do I prevent lintian from complaining about ./node_modules?

We ran into this problem while packaging some software written in nodejs. Because we can't package each and every dependency separately, we need to ship the node_modules/ directory along with the ...
2
votes
1answer
100 views

Do I need to install a LAMP server to run nodejs?

Using Ubuntu 14.04 - I am trying to control an AR Drone Parrott using nodejs. My question is: Can I run nodejs without installing the LAMP packages? On a netbook running UBUNTU 14.04 I have installed ...
2
votes
1answer
493 views

NodeJS install issues

Whenever I need to use NodeJS I'm always tired of a bunch of problems. At the moment I need to use closurecompiler nodejs module and try to install it and nodejs. It turns me following errors. How do ...
2
votes
1answer
50 views

Slap Editor Installation problem, (sudo: npm: command not found) [duplicate]

I'm installing Slap Editor on Ubuntu 14.04 and when I type sudo npm install -g slap its giving me the error sudo: npm: command not found . the node version on my system is 0.10.33 and the npm version ...
2
votes
1answer
95 views

UTF-8 Issue, don't know where?

I am running a node.js server and the following line just isn't working. console.log("☺☻♥ مرحبا 你好"); I opened up the file in nano and cat on my ubuntu server 14.04 (no gui, no window manager, no ...
2
votes
1answer
296 views

Strange recursive folder created on npm installation

something very strange is happening to my system. I'm running Ubuntu 12.04 and I use it for node.js deveopment. Every time I perform an installation either (sudo npm install -g myPackage) a srtange ...
1
vote
2answers
882 views

Trying to install nodejs but failing

I am trying to install nodejs but it is repeatedly failing. Attached is the log $ sudo apt-get install nodejs Reading package lists... Done Building dependency tree Reading state ...
1
vote
2answers
2k views

Make a .deb for a Node.js application

How I make a .deb for a Node.js application that installs Node.js and its required npm modules on dpkg -i? Which is the place in the filesystem where I have to put this application? ...
1
vote
1answer
574 views

Why does node.js need administrative permissions to access my windows share even though the share's premission is 0777

I have Ubuntu 14.04 running as a VMware guest on my Windows 8.1 host. I have shared a folder on my Windows Host and it is mounted in the Ubuntu guest on startup using this entry in fstab: ...
1
vote
1answer
217 views

How can I get jshint to work?

I installed jshint using sudo npm install -g jshint, and it seems to have worked: $which jshint /usr/local/bin/jshint Yet running jshint or its full path equivalent doesn't seem to do anything. It ...
1
vote
2answers
820 views

Installing node with apt-get or downloading the Linux Binaries (.tar.gz)

What is the difference between installing node.js with 'sudo apt-get install nodejs' or downloading the Linux Binaries (.tar.gz) and following these instructions? Is the outcome the same?
1
vote
2answers
86 views

How can I install the development version of Node?

I want to get the latest updates for Node (evented I/O for v8 javascript). I already have installed Node using: sudo apt-get install -y python-software-properties python g++ make sudo ...
1
vote
2answers
2k views

NPM wont work because of my wrong node version

The error is: Error: npm doesn't work with node v0.5.11-pre Required: node@>=0.6 But I'v just updated my node. That is confusing. I'v made some digging and it seems that I've installed node two ...
1
vote
1answer
2k views

How do I source a shell script for Node Version Manager?

Hi and thanks for looking! I am new to Linux/Ubuntu, but I have set up an Ubuntu box on which to run Node.js. I have had moderate success, but now I need to be able to easily upgrade my version of ...
1
vote
2answers
1k views

Having trouble to find the node in ubuntu 14.04 after installing

I installed the NodeJS in Ubuntu 14.04 by nvm by following this site Installing NodeJS Though I had the following problem as nvm ls sbin mkdir: cannot create directory ‘/usr/sbin/alias’: ...
1
vote
2answers
663 views

Nodejs Installation

I have installed node.js and the version is 0.6.12. I am trying to update it but the efforts are in vain. Even though i have installed the latest version the Terminal still shows the version as 0.6.12 ...
1
vote
1answer
1k views

Issue using Node.js / Express, Says it's not installed

I am having the same issue this this person had. npm installed packages are not accessible Where the command "express nodepad" does not work. It give an error that "The program 'express' is ...
1
vote
1answer
205 views

Node.js NVM causes Xubuntu login loop with ~/.profile line

There are various posts on the Xubuntu login loop, but none of them address NVM (Node Version Manager). I have installed NodeJS via NVM on my Xubuntu VM and it works fine, however after rebooting, I ...
1
vote
1answer
211 views

Multiple possible interpreters in a shebang?

Trying to learn me some nodejs, I installed npm and the learnyounode module. Unfortunately, learnyounode tries to execute #!/usr/bin/env node and not #!/usr/bin/env nodejs -- as we have it setup in ...
1
vote
1answer
55 views

How can I create charm on one node

Firstly I generation nodejs file on the node without charm then my boss said we need charm for generation. I need in this charm QT5, NODEjs, Berkeley db, g++ with gcc but I don't know how create ...
1
vote
1answer
383 views

Ways to deploy Node.js in a production environment?

What is the recommended way to deploy Node.js on Ubuntu 12.04 in a production environment? I saw this ppa but I don't know if is well maintained or if it will and if is a source in witch one can ...
1
vote
0answers
492 views

Getting “mkdir: cannot create directory…” while installing & using NVM/Node.js commands

Please bare with me, not a Linux wiz (unfortunately). Anyways, I have a freshly installed 14.04 LTS version of Linux, onto which I recently installed NVM & Node.js. I did so by entering the next ...
1
vote
0answers
231 views

NodeJS Hangs on Ubuntu 14.04 Boot [Big CPU & Memory usage]

Node somehow hangs on Ubuntu 14.04 boot. It uses lots of CPU and RAM (Checked with Terminal -> top). I need to have root permissions to kill it and it doesn't work after the first time. Had to spam ...
1
vote
1answer
226 views

How can I be careful installing node.js via apt?

I want to install EtherPad on my Ubuntu Server. The Etherpad installation instructions say: Additionally, you'll need node.js installed, Ideally the latest stable version, be careful of ...
1
vote
0answers
157 views

Forever cannot be installed

While trying to install Forever using this command: sudo npm -g install forever I'm getting this error: npm WARN engine hawk@0.10.2: wanted: {"node":"0.8.x"} (current: ...
1
vote
0answers
34 views

How can I stop a process from moving to the background?

I have a machine running Ubuntu server version 12.04.3 LTS. On it, I'm attempting to run a node.js server that needs to stay up and running at all times. I'm running into an issue, however, where ...