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
1
vote
1answer
19 views

How to make my node restart every X seconds

I want to make my node command (node index.js for example) repeat every X hours. I want it to run the commandline node ., then after X hours to exit the process and node it again. Any ideas? More ...
0
votes
1answer
14 views

Where to change PATH in Kubuntu?

What is the correct location to add to my PATH so that it is used across all applications? Currently, my PATH is set in my .zshrc file. However, this prevents GVIM from seeing that path, and prevents ...
0
votes
0answers
24 views

Why is the semver error happening?

frederick@frederickpina:~$ npm install internal/modules/cjs/loader.js:1023 throw err; ^ Error: Cannot find module 'semver' Require stack: /usr/share/npm/lib/utils/unsupported.js /usr/share/npm/...
0
votes
0answers
12 views

Unable to install NodeJs 10 from nodesource on Ubuntu [duplicate]

I am trying to install NodeJS 10 on Ubuntu 18.04 LTS but each of the methods I tried below installed 8.10.0 instead. I think it's one and the same problem, either at nodesource or at Ubuntu. Does ...
0
votes
0answers
13 views

Trouble installing Faker with npm on Ubuntu 20.04

I recently installed nodejs using the sudo apt install nodejs command. But when I try to install faker by using npm I get this: julian@JLUNAI:~$ npm install faker npm WARN saveError ENOENT: no such ...
0
votes
1answer
21 views

Creating a PPA containing a Node.js script

I've asked this on StackOverflow proper and while I hate to feel like I'm spamming questions, I wonder if this might be the more appropriate place to get a good answer. I've got this very simple NPM ...
0
votes
0answers
24 views

port 8080 PID/node always restart

i'm using kubuntu 20.04 when i type sudo netstat -plten in terminal, port 8080 -- PID/node always there, and when i kill use sudo lsof -t -i:8080 port 8080 always restart and use another PID. how to ...
0
votes
1answer
13 views

How to setup my systemd service ExecStart correctly?

I'm trying to setup a service with systemd services but I'm getting an error and I can't understand what's wrong with it. [Unit] Description=Vinematik Service After=network.target ...
0
votes
1answer
415 views

Why does the problem “npm WARN deprecated request@2.88.2: request has been deprecated” occur?

I have istalled latest version of node and npm. When I'm trying to install a global package (npm install -g firebase-tools), the terminal show me some errors. How can I solve the problem? Thanks.
0
votes
0answers
20 views

Uninstalling node and npm and then again reinstalling

I have run into an [issue] and looking to remove nodejs and npm completely and then install again. I have installed node from the terminal. What's the best way to do it? My system is Ubuntu 20.04LTS. ...
0
votes
1answer
40 views

Even after update node -v shows older version [duplicate]

I am trying to update node version. Even after updating node to v10.x it still shows older v8.x. I have added path where npm and node is installed and node and npm version. I also used nvm. I have ...
0
votes
1answer
59 views

How to fix nodejs installation process on linux 19.04

Running on my system Ububntu 19.04 i find difficulty in installing nodejs After running sudo apt install nodejs I got the below errors: Reading package lists... Done Building dependency tree ...
0
votes
0answers
125 views

nodejs is already the newest version (4.2.6~dfsg-1ubuntu4.2), it is not getting installed

i have problem in installing nodejs newer version on my ubuntu 16.04 LTS Question: anyway i want to install node on my ubuntu. I have tried the following command: $curl -sL https://deb.nodesource....
0
votes
0answers
30 views

telnet using shell scripting using nodejs to run shell file

i wrote code for to run telnet via nodejs with shell scripting but its stuck in telnet password section this is my app.js code const shell = require('shelljs') shell.exec('./me.sh') and this is my ...
1
vote
1answer
72 views

Can't install any version of nodejs >10 (10,12,13) in my lubuntu

I typed following command on my lubuntu terminal from the nodejs download page to install 13.x version : curl -sL https://deb.nodesource.com/setup_13.x | sudo -E bash - sudo apt-get install -y nodejs ...
0
votes
1answer
28 views

Using environment variables with Node.js

I am trying to prepare my app for production on a ubuntu running nginx. I have been using the dotenv npm package during development, but need a more stable and secure method for production. I have ...
1
vote
0answers
75 views

trying to install nodejs with - apt install nodejs [duplicate]

