Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [nodejs]

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

0
votes
0answers
21 views

npm is not updating my node.js correctly

I have a js code that I want to run on a remote Ubuntu 16.04. And node -v is not showing the same results like nodejs -v. Well this happened after using npm update(the script I need to use asked for ...
0
votes
1answer
48 views

install npm (node have been installed, npm missed)

Ubuntu version is 18.04.1 LTS I need to upgrade node version. So following some forum recommendations I've uninstalled npm and node: sudo npm uninstall npm -g sudo apt-get purge --auto-remove nodejs ...
0
votes
0answers
35 views

E: Type 'gpg' is not known on line 1 in source list /etc/apt/sources.list.d/yarn.list [duplicate]

I am trying to install yarn on ubuntu 18.04 but I get E: Type 'gpg' is not known on line 1 in source list /etc/apt/sources.list.d/yarn.list E: The list of sources could not be read. error I ...
0
votes
0answers
42 views

Node js Error: listen EADDRNOTAVAIL 52.**.**.***:1122

Node js application in local it works fine. When tried running in server it shows error. ubuntu@ip-172-*-*-*:~/sample_nodejs$ node main.js events.js:183 throw er; // Unhandled 'error' event ^ ...
0
votes
0answers
12 views

cant install node or pip or anything because of qmail and qmail-run error

I wanted to install node by curl. but unfortunately, I could not succeed because of this qmail error. later on i wanted to install Tkinter using pip but could not do this because of this same error. ...
0
votes
0answers
16 views

Ubuntu 16.04 makes laptop lag when react dev server is running on VS code

When I am using VS Code to develop and run two react applications and two simple node express apps even scrolling inside IDE is lagging (Everything else in laptop lags). When I do the same on Webstorm ...
0
votes
1answer
28 views

Trying to install node v6, but apt installs v8 [duplicate]

I am running ubuntu 18.04.1 LTS and I need to run node v6. I am following this tutorial curl -sL https://deb.nodesource.com/setup_6.x | bash - # Install Node.js and npm apt-get install -y nodejs I ...
0
votes
0answers
99 views

npm on WSL: Unable to correct problems, you have held broken packages [duplicate]

I'm using Ubuntu on Windows 10, and was working with Node.js earlier today. It was my first time using node, so I had just installed it (it's installed on the subsystem). All npm commands worked fine ...
3
votes
1answer
33 views

How to check if the certain npm module is globally installed on my machine?

How to check if the some needfull npm module is globally installed on my machine,and if so, what is the version ?
0
votes
2answers
649 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 because my Certificate verification failed: The certificate is NOT trusted. The certificate issuer is unknown when trying ...
0
votes
1answer
208 views

How do I update Nodejs from 8.12.0 to 10.13 on Ubuntu 16.04?

I run these commands curl -sL https://deb.nodesource.com/setup_10.x | sudo -E bash - sudo apt-get install -y nodejs I end up with this error: # Installing the NodeSource Node.js 10.x repo... ## ...
0
votes
1answer
69 views

After installation NodeJS, my system can't run node command

help me please install NodeJs on my Ubuntu. I do Using Ubuntu curl -sL https://deb.nodesource.com/setup_10.x | sudo -E bash - sudo apt-get install -y nodejs and after installation, I do: node -v ...
1
vote
0answers
72 views

How to start a node.js app when Ubuntu server start up?

Sir, I have a node.js script call 'Test_timeevent.js'. I use 'forever' module to avoid timeevent.js crash. I hope when Ubuntu start,this 'forever' can start timeevent.js. So,Test_timeevent.js will ...
0
votes
0answers
23 views

How to install node 10.13.0 LTS in Ubuntu 18.10? [duplicate]

On the official Node.js site they have a tar.xz file. I've extracted the file to my Downloads folder, but I am not sure what to do next. In one YouTube video I saw something like this: sudo cp -r ...
0
votes
1answer
1k 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] ...
0
votes
1answer
215 views

Start Service with Sudo

I am trying to run an Express API server with sudo permissions and have it automatically start on boot. The API needs access to bcm2835 library, and I get the following when trying to run node server....
0
votes
1answer
24 views

Why does the script for installing nodejs 6_x installs 8_10?

I use the script from the official site to install nodejs 6_x: wget -qO- https://deb.nodesource.com/setup_6.x | sudo -E bash - sudo apt-get install -y nodejs and see this output: Run sudo apt-get ...
0
votes
0answers
57 views

