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

learn more… | top users | synonyms

193
votes
6answers
226k 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 --...
77
votes
11answers
141k views

How to Install the Latest Versions of NodeJS and NPM for Ubuntu 14.04 LTS

I noticed over at the https://nodejs.org/ website that node is currently at v 0.12.0. Can someone pls let me know how (terminal commands pls) to install this latest version of node together with npm ...
47
votes
4answers
47k views

How to install NodeJS 4 using apt?

How can I install NodeJS 4 on Ubuntu using apt-get utilities?
44
votes
8answers
100k views

How do you update npm to the latest version?

I'm having issues with npm in a Vagrant box I'm setting up. I noticed that the npm version is somewhat old, so I wanted to check the problem with the latest release. It is my understanding that you ...
28
votes
7answers
32k 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 /usr/...
20
votes
7answers
36k 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 --...
19
votes
2answers
15k 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 ...
15
votes
3answers
33k 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 ...
11
votes
5answers
17k 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 ...
10
votes
5answers
24k 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 ...
9
votes
3answers
14k views

Installing Node.JS through a PPA does not fetch the latest version

yeah yeah I know, this has been asked before. But when using the chris-lea ppa or the "official way" (which I think is actually the same thing?), after installing you get this: ~$ node --version v0....
9
votes
2answers
24k 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 ...
8
votes
5answers
18k 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’: ...
8
votes
2answers
4k 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 ...
7
votes
2answers
8k 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 ...
6
votes
1answer
5k views

How can I fix the “Cannot find module 'bplist-parser'” error with PhoneGap?

I've installed everything - node.js and then used npm to get PhoneGap. But then I get this error when I start PhoneGap: phonegap module.js:340 throw err; ^ Error: Cannot find ...
6
votes
2answers
7k views

Command not found when executing node.js n package on sudo

I'm trying to update my version of node to the latest stable. Using this resource I was able to: sudo npm install n -g But when I try sudo npm n stable I get: sudo: n: command not found If I ...
6
votes
2answers
6k views

How to install node-sass/gulp-sass on Ubuntu 14.04+ or Linux Mint 17+?

I'm trying to switch from gulp-ruby-sass to node-sass which is based on libsass a C implementation faster than the classic Ruby version. So far I've install the node packages: Node package cd /path/...
6
votes
2answers
9k 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 ...
6
votes
1answer
3k 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 ...
6
votes
1answer
105 views

Having trouble following node.js juju docs

I'm trying to follow the docs here and I'm running into an issue with this line: juju deploy --config myapp.yaml node-app myapp I've created a myapp.yaml file and added a github URL to a sample ...
5
votes
3answers
21k 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: path.js:...
5
votes
1answer
717 views

Why does installing node 6.x on Ubuntu 16.04 actually install node 4.2.6?

These were my steps to install node on Ubuntu 16.04: curl -sL https://deb.nodesource.com/setup_6.x | sudo -E bash - sudo apt-get install -y nodejs sudo apt-get install -y npm which are the ...
5
votes
2answers
2k 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 ...
5
votes
2answers
8k 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 ...
5
votes
2answers
3k 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? (/opt,/usr/local)....
4
votes
2answers
15k views

alias of nodejs as node on 14.04

i installed nodejs with apt-get on 14.04 When i do nodejs -v v0.10.25 and when i do node -v node : command not found. So i want to make alias of nodejs as node So i inserted a line in ~/....
4
votes
3answers
6k 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 ...
4
votes
1answer
5k views

Unable to install latest NodeJS version on Ubuntu 14.04

On my server I have 0.10.25 "I do not need Rea's version, that is "0.10.30" which is the LTS for nodejs, however developers asking to install 4th version, after digging a little bit, I have found that ...
4
votes
4answers
5k 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 https://registry....
4
votes
2answers
2k views

How to remove nodejs from nodesource.com?

I have installed nodejs from nodesource.com: curl -sL https://deb.nodesource.com/setup_0.12 | sudo bash - sudo apt-get install nodejs It installed nodejs 0.12.4, but how can i remove it now ...
4
votes
2answers
8k 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 ...
4
votes
1answer
1k 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 ...
3
votes
4answers
5k views

E: Unable to locate package mongodb-org

I am trying to install mongodb on ubuntu 14.04 and I am following the steps on docs.mongodb.org But when I get to the step: sudo apt-get install -y mongodb-org I get the following error : root@...
3
votes
1answer
2k 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
2answers
6k 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 ...
3
votes
1answer
2k views

npm installed binaries not available from command line

I tried installing babel-node via sudo npm install -g babel-node. The binary for babel-node seems to be available in /usr/local/lib/node_modules/node-babel/node_modules/.bin/babel-node, but this ...
3
votes
1answer
529 views

Will Node.js affect my LAMP server installation?

I've installed LAMP server with this command. sudo apt-get install lamp-server^ Now I'm wishing to install Node.js. Will it make any affect on my previous LAMP installation ?
3
votes
1answer
556 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 ...
3
votes
2answers
1k views

node & nodejs have different version

I successfully update/install the latest version of node js by using those commands (the official curl way not working for me) : sudo npm cache clean -f sudo npm install -g n sudo n stable sudo ln -...
3
votes
1answer
10k views

Completely uninstall Nodejs, npm and node_modules

so my Node and npm settings are currently messed up beyond repair( or so I think). What I would like to do is to completely remove all of it and start from scratch. What I have done till now can be ...
3
votes
1answer
1k 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
130 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
907 views

Safe to remove /usr/local/bin/node?

In the past I installed Node.js. Now I tried updating it following this guide and ended up having two versions of it, node on version 0.10.7 and nodejs on version 0.12.7. To clear this up I wanted to ...
2
votes
2answers
2k views

After installing coffee script the coffee command is found but does nothing

I just installed coffe script with NPM (sudo npm install -g coffee-script) When I type coffee into my terminal nothing happens. The command is found but does not show any reaction. Does anyone know ...
2
votes
1answer
145 views

Node modules installed but not available

I am new to Linux environment and right now learning node.js Following the tutorial i installed node module express globally as shown in below screenshot But when i am trying to use express in ...
2
votes
1answer
2k views

Node Package Manager got corrupted in some way, now it cannot be installed

I ran into a problem today when I decided to use npm update -g in a nodejs app directory. This was a bad decision, because it caused me to run into a common and disastrous problem with npm. The ...
2
votes
1answer
7k 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
1answer
406 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
428 views

Unable to update Node JS - keeps returning to old version [Ubuntu 15.04]

I'm unable to update nodejs, and I can't see why. If I were to make a guess, I'd say that I have two repositories listed in apt-get, that both contain a nodejs package. Here's what I've done: ...