Here is what it gives me: root@tal-HP-Notebook:~# apt install nodejs Reading package lists... Done Building dependency tree Reading state information... Done You might want to run 'apt-get -f ...
1
vote
1answer
83 views

Not able to install nodejs in ubuntu command line [duplicate]

I have tried this: sudo apt install nodejs Getting Error this: Reading package lists... Done Building dependency tree Reading state information... Done Some packages could not be installed. ...
1
vote
1answer
42 views

Installing newest version of NodeJS on Ubuntu 16.04

I've been trying to install NodeJS version 12, but I've been running into some issues where using sudo apt-get install nodejs is installing version 4.2.6 and nothing I've done seems to change this. ...
0
votes
1answer
252 views

snap store node js not let me install angular cli

I am on Ubuntu 20.04 and I installed the node from snap store. Now when I am trying to install the angular cli, it doesn't let me do that 2020/03/28 11:51:57.975509 cmd_run.go:884: WARNING: cannot ...
0
votes
0answers
14 views

Gzip files in Apache Ubuntu

I'm new to Ubuntu, I have a website online developed in Node.js and angular what exactly I need to do for gzip my whole application?
0
votes
0answers
167 views

illegal hardware instruction (core dumped) crash when NPM on 18.04

I haven't used node/npm in weeks but today so I have no idea since when this is failing. I'm using nodejs v13.10.1 and npm v6.13.7 and when I try to install npm dependencies I get the error: [1] ...
0
votes
1answer
501 views

MongoDB - Failed to unlink socket Fatal Assertion

2020-02-20T18:39:33.644+0530 I CONTROL [main] Automatically disabling TLS 1.0, to force-enable TLS 1.0 specify --sslDisabledProtocols 'none' 2020-02-20T18:39:33.651+0530 I CONTROL [initandlisten] ...
0
votes
1answer
79 views

Uninstalled and Installed latest verion of nodejs but when i check version its still the old one [duplicate]

I did as per the solution given in How can I update my nodeJS to the latest version? But when I check nodejs --version I get v8.10.0 And when I install using this command sudo n latest I get ...
0
votes
1answer
326 views

Add nvm to zsh path

I'm only able to access nvm using bash, I'm trying to add it to my zshrc but unable to find it's install location. I tried, $ which nvm but that does nothing.
0
votes
0answers
115 views

Cannot run UglifyJS on Ubuntu 18.04

I installed UglifyJS on Ubuntu 18.04 using: sudo apt install node-uglify And then I tried to run uglifyjs command, but got error messages: $ uglifyjs -h internal/modules/cjs/loader.js:638 throw ...
0
votes
0answers
51 views

How to install NodeJS and NPM at different path in ubuntu 18.08

install NodeJS in different location ubuntu, Like I have another location /home/jay/dev/ It generally installs on default location, which creates the permission issue always. It is better to install ...
0
votes
0answers
44 views

newb question : Did I mess with anything while installing npm?

So I'm very new to Ubuntu, never used it before. I'm on Ubuntu 19.10 Here's the story : I've installed node from the Ubuntu software. Then, I removed it using the Ubuntu software cause it wasn't up ...
1
vote
1answer
204 views

Broken Dependencies Installing NPM on Ubuntu 18.04.3 Server

I'm currently attempting to install NPM on an Ubuntu 18.04 Server install, but getting the following error: Reading package lists... Building dependency tree... Reading state information... Some ...
0
votes
1answer
38 views

How to DEFINITELY stop Node

I am running out of memory on my computer and this is the output of "top": Node is taking all my memory. So I tried the following command several times: sudo pkill -f node Nothing change, when I ...
0
votes
0answers
156 views

npm installation fails on Ubuntu 18.04.3 LTS with Connection failed [IP: 103.97.84.254 80]

ubuntu@ubuntu-Lenovo-G580:~$ sudo apt-get install npm Reading package lists... Done Building dependency tree Reading state information... Done The following additional packages will be installed: . . ....
0
votes
0answers
44 views

Port Open but refusing to connect randomly

I am running ubuntu 18.04 No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 18.04.3 LTS Release: 18.04 Codename: bionic I am using node/express to create a webserver ...
1
vote
1answer
1k views

I am trying to install forever on ubuntu

