Questions tagged [nodejs]

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

Filter by
Sorted by
Tagged with
1115 votes
20 answers
2.5m 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 --...
Kanishka Panamaldeniya's user avatar
230 votes
19 answers
455k views

How to install the latest versions of NodeJS and NPM?

I noticed over at the https://nodejs.org/ website that node is currently at v 0.12.0. Can someone let me know how to install the latest version of node together with npm (terminal commands please)?
tonyf's user avatar
  • 2,627
191 votes
16 answers
325k views

How do I install the latest version of node.js?

How do I install the latest node.js on Ubuntu? I've been looking around, and I can't find anything. Is there a Ubuntu package for node.js, or do I have to compile it myself?
jrg's user avatar
  • 60.6k
149 votes
10 answers
506k views

How do you update npm to the latest version? [duplicate]

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 ...
Oliver Salzburg's user avatar
107 votes
19 answers
376k views

apt-get update failed because certificate verification failed because handshake failed on nodesource

Running sudo apt-get update on my AWS EC2 Ubuntu 18.04.01 LTS instance fails: Certificate verification failed: The certificate is NOT trusted. The certificate issuer is unknown when trying to access ...
Joe's user avatar
  • 1,199
83 votes
8 answers
133k 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 official ...
user1063287's user avatar
  • 2,265
62 votes
9 answers
248k 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
Tomasz's user avatar
  • 1,333
61 votes
5 answers
76k views

How to install NodeJS 4 using apt?

How can I install NodeJS 4 on Ubuntu using apt-get utilities?
Kumar Sambhav's user avatar
59 votes
4 answers
186k 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 ...
user109187's user avatar
  • 1,631
51 votes
7 answers
146k 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 ...
Matthieu Napoli's user avatar
46 votes
5 answers
117k views

Can't install npm - Unable to correct problems, you have held broken packages?

I am trying to upgrade my nodejs to 7.6 but failed. Now I have a new problem after re-installing node 6.10: $ sudo apt-get purge nodejs npm Reading package lists... Done Building dependency tree ...
Run's user avatar
  • 2,629
44 votes
5 answers
199k views

How to resolve "service start-limit-hit"

I am trying to run a Node.js API as a service, but am running into problems. When running systemctl status servicename.service I get the following error: servicename.service - [Service description] ...
Matthew's user avatar
  • 573
43 votes
9 answers
92k 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 ...
user3297351's user avatar
34 votes
7 answers
49k 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/...
Hai Vu's user avatar
  • 491
29 votes
8 answers
60k 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 ...
JonRed's user avatar
  • 393
29 votes
2 answers
107k views

How can I install a tar.xz file from nodejs.org? [duplicate]

I'm a novice with Ubuntu. I downloaded nodejs from the nodejs.org website. The file I downloaded is node-v7.1.0-linux-x64.tar.xz I know how to extract it, but that's it. Please explain how I can ...
Moti Winkler's user avatar
27 votes
4 answers
36k views

NPM is incorrect version on latest Ubuntu (18.04) installation

Normal installation would be sudo apt install nodejs to install Node.js and then sudo apt install npm to install Node Package Manager. However, upon doing so, npm -v says 3.5.2. To upgrade normally, I ...
Blairg23's user avatar
  • 497
27 votes
7 answers
101k 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 --...
thank_you's user avatar
  • 667
25 votes
6 answers
101k views

How to update Node.js to the long term support version on Ubuntu 20.04?

I'm pretty new to Ubuntu. I could install Node.js to the latest version 14.7.0 but the program I'm using (Jhipster) tells me that I need to install the Long Term Support (LTS, currently 12.18.3) and ...
Mike's user avatar
  • 363
25 votes
3 answers
34k 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 -...
Blaze Tama's user avatar
24 votes
2 answers
17k 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 ...
Brandon Clark's user avatar
22 votes
7 answers
84k 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’: ...
lara's user avatar
  • 397
20 votes
4 answers
46k views

Install Node.js in Ubuntu 14.04 [duplicate]

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 prompt >. Now, ...
Gocht's user avatar
  • 385
19 votes
3 answers
43k views

npm does not support Node.js v10.19.0

npm does not support Node.js v10.19.0 You should probably upgrade to a newer version of node as we can't make any promises that npm will work with this version. You can find the latest version at ...
JoKalliauer's user avatar
  • 1,575
18 votes
1 answer
86k views

How to remove npm and reinstall npm completely in 18.04?

I was using ubuntu16.04 upgraded to ubuntu 18.04. followed some tutorial to remove npm, but now stuck. I have: ~$ npm list -g bash: /usr/bin/npm: No such file or directory and: sudo apt-get ...
Aipo's user avatar
  • 367
17 votes
3 answers
19k 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 ...
Alexander Kim's user avatar
16 votes
1 answer
22k views

Ubuntu 18.04 LTS Server npm : Depends: node-gyp (>= 0.10.9) but it is not going to be installed [duplicate]

My environment is a little different. I updated from 14.04 to 16.04 to 18.04. My desktop PC 18.04 has npm installed. $ npm -version 3.5.2 # nodejs -v v8.10.0 # apt install npm Reading package ...
iyagi's user avatar
  • 711
