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

learn more… | top users | synonyms

6
votes
5answers
12k 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
votes
1answer
30 views

Installing nodejs on linux

Which is a better way to install nodejs? There are 2 methods that I know of. If there are any more that are better, please also let me know. Here is the first one: sudo apt-get install nodejs The ...
0
votes
0answers
10 views

Unable to install Node.js v0.12 on Linux Mint [closed]

I have tried this: curl -sL https://deb.nodesource.com/setup_0.12 | sudo bash - and I get this: curl: error while loading shared libraries: liblber-2.4.so.2: cannot open shared object file: No ...
1
vote
2answers
259 views

Cannot get nodejs 5.x installed on Ubuntu

Using the software manager it automatically installs a very old version, v0.10.25. I am following this instructions from this link: Node.js v5.x: NOTE: If you are using Ubuntu Precise or Debian ...
26
votes
7answers
53k 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 ...
0
votes
1answer
35 views

How to autostart node forever and use spawn() as sudo on Ubuntu?

My app periodically spawns a CasperJS scraper: spawn(CASPER_PATH, [SCRIPTS_PATH + fileName, '--ssl-protocol=any', '--user='+user, '--scrapeId='+scrapeId, '--pass='+pass], { ...
1
vote
0answers
22 views

Access nodejs application port from external IP

I have an application with port 9901 and hosted in online server. If i check this application from the same server with http://127.0.0.1:9901/ or http://127.0.0.1:9901/ the application is run ...
1
vote
1answer
458 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 ...
0
votes
0answers
42 views

Setting up Varnish Cache with nodeJS

Goal: I'm trying to setup varnish on my Ubuntu webserver. I've read the docs and getting started stuff, doesn't look too complicated, however, I don't think my site is ever being cached by it. I am ...
2
votes
2answers
212 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 ...
0
votes
1answer
20 views

How many ports opened by a single application

I am writing a program in nodejs that will be firing number of calls to an api. I need to limit number of requests to 100 at a time. I have finished writing the application, but how can I check in ...
0
votes
1answer
77 views

How to build electron?

Trying to build electron in Ubuntu 15.10. I get a problem with the npm package being out of date. Is there a ppa for a newer electron? $ npm install && npm start npm WARN engine hawk@3.1.2: ...
0
votes
1answer
31 views

How to install latest node inside a docker container

How do I install the latest node inside a docker ubuntu 15.10 container? apt-get install nodejs installs version 0.1 and no npm Thanks
0
votes
1answer
34 views

Working with Nodejs + MSSQL at Ubuntu

I've my nodejs app connected to MSSQL server, worked perfectly in my Windows laptop, sing mssql@npm The same app is not able to see the database in my Ubuntu laptop. I defined the mssql connectivity ...
0
votes
2answers
108 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 ...
4
votes
2answers
7k 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 ...
1
vote
2answers
76 views

Run Node.js as a Service on Ubuntu

I have installed the nodejs server on Ubuntu 14.04.2 LTS. Now I have to start its service automatically. manually starting its services working fine, but the issue is when closing the terminal its app ...
1
vote
0answers
33 views

Ubuntu touch app with nodejs library [duplicate]

I want to write an application with the library in nodejs. Is there any way to connect QML or C++ with nodejs on ubuntu touch? Edit: I want to write a native application (in QML) and use a library ...
1
vote
1answer
80 views

How can I install node.js?

I have a chromebook with a Precise Ubuntu chroot on it. I can't figure out how to install the current node.js from the tarball, because ./install make sudo make install doesn't work.
4
votes
1answer
3k 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 ...
1
vote
1answer
88 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: ...
0
votes
0answers
34 views

On a chroot Ubuntu system how can I install ws?

I have a chromebook with a Precise Ubuntu chroot on it. I try to install npm using sudo apt-get install npm and that works. However, when I try to install ws using npm install --save ws It ...
0
votes
0answers
18 views

Nodejs + lamp setup on dedicated server

I am working in a project which needs nodejs + lamp server which will be installed on a dedicated Server running ubuntu Server. I know that they won't interferrior each other AS long as I don't mess ...
32
votes
7answers
74k 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 ...
123
votes
6answers
137k 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 ...
0
votes
3answers
353 views

npm unresponsive after nodejs install on fresh Ubuntu 12.04.5

Here's where I'm at... I have an old chromebook that I put Ubuntu (and Xfce) on via crouton. After installing the chromium browser, I installed nodejs via apt-get. I found that when trying to install ...
1
vote
3answers
242 views

Install Node.js in Ubuntu 14.04

I installed Node.js with: sudo apt-get install nodejs But when I type in a console node I get nothing, no command not found, no any error. But when I type nodejs I get the Node.js promt >. Now, ...
0
votes
3answers
183 views

Run node js server in ubuntu

I have tried so far installed node.js and npm via sudo apt-get install nodejs and sudo apt-get install npm . Then I tried typing node on bash nothing happens, I tried using node app.js nothing ...
0
votes
1answer
106 views

sudo apt-get install npm error

When I was about to install nodejs I successfully ran these two commands: sudo apt-get update sudo apt-get install nodejs However, when I ran sudo-apt-get install npm it gave me this list of ...
7
votes
5answers
10k 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 ...
3
votes
1answer
11k 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 ...
2
votes
2answers
912 views

npm -v return Segmentation fault

nodejs, npm works fine before. When I try to upgrade it sudo npm cache clean -f sudo npm install -g n sudo n stable And type npm -v, it throw "Segmentation fault". I restart system and I type a ...
1
vote
2answers
3k views

installing node.js not working

I'm trying to install node.js on ubuntu 14.10 I do not want to use the ubuntu package but the latest stable version of node - v0.10.36 so I have installed pvm and have installed node v0.10.36 so far ...
2
votes
4answers
3k 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 : ...
0
votes
1answer
71 views

Node.js Version Upgrade Ubuntu

I have Node.js Server running Node.js version 0.12.7 (express.js 4.x )on ubuntu server and MySql Server 5.6.22 (currently does not have any issue and working fine.) Node.js release version > 4.x . ...
4
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? ...
0
votes
0answers
36 views

how to retrieving deleted npm binary?

I accidentally deleted all the content from /usr/local/lib/node_modules, it has npm folder which is necessary for dependency resolution in Nodejs. Now when i run npm command on terminal it gives me ...
24
votes
6answers
27k 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 ...
0
votes
0answers
74 views

How to run this node.js mqtt broker in the background all the time?

A stand-alone Node.js MQTT broker was installed successfully on Ubuntu 14.04 digitalocean cloud. I can run the MQTT broker binary (not node.js script) by running the command below; $ mosca -v | ...
0
votes
2answers
194 views

How to upgrade/install newest version of nodejs on Ubuntu 14.04

I have been working an hour for this. Taken from their official documentation : curl -sL https://deb.nodesource.com/setup_4.x | sudo -E bash - sudo apt-get install -y nodejs However, its never ...
2
votes
0answers
74 views

npm --version is different if use sudo npm --version

I have just upgraded nodejs in my machine. I uninstalled the node version (the one in ubuntu repositories) that I had. Then I installed nvm and installed nodejs 4.2.2. Everything goes without ...
1
vote
2answers
962 views

cordova install on ubuntu 14 doesn't seem to be working

I'm following the instructions found here to install cordova on ubuntu: http://cordova.apache.org/docs/en/4.0.0//guide_cli_index.md.html#The%20Command-Line%20Interface So far, I've run the ...
2
votes
0answers
12 views

Link created to `nodejs` with `node` not working [duplicate]

I'm creating 3 VM's. I set up the first two with nodejs/npm but am having problems with the third. (Note: I realize cloning would have been far more expedient, but that's outside of scope of ...
1
vote
1answer
662 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 ...
0
votes
0answers
27 views

Package not found but exists

I decided to start use Gulp. To install it, apt-get required package 'curl' but there was some error with words 'not installable'. I don't remember, which one I had and which it needed, but I solved ...
2
votes
1answer
269 views

Installing npm /nodejson ubuntu

sudo apt-get install npm then I get this: The following packages have unmet dependencies: npm : Depends: nodejs but it is not going to be installed Depends: node-abbrev (>= ...
0
votes
1answer
55 views

Need help fixing Segmentation Fault

I'm still fairly new to linux and find myself making annoying noob mistakes. Yet, still loving the experience so what does that really say about me? I ran into an interesting problem that I'm not ...
2
votes
1answer
68 views

Nginx doesn't work on my VPS

The first idea was to set up a Node.js server on my VPS so I followed this article: Setup node js in production However in this article it is advised to use this command: sudo setcap ...
36
votes
3answers
24k views

How to install NodeJS 4 on Ubuntu 15.04 64 bit edition?

How can I install NodeJS 4 on Ubuntu using apt-get install? Which apt repo do I need to add as default sudo apt-get install installs Node 0.12.x
1
vote
0answers
28 views

How do you troubleshoot a node-app app with haproxy?

I've got what appears to be an almost-functioning install of my node app within an Ubuntu Trusty MAAS rig with Juju on a private network (which doesn't need to be published). I'm using juju-gui so ...