I am new to node.js, I want to install forever on ubuntu. But unfortunately it gives me an error. See in the Picture : [1
0
votes
0answers
44 views

xdotool quitting after sending a command

I'm building a node application that creates a virtual browser (in docker) by streaming firefox window using xvfb, openbox and ffmpeg through WRTC. I'm using a docker container node:12.14-slim with ...
0
votes
0answers
243 views

Nodejs update error

I tried that way: root@ubuntu-14:/home/aldo# node -v v9.11.2 root@ubuntu-14:/home/aldo# npm -v 5.6.0 $ sudo npm cache clean -f $ sudo npm install -g n $ sudo n 12.14.0 But is returning this ...
0
votes
2answers
431 views

Unable to install nodejs and npm correctly?

I want to install nodejs its npm manager but when i try to execute its commands throwing the following error...I tried to install in different methods whatever i found in google and after installing ...
2
votes
1answer
879 views

how to run npm build from bash script triggered by cronjob?

I have a very simple bash script (run-build.sh): cd /var/www/project npm run build This script works fine when I run it from the command line but I want to run it every 30 minutes via a cron job: */...
0
votes
0answers
195 views

Enlighten me about Electron installation directory on Ubuntu. “Electron command not found” in my home directory?

this is my first time installing Electron in my machine (Ubuntu 18.04). I followed the documentation and installed it from terminal (default : home directory) using : npm install electron -g ...
0
votes
0answers
71 views

Permission for reading files from FTP directory for Node.js application

I have node.js application that reading files from the FTP directory. Although it can't read as I understand by the reason of permission in the FTP folder. So, for the folder /home/ftp_user_1/ftp: ...
0
votes
1answer
156 views

Computer often freezes because of Webpack

My computer freezes about 3 to 10 times per work day (8 hours). When it freezes, I can move my mouse, but barely. It normally takes about 5 minutes for it to respond again, at which point it says that ...
0
votes
1answer
538 views

“/usr/bin/node: No such file or directory” after `snap install node` and removing node apt-installed node

In Ubuntu 19.04, I did: sudo snap install node --classic --channel=13 sudo apt remove nodejs But now if I do node or nodejs, I get the error: /usr/bin/node: No such file or directory
1
vote
2answers
2k views

Node.js will not update on Ubuntu 19.10

I've tried everything I know of and Googled this as well. I upgraded Ubuntu from 19.04 to 19.10 using Software Update. I then added the 13.x repository for Node.js and installed it. curl -sL https://...
0
votes
0answers
10 views

NodeJS causes lock screen to malfunction

From the moment I have installed NodeJS and NPM, my lock screen (gdm3) has stopped working normally. If I have used a npm command in this session, locking the screen will cause an impossibility to log ...
0
votes
0answers
408 views

Simplest way to upgrade NodeJs and NPM

In nowadays (~2020) not make sense to copy/paste big scripts from internet to install the official stable version of a package... There are a simpler (and reliable) way (comparing with this ugly ...
0
votes
0answers
48 views

use global flag or not for NodeJS install on Ubuntu 18.04 LTS

On a new installation of Ubuntu 18.04 LTS, running on a Windows 10 machine with WSL (Windows Subsystem for Linux) enabled, I want to install NodeJS. There appear to be a couple of options to do this: ...
0
votes
3answers
348 views

difference between installation options for NodeJS on Ubuntu 18.04 LTS

I'm a brand new to Linux so this may be a rookie question... On a new installation of Ubuntu 18.04 LTS I want to install NodeJS. I ran node --version to verify that it is not installed: Command '...
0
votes
1answer
33 views

i'm trying to install odoo 12 on ubuntu 18.04 and i'm facing issue about npm so i want to remove node completley , but i'm facing errors

i'm facing issues about npm while installing odoo12 "The following packages have unmet dependencies: npm : Depends: nodejs but it is not going to be installed" so i'm trying to remove existing node ...
1
vote
1answer
2k views

what is the location of node-modules

I want to see my all packages and modules of node-module. Please tell me its the location in ubuntu 18.04. such as /path/to/node-module. Moreover, How to see the code of modules such as http module or ...
0
votes
0answers
96 views

sudo needed to create a build through terminal

I'm using VuePress with NPM/NodeJS and instead of creating a build through vuepress build it needs sudo to make it work. sudo vuepress build How to make it work without sudo? Error: Error: EACCES:...
1
vote
1answer
50 views

Error installing node.js

I'm trying to install node.js version 12 on my Ubuntu 19.10 laptop by following the instructions here. When I execute the curl command I get an error about a locked directory: $ curl -sL https://deb....

1
2 3 4 5
10