16 votes
3 answers
6k views

pipe to sudo -E bash -

I was wondering what is the purpose of piping the downloaded file by curl into sudo -E bash - in the following shell: curl -sL https://deb.nodesource.com/setup_5.x | sudo -E bash -
youssef's user avatar
  • 353
15 votes
7 answers
32k views

How to install watchman on Ubuntu 18.04, for react-native? error in make command

I have read this solution . I wanted nodeman as dependency for react-native no error upto ./configure command and it works fine as given solution gd@gd10:/tmp$ git clone https://github.com/...
GD- Ganesh Deshmukh's user avatar
15 votes
3 answers
924 views

Apt-get does not recognize node software installed via nvm

I'm trying to install a .deb package however it requires several dependencies such as nodejs, nodejs-underscore, but all of those are already installed via nvm and are available. Is there anyway I ...
lab's user avatar
  • 151
15 votes
3 answers
24k views

How to Install Node.js without sudo access but with npm 1.3.10 installed?

I have little knowledge of Ubuntu 14.04. I need to install Node.js. The Ubuntu I am using is a big system for an organization so I don't have sudo access, but I found that npm 1.3.10 is installed. ...
user5280911's user avatar
15 votes
2 answers
45k views

Systemd service start results in error of code=exited, status=200/CHDIR

I'm trying to automatically run the following command on system boot with systemd. /usr/bin/node /var/www/html/rest-api/dist/index.js I have verified the command works by running it manually but ...
doovers's user avatar
  • 253
14 votes
1 answer
26k 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 ...
Zach Cook's user avatar
  • 243
14 votes
2 answers
50k 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 ...
Wesley Pennock's user avatar
13 votes
4 answers
31k 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 ...
user809829's user avatar
13 votes
2 answers
22k 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 ...
Edik Mkoyan's user avatar
12 votes
3 answers
37k 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 alias of nodejs to node I inserted a line in ~/.bashrc alias ...
codeofnode's user avatar
12 votes
1 answer
48k views

Killall node not killing node process

I have the following output via ps aux | grep node: karlm 17551 1.4 0.7 1000592 93604 pts/2 Sl 09:54 0:01 node -r babel-register -r babel-polyfill src/index.js --config=c.json I try to ...
Karl Morrison's user avatar
11 votes
2 answers
40k views

add startup service on 16.04

i need to run "node js" project on 16.4 Permanently and use forever package for run in background in ubuntu now I want add a startup service to ubuntu but i searched there is no result. I've ...
Hesam Pourghazian's user avatar
11 votes
3 answers
13k views

20.04 vs. 22.04 inside docker, with a 16.04 host == thread start failures?

I wouldn't believe it if it wasn't right in front of me. So this is obviously an old host, I'm not even looking for a fix just telling you what I'm seeing so the next poor soul to google this nonsense ...
Jason Kane's user avatar
11 votes
1 answer
9k views

node vs nodejs on Ubuntu package manager

I would like to install node.js on my Ubuntu 14.04. However, there are two packages available: node and nodejs. After some digging, I know that there used to be a package by the name of node. It is ...
conan_z's user avatar
  • 321
10 votes
3 answers
37k 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: ...
Jack_Hu's user avatar
  • 354
10 votes
3 answers
15k 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....
yuvi's user avatar
  • 1,017
10 votes
4 answers
44k views

How to install a Specific Version of Node on Ubuntu Server

I am trying to install Node 6.11.3 on my Ubuntu Server. I don't want to use nvm for this. I have already used this link but it just does not work out while using jenkins and stuff. I want to ...
Rahul Singh's user avatar
10 votes
3 answers
55k views

"/usr/bin/env: ‘node’: No such file or directory" even though it is in PATH

I'm trying to get nodejs working. However, it tells me that node is not in my bin even though I downloaded the binary and added the location to my path. > echo $PATH ...:/home/jvdh/node-v8.11.2-...
jvdh's user avatar
  • 211
10 votes
2 answers
18k 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 ...
Kinnard Hockenhull's user avatar
9 votes
2 answers
10k views

OpenSSL config cuases error in node js crypto. How should the config be updated?

This was originally posted to the nodejs Github issues page, but it appears that it is an issue with Ubuntu 22.04, so I'm re-posting it here hoping to get further advice. The original thread on Github ...
NemesisRidiculii's user avatar
9 votes
2 answers
10k 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)....
Diosney's user avatar
  • 288
9 votes
1 answer
4k views

Why does NPM install so many packages?

When deploying Node and NPM on Ubuntu 20.04 I noticed that when you run sudo apt install npm it details a massive number of dependencies that it want's to install with it. Why is this? Surely it doesn'...
Tom Dickson's user avatar
9 votes
0 answers
9k views

How to upgrade npm on Ubuntu 17.10? [closed]

Following instructions here: https://docs.npmjs.com/getting-started/installing-node I get the following results: npm -v 3.10.10 npm install npm@latest -g npm -v 3.10.10 According to the link ...
user1063287's user avatar
  • 2,265

1
2 3 4 5
12