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
0
votes
0answers
14 views

nodejs installed but failed to display the version

I have installed nodejs using sudo apt install nodejsbut when using nodejs --version it asks me to install. Next, when i am trying to use sudo apt install npm its displaying the following exceptions: ...
1
vote
0answers
24 views

Installing new version of NodeJS on Lubuntu 20.04 LTS - How to avoid possible problems?

I am using Lubuntu 20.04 LTS and I have installed NodeJS from package manager. Apparently, the latest release available was NodeJS v10.19.0, I need to update to latest NodeJS LTS (v14) but not sure ...
0
votes
0answers
23 views

Should I run `npm install -g npm` if my current npm was installed with apt?

Whenever I use npm, I get a big fat warning: ╭────────────────────────────────────────────────────────────────╮ │ │ │ New major ...
0
votes
0answers
11 views

How to add a service for gulp command

I have a project that contains an HTML file (no app.js) that starts to run with the command npm start (gulp default). How can add a service to this command such that the changes get detected and the ...
1
vote
1answer
19 views

Hosting a NodeJS application in different location is not working with Nginx

server { listen 80; server_name mydomain.com; location /sublocation/ { proxy_pass http://localhost:8090; proxy_http_version 1.1; proxy_set_header Upgrade $...
-2
votes
0answers
30 views

Why the console shows an error in the bundle.js file? [closed]

After calling the browserify check.js -o bundle.js command, in the file bundle.js has been written code similar to check.js . There is some information about the Error TypeError
0
votes
1answer
12 views

How to use npm file-storage package?

I learn Javascript and don't even know, how exactly use FileStorage object. var storage = new FileStorage(...); // supply valid credentials The package link: https://www.npmjs.com/package/file-...
0
votes
1answer
11 views

Terminal not outputting result in Visual Studio Code

Image I'm fairly new to programming and I'm learning Node.js. When testing my installation of node.js and VS code, I just wanted to run a console.log('Hello');, but the terminal is not outputting ...
0
votes
1answer
41 views

Packages required for website deployment using apache on Ubuntu 20.04

This is quite a broad question, but assuming I need to create an Ubuntu 20.04 Server which hosts a website using httpd and created using Node.js and React, which packages do I need to install in order ...
1
vote
0answers
61 views

upgrade nodejs on Ubuntu 20.04.2 LTS

I tried to reinstall nodejs from 13 to 14 but it doesn't work. joris@joris-ub-7798:~$ node -v v13.5.0 joris@joris-ub-7798:~$ nvm ls -> v13.5.0 system default -> node (-> v13....
0
votes
1answer
21 views

code-server cannot find nodejs

I had a problem while trying to run code-server (visual studio code on browser), I installed it correctly via the manual process, but every time I try to run it I get this error: /usr/bin/code-server: ...
0
votes
0answers
17 views

How can i resume a Terminal Session in Ubuntu 20.x

I am using a Ubuntu 20 Server as a Developer System to run NodeJS on it. I start my node with nodemon so that all changes are detected and automatically reloaded. All works fine except if I lose my ...
0
votes
1answer
32 views

Should I install Node.js globally or on a virtual environment?

Right now I doing a course for this Node.js is one of the requirements. So should I install it globally or in a virtual environment. I have no previous knowledge of using Node.js. My operating system ...
0
votes
0answers
246 views

getaddrinfo EAI_AGAIN in node js Ubuntu

our company has decided to move to AWS EC2 and we moved. we are using Ubuntu 18.04. we have successfully install node and npm and also started using node js. but after few days we are getting ...
0
votes
0answers
25 views

Ubuntu NodeJS latest version

I've tried several times from the standard Ubuntu .deb repos to get the latest version of Node.JS but it always installs node version 8.10 and npm version 3.5.2 which both have a bug when installing ...
0
votes
0answers
58 views

Unable to Install Packages After Upgrade to 20.04.2 LTS

I'm trying to install nodejs, however I get the follow error message: Some packages could not be installed. This may mean that you have requested an impossible situation or if you are using the ...
0
votes
1answer
50 views

Where is node_modules global location

Where is node_modules installed globally on Ubuntu 20.04 ? It's not there in /usr/local/lib I want to get rid of globally installed webpack. I can't seem to locate it.
0
votes
1answer
338 views

Docker build failed on npm install, reason: connect ECONNREFUSED 104.16.17.35:443

I'm having a hard problem getting my Docker container up, it shows some weird error in the console: Dockerfile: FROM node:14 WORKDIR /usr/src/app/ COPY package.json package.json COPY server.js ...
6
votes
2answers
327 views

How can I completely reverse all changes by npm in Ubuntu

The Question is similar to https://stackoverflow.com/questions/11177954/how-do-i-completely-uninstall-node-js-and-reinstall-from-beginning-mac-os-x but for Ubuntu, and mainly concerns the cleanup part....
0
votes
1answer
278 views

node:/usr/lib64/libstdc++.so.6:version GLIBCXX_3.4.14, GLIBCXX_3.4.18, CXXABI_1.3.5, GLIBCXX_3.4.15, GLIBC_2.17, GLIBC_2.16 and GLIBC_2.14 not found

While running node -v it shows the below error: node: /usr/lib64/libstdc++.so.6: version `GLIBCXX_3.4.14' not found (required by node) node: /usr/lib64/libstdc++.so.6: version `GLIBCXX_3.4.18' not ...
0
votes
1answer
50 views

Every day or two, the CPU VM receives up to 250% load for several hours

The load during the day does not exceed 5%, and these bursts have nothing to do with our side. I use Google Compute Engine f1-micro (virtual machine). OS: Ubuntu 16.04 RAM: 600 MB CPU: 2 core ...
0
votes
1answer
41 views

Why is my service timing out when I can clearly see it started properly?

Here is my log : Feb 10 10:19:25 ip-172-31-47-29 systemd[1]: Starting TNR Photo Download Service... Feb 10 10:19:26 ip-172-31-47-29 tnr-photos[67938]: Server running on port 2200 Feb 10 10:20:56 ip-...
0
votes
0answers
57 views

nodejs - npm error

I installed NodeJS and when I tried to check the installation it showed nodejs not installed. But when I tried to check the version of npm , I am facing the following error: $npm-vb /usr/lib/...
0
votes
0answers
26 views

Package error in vscode

I tried to install nodejs and npm in vscode and somehow ended up with the following package error.even i tried to uninstall vscode completely and reinstall still iam facing the same error. N: Skipping ...
0
votes
0answers
18 views

How to install Node.js v12.x: [duplicate]

My Ubuntu version is 18.04.3 LTS. I am trying to install Node.js v12. but i can see that Version: 8.10.0~dfsg-2ubuntu0.4 can only be installed in my ubuntu . How to upgrade the version of node from 8....
0
votes
1answer
101 views

Installing Node-js Removes ros-melodic-desktop-full

I was trying to install npm, but I got an error: npm : Depends: node-gyp (>= 0.10.9) but it is not going to be installed So I searched the internet and found an answer: npm : Depends: node-gyp (>...
0
votes
0answers
81 views

Disadvantages of using npm n for upgrading nodejs

My question There are some criticisms against npm n, but they are dated (mostly from < 2018). Do the criticisms still stand? Is n unstable or does it have pitfalls? It bears saying that there were ...
0
votes
1answer
256 views

I'm unable to install typescript globally or any node packages on ubuntu 20.04

I installed nodejs useing sudo apt install nodejs. However everytime i wanted to install a package globally it required me to use sudo which is bad. I followed these instructions so that i would be ...
0
votes
1answer
834 views

What is the problem with node_modules (or npm) PPA on Ubuntu

I started to use Ubuntu last year and since today I face really annoying problems. Firstly the problems were Reactjs with script errors which I couldn't even start a project, anyway I solved in ...
0
votes
0answers
627 views

npm install return network error ECONNRESET

Everytime I try installing packages using npm I get the following error npm ERR! code ECONNRESET npm ERR! errno ECONNRESET npm ERR! network Invalid response body while trying to fetch https://...
0
votes
0answers
24 views

Not able to use nodejs with private user, but can use it with root user

I am using lubuntu. Installed nodejs with the .tar file in /opt directory through the root user. Using ''sudo su'' command. Now I am not able to use nodejs with my private user, whereas I can use it ...
2
votes
0answers
63 views

Node.js server only accessible from localhost

I have an app that is supposed to obtain a string from a server that runs at the local address 192.168.10.10. The server is a simple nodejs script that looks like this: var http = require('http'); ...
0
votes
0answers
85 views

web_js installation: found one low severity vulnerability

I am working on Ubuntu 20.04 osboxes.org virtual machine installed on Ubuntu 18.04. I used the following command to install web3: npm install web3 I got the following message: • web3@1.3.1 added 352 ...
0
votes
2answers
932 views

dpkg-deb: error: paste subprocess was killed by signal (Broken pipe) nodejs [duplicate]

I have tried every solution I can find on the net from many different sites. I start out with: sudo apt upgrade and then: sudo apt upgrade, but as you can see I wind up with unmet dependencies michael@...
0
votes
0answers
7k views

“SyntaxError: Cannot use import statement outside a module”: occurs on Ubuntu, but not on Windows

I work with this assembly: https://github.com/andreyalexeich/gulp-scss-starter It works for me on Windows. But on Ubuntu, right after the run command (gulp, or npm run dev, or yarn run dev) does not ...
0
votes
1answer
540 views

NPM install fails on ubuntu 20.04 Vagrant box

I'm running into ENOENT errors when trying to npm install on a Linux Vagrant box. My code in the provisioning script looks like: sudo apt-get update sudo apt-get install nodejs sudo apt-get install ...
0
votes
0answers
619 views

Data is not defined reference error NodeJs

My code works fine if don't redirect my show.ejs file then this error doesn't show up but when I try to redirect it to places.ejs it shows this error I don't know where I'm going wrong please help me ...
0
votes
0answers
3k views

How to enable access to mongoDB atlas (firewall problem)?

I'm following this fullstack course but I'm not able to connect to my mongoDB Atlas database. I have had a whitelist entry that allows access from anywhere as per the tutorial since the beginning and ...
0
votes
1answer
50 views

Unable to save file in node editor using .save filename

I am a newbie to node.js and I have installed node.js version 15 and using linux subsystem(Ubuntu) on Windows. So I have written these lines in the node editor using .editor > function today() ... {...
0
votes
1answer
187 views

NPM, NVM, NodeJS on WSL2 Ubuntu

Before I you read my question, please let me know if WSL2 Ubuntu related questions are permitted in this forum. I have a Laravel App on Ubuntu WSL2. I am trying to add SCSS/SASS with it. I already ...
1
vote
0answers
18 views

Installing npm on Ubuntu 20 requires Ubuntu CD [duplicate]

I have installed node correctly and now trying to install npm sudo apt install npm But I get Media change: please insert the disc labeled 'Ubuntu 20.04.1 LTS _Focal Fossa_ - Release amd64 (20200731)'...
0
votes
0answers
154 views

cordova: command not found

I have installed cordova in my machine with command npm install -g cordova after that when i tried to check the version of cordova with command cordova --version its showing as cordova: command not ...
0
votes
1answer
391 views

Send a string and Enter key to a Node.js script [closed]

I am running a Node.js script that prompts (via lib) user for a code. I get the process id of the script: pgrep -f test.js and then pass it the code with a new line to simulate Enter key: echo -e &...
0
votes
0answers
47 views

Connect to dev machine using IP address

I'm working through tutorials using Angular and node. I am able to build and access my tutorial site on the localhost:<port#> and can also access them on the machine using http://127.0.0.1:<...
1
vote
1answer
2k views

“/usr/bin/env: ‘node’: No such file or directory” on terminal startup

I just updated to 20.04 and every time I open a terminal /usr/bin/env: ‘node’: No such file or directory shows at the very top. I have searched for answers but in the questions I found, npm did not ...
0
votes
1answer
51 views

Can not use npm install in project

I've installed node using nvm, but when I go in my project folder and try to run npm install it shows npm not found. However I tried to install gulp globaly with sudo npm install -g gulp it worked. ...
0
votes
1answer
292 views

Remove node and nodejs from ubuntu 18.04

I have node and nodejs installed on my Ubuntu 18.04 machine. I want to remove it and/or reinstall it to have latest nodejs version. When I run node -v it gives me: v12.18.4 When I run nodejs -v it ...
0
votes
0answers
910 views

Getting node.js permissions error for non-root user

I'm working on an existing Ubuntu 20.04 server and it has an node app installed at location /home/jet/ However, when I run 'command cut -d: -f1 /etc/passwd', I cannot see a user with name jet. So ...
0
votes
0answers
106 views

Installed certbot and started to receive port 80 error

I'm running node.js server on ubuntu20.04 (without nginX) I'm attempting to use SSL for the first time. I installed certbot with 'certbot certonly --standalone' My node server was set to ports 9080 (...
1
vote
1answer
2k views

MongoDb fails to start on Ubuntu 20.04

I installed mongoDB using these commands: wget -qO - https://www.mongodb.org/static/pgp/server-4.4.asc | sudo apt-key add - echo "deb [ arch=amd64,arm64 ] https://repo.mongodb.org/apt/ubuntu ...

1
2 3 4 5
11