Connect amazon ec2 instance from local Ubuntu machine

I have an Amazon ec2 instance. I need to connect this ec2 instance from a local config file. Say for instance I tried the following URL and I wrote API using node.js: url:'mongodb://username:password@...
1
vote
1answer
282 views

Can't update nodejs in 18.04 [duplicate]

I got this message when trying to update nodejs and nodejs-dev (with --with-new-pkgs option) in Ubuntu 18.04. The following packages have unmet dependencies: libssl-dev : Conflicts: libssl1.0-dev ...
1
vote
1answer
214 views

Apache (as proxy) and Node.JS on Ubuntu

My friend asks me to prepare a Node.JS support on his server. Here is hello.js: #!/usr/bin/env nodejs var https = require('https'); var fs = require('fs'); var options = { key: fs.readFileSync('/...
0
votes
1answer
190 views

Error while installing Node Js Legacy in ubuntu?

When I try to run this command sudo apt-get install nodejs-legacy it gives it as Reading package lists... Done Building dependency tree Reading state information... Done Package nodejs-...
0
votes
0answers
28 views

Getting error while installing node.js in ubuntu 16.04

I am getting this error when I run curl -sL https://deb.nodesource.com/setup_10.x | sudo bash - to install node.js apt-get update W: chmod 0700 of directory /var/lib/apt/lists/partial failed - ...
0
votes
0answers
130 views

Unable to install npm in Ubuntu 16.04

I have installed nodejs $ nodejs -v 4.2.6 now i am trying to install npm i tried sudo apt install aptitude sudo aptitude install npm it is showing /usr/local/bin/node: 1: /usr/local/bin/node: ...
1
vote
1answer
27 views

How to get project path using Docker?

I have an Ubuntu machine, on which I have installed my sails js(node js) project. I am using Docker on an Ubuntu machine. But unfortunately I am not able to find the project location. As it's using ...
1
vote
1answer
885 views

Can't install the latest version of NodeJs despite update prior to the attempt

I'm updating the info on the available packages. sudo apt-get update Then, I'm installing NodeJs and NPM. sudo apt-get install nodejs sudo apt-get install npm When finished, I get the message that ...
0
votes
0answers
22 views

How to setup company apps on ubuntu server having multiple users?

I have two apps one is java and one is node app. Freshly created Ubuntu 18.04 server currently has two users: admin (who is in sudo group) and tester (without sudo). I install node app in /opt/...
0
votes
0answers
22 views

Why would I not not be able to connect to Core device post update?

I built an Orange Pi Zero with Ubuntu Core. I snapped in Mosquitto and Node-Red. Node-Red does not come as a service so I started Node-Red with: sudo snap run node-red I then created a small ...
0
votes
0answers
200 views

Port closed error even after opening it with ufw

I just created an Ubuntu Server on Digital Ocean for a NodeJS SMTP email project. I am getting an error in my pm2 logs when I start up the server via sudo pm2 start npm -- start: 0|npm | Error ...
0
votes
1answer
369 views

unable install package via npm install

This are the errors npm ERR! code EAI_AGAIN npm ERR! errno EAI_AGAIN npm ERR! request to https://registry.npmjs.org/cordova failed, reason: getaddrinfo EAI_AGAIN registry.npmjs.org:443 npm ERR! code ...
1
vote
2answers
1k views

How do I run a global npm program when an ubuntu program has the same name?

I installed npm-check-updates using sudo npm install -g npm-check-updates. To use it I need to run ncu in the folder I want to check with it. However, it appears there is a weather program in Ubuntu ...
1
vote
0answers
15 views

what is the difference between node and nodejs version being shown in my terminal ubuntu 17 [duplicate]

When I type node -v result: v.10.8.0, npm -v result: v 6.2.0. and finally nodejs -v result: v.6.14.2. I read in other forum saying that node and nodejs are same. If it's true, did I installed two ...
0
votes
0answers
16 views

How to install node and nodejs-legacy on remote Ubuntu server without internet access? [duplicate]

I have a remote Ubuntu server without any internet access. I can access it shell and fileSystem (ssh and sftp). How can I install it? Is there any possible way to install it without root access?
1
vote
2answers
1k views

How to install node-sass on Ubuntu 18.04, and How to succesfully compile .scss file to css?

I have tried this answers but it didn't work. I am trying to compile files in my scss folder to regular css files but it's hanged in between. I installed node-sass from npm and it gives error as ...
0
votes
1answer
14 views

Error output while installing node

screenshot hello there, Am trying to install Phonegap, in the process i have to install node, the picture is the error output while installing node
2
votes
0answers
937 views

How to run my snap application on startup

I have a snapcraft application build on top of electronJs. I would like that application to run on startup. I tried to directly drop a app_name.desktop file inside the current user config/autostart ...
0
votes
0answers
521 views

error module.js:549 throw err; when I try check out the version of express with express -V in ubuntu?

I tried check out my version with the next command: express -V from the terminal of my ubuntu. and I got this error ? module.js:549 throw err; ^ Error: Cannot find module 'commander' ...
0
votes
0answers
132 views

How to setup Oracle SQL Plus on Ubuntu?

I'm trying to deploy an application in the client machine which I access trough putty. I'm using node-oracledb module. The OS is Ubuntu 16.04. When I run the app I get this error: Error Log I only ...
7
votes
1answer
4k 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 ...
1
vote
0answers
138 views

What should I do to have permission to join two modules of a project without using sudo?

I am trying to link two modules of an application as I always did: npm link . inside a module that I want to call, and from the other call it in package.json, and it gives me the following error: npm ...
0
votes
1answer
1k views

Sudo Not Working for Node and NPM Install [duplicate]

I have been running into issues with my Ubuntu server (EC2 instance) where I installed NVM (Node Version Manager) under the default ubuntu user that Amazon provides you (Also the recommended ...
1
vote
0answers
36 views

I am getting an error when I am checking npm version

I am getting an error when I hit npm -v. Actually this happent after I tried a command to update my npm version from 3.5.2 to version 4 or higher. The command I used is this sudo ln -sf ~/.nvm/...
1
vote
1answer
160 views

Why do I get an error running sudo `apt-get update`?

Install Lubuntu 16.04 Whenever I run sudo apt-get update, I get the following error: W: The repository «cdrom: // Lubuntu 16.04.2 LTS _Xenial Xerus_ - Release i386 (20170216) xenial Release» does not ...
0
votes
0answers
122 views

Ubuntu Cannot reinstall coreutils

I deleted the usr/bin/env file in my Ubuntu16.04 by mistake. Everytime i try to reinstall coreutils with this command: sudo apt-get install --reinstall coreutils, i get this error: Reinstallation of ...
0
votes
0answers
20 views

node script called via ip:port timeout after upgrade to 18.04

I upgraded my server to 18.04. Until now, i was able to start nodejs scripts listening to ports and just call them via IP:PORT. Now this is not possible anymore. It just loads forever until browser ...
0
votes
1answer
728 views

how to fix error E: Sub-process /usr/bin/dpkg returned an error code (1) [duplicate]

sudo apt-get install -f Reading package lists... Done Building dependency tree Reading state information... Done 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 2 not fully ...
0
votes
0answers
34 views

why does my node.js not upgrade accordingly?

I need Node.js v8.x on my system (16.04) , so I followed the instructions found on https://nodejs.org/en/download/package-manager/#debian-and-ubuntu-based-linux-distributions and ran curl -sL https://...
0
votes
0answers
636 views

Change nodejs version?

I need to use the following versions for my script to properly continue working. npm -v 5.8.0 node -v v9.10.1 nodejs -v v4.2.6 I have npm and node correct but I cannot get nodejs to use v4.2.6 ...
0
votes
0answers
42 views

i am unable to install node version 6

sudo curl -sL https://deb.nodesource.com/setup_6.x | sudo -E bash - when trying to install i am getting following error Installing the NodeSource Node.js 6.x LTS Boron repo... Populating apt-get ...
0
votes
1answer
553 views

Node.js “UserLogged” function returning “undefined”. Why? [closed]

When I get to the end of the code below, it always returns "undefined" and I don't know why! function UserLogged (session) { if (session === null) { var err = new Error('Not logged in'); ...
1
vote
2answers
209 views

trying to install Node js, but it seems like in the source files or package there in an extra space so error are there [duplicate]

trying to install Node js, but it seems like in the source files or package there in an extra space so error are there. $ curl -sL https://deb.nodesource.com/setup_8.x | sudo -E bash - W: Failed to ...