Questions tagged [nodejs]
Event-driven I/O server-side JavaScript environment based on V8. Includes API documentation, change-log, examples and announcements.
597
questions
1
vote
1
answer
13k
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.
1
vote
1
answer
20k
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-...
1
vote
1
answer
2k
views
Why does the Ubuntu package manager install nodejs v4.2.6 by default? [duplicate]
Running Ubuntu 16.04 on 64bit in a VM.
To be clear, I'm wondering why that specific version of nodejs is the one in the repo. Is it because the developer of nodejs choose to make that the default or ...
1
vote
4
answers
3k
views
Node is installed during provisioning on vagrant but disappears upon connecting to ssh
I am really getting sick of this and I don't know what is wrong. I am using Vagrant 1.7.2 , Ubuntu 13.04 , Virtual Box 4.3 12 r93733
My host machine is Windows 8.1
Here is my node bootstrap script ...
1
vote
1
answer
729
views
Unrecognized accessed paths - is my server being attacked?
My website seems to be having some malicious visitors and crashing my site often. I am now tracking what they are doing on my site. In my log, I found out they are accessing the following paths ...
1
vote
3
answers
5k
views
nvm can't install node
I am trying to install a stable version of node, which is now at 16.x. Ubuntu's repositories are at 10.19. I tried to use nvm and had these results:
@nspiron-N5010:~$ nvm install 16.10.0
Downloading ...
1
vote
2
answers
952
views
Installing Node.js 6 parallel to existing Node.js 7 on Ubuntu 14.04
I have Node.js 7.5.0 installed. But I got some issues with my project which uses the Node.js 6.
I get this message:
nodejs is already the newest version (7.5.0-1nodesource1~xenial1).
0 upgraded, 0 ...
1
vote
4
answers
24k
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 errors:...
1
vote
2
answers
11k
views
How to open Node.js command line in ubuntu?
I have completed installed Ruby on Rails on my ubuntu system. I have installed Node.js of version v0.10.33. I have try to search the node.js command prompt but not found. May anybody help me how to ...
1
vote
1
answer
11k
views
npm command not found in wsl
I had installed nodejs on windows10 & its path is also set to environment variable. It is working perfectly. As I switched to WSL I found npm commands were not working however I could run node.exe ...
1
vote
1
answer
2k
views
grunt-cli doesn't work
I have the latest stable node.js. It works, npm works, nvc works.
When I try to install grunt I install grunt-cli, I install grunt in a local folder and after typing grunt or grunt --version or ...
1
vote
1
answer
120
views
Cannot control terminal after installing Node
I can no longer control my Ubuntu 22.04 terminal. The terminal asks me to install ng-common and then I can't use the terminal. This is how my terminal currently looks like:
I was trying to install ...
1
vote
1
answer
2k
views
Nodejs appear installed but "--version" is not working. On Ubuntu 20.04 LTS
I am having trouble in installing nodejs, npm and a specific version of angularCli.
THe problem is that nodejs appears installed when I use the command
sudo apt install nodejs
but appears not ...
1
vote
1
answer
10k
views
error while loading shared libraries: libicui18n.so.66:
I’ve installed Node and NPM but every time I use it I get this error error while loading shared libraries: libicui18n.so.66: any ideas running Ubuntu server 20.04 LTS, everything else working fine..
1
vote
2
answers
5k
views
on new system sudo apt install nodejs not working
I want to install node version 10.16.3
so i am trying to install using nvm but my node js showing me this error
Command 'nodejs' not found, but can be installed with:
sudo apt install nodejs
i ...
1
vote
1
answer
3k
views
Linux process automatically starts again with new new PID after killing
I want to stop Node server on Linux, but when I try to stop it, it automatically starts again with a new PID. How can I stop this completely? Here you can see I tried to stop Nginx and Node process.
...
1
vote
1
answer
8k
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 ...
1
vote
1
answer
5k
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
1
answer
431
views
Why do I get an error running sudo `apt-get update`? [duplicate]
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 ...
1
vote
2
answers
2k
views
npm issue while trying to npm install dependencies
[email protected] install /home/ubuntu/blockchainpoc/hlpoc/node_modules/pkcs11js
> node-gyp rebuild
gyp ERR! configure error
gyp ERR! stack Error: EACCES: permission denied, mkdir '/home/ubuntu/...
1
vote
1
answer
8k
views
Installing nodejs in linux fails
Am trying to install node js in after uninstalling it but am getting an error
So am doing
sudo apt-get update
sudo apt-get install nodejs
Am getting the error
Err:1 https://deb.nodesource.com/...
1
vote
1
answer
2k
views
/usr/local/bin/bower: No such file or directory after reinstalling Node.js and bower
I reinstalled nodejs (node,npm) because of an old corrupted configuration. Than I installed bower
$sudo npm install -g bower
/usr/bin/bower -> /usr/lib/node_modules/bower/bin/bower
/usr/lib
└── ...
1
vote
1
answer
2k
views
Reinstall NodeJS and npm
I installed NodeJS and npm in 14.04 in the hope of setting up Ionic Framework. But there seems to be something wrong and I was told to reinstall NodeJS and npm. Can someone please give me the commands ...
1
vote
2
answers
3k
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 ...
1
vote
2
answers
2k
views
How to zero downtime restart nginx server
How to send HUP signal and zero downtime restart nginx server using Node.js file
1
vote
1
answer
721
views
node.js not starting by default in Lubuntu guest running in Oracle VM VirtualBox
I'm using Lubuntu 14.10 in Oracle VM VirtualBox. I installed node.js using nvm. After installation, I could run node --version in the same terminal and the version installed showed up. However, I ...
1
vote
1
answer
1k
views
Is there a way to integrate Node.js into the kernel core so that the system has this node running as a module.?
I want to integrate node.js into the kernel as a module. So that i could develop a common html+js+css app as a desktop app. How can this be done ? It would be nice if ubuntu had this feature.
1
vote
1
answer
5k
views
Issue using Node.js / Express, Says it's not installed
I am having the same issue this this person had.
npm installed packages are not accessible
Where the command "express nodepad" does not work. It give an error that "The program 'express' is ...
1
vote
1
answer
3k
views
Running a service ignores environment variables
I have a /ect/init/application.conf file that looks something like...
start on filesystem and net-device-up IFACE!=lo
stop on runlevel [016]
respawn
export NODE_ENV=production
chdir /home/richie/...
1
vote
2
answers
381
views
How can I install the development version of Node?
I want to get the latest updates for Node (evented I/O for v8 javascript).
I already have installed Node using:
sudo apt-get install -y python-software-properties python g++ make
sudo add-apt-...
1
vote
1
answer
3k
views
npm installed packages are not accessible
I installed nodejs with the instructions from this post on ubuntu 13.1
All went smooth. After that I installed express by issuing the command
npm install express
which result in
[email protected] ...
1
vote
1
answer
708
views
How to deal with sh: 1: next: Exec format error?
I want to use npm to run a NextJS project on my Ubuntu 22.04 but every command gives me "sh: 1: next: Exec format error". Do you have any idea how to fix it?
1
vote
1
answer
1k
views
Getting error while installing Nodejs
Following the Option 2 from https://www.digitalocean.com/community/tutorials/how-to-install-node-js-on-ubuntu-20-04 :
$ cd ~
$ curl -sL https://deb.nodesource.com/setup_16.x -o nodesource_setup.sh
$ ...
1
vote
2
answers
240
views
problem with ubuntu 21.10 and nodejs [duplicate]
I just upgrade my Ubuntu from 21.04 to 21.10.
I did the upgrade by the do-release-upgrade command so, the upgrade is finished and my problems begin: I use GO and nodejs packages, after upgrading the ...
1
vote
1
answer
2k
views
broken packages error while installing npm on ubuntu
I'm trying to install gtop on my Ubuntu machine. For that I need to install nodejs and npm package manager. First I installed nodejs with sudo apt install nodejs and it get installed fine, but for ...
1
vote
1
answer
447
views
Installing ffmpg-concat on Ubuntu 20.04
I would like to install ffmpeg-concat
on Ubuntu 20.04.
I get this error:
(django-con-video) guettli@yoga15:~/django-con-video$ npm install --save ffmpeg-concat
npm WARN deprecated [email protected]: ...
1
vote
2
answers
5k
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
vote
1
answer
459
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 ...
1
vote
1
answer
3k
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
2
answers
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://...
1
vote
1
answer
378
views
Error installing node.js [duplicate]
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
vote
1
answer
1k
views
Error executing command during installation of Node.js and npm on Ubuntu 19.04
I have been trying to install Node.js and the related package npm on my Ubuntu 19.04.
I have: v10.15.2 for Node.js and 5.8.0' fornpm`.
I know from this source that the default version of npm for Node ...
1
vote
2
answers
5k
views
Ubuntu 19.04 nodejs and npm wont run show Aborted (core dump)
I installed nodejs and npm freshly after a removal via
apt install nodejs
apt install npm
but if I put
npm -v
I get an Abort error and core dump
1: 0x948a70 node::Abort() [node]
2: 0x997982 ...
1
vote
1
answer
5k
views
How can I install nvm in Ubuntu 19.04?
How can I install Node Version Manager in Ubuntu 19.04?
1
vote
1
answer
1k
views
Installing npm package is having and issue related with sharp node modules
I am trying to install a GitHub repo in my ubuntu(18.04) machine. Try to run the command npm install but it never succeeded and hung up with an error.
Followed guide for vue-storefront-api:
git ...
1
vote
1
answer
2k
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
...
1
vote
1
answer
7k
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...
## ...
1
vote
1
answer
2k
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('/...
1
vote
1
answer
2k
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
1
answer
5k
views
How to uninstall a node.js module?
I have a Ubuntu 16.04 server with a Drupal 8.4 site
I want to install Node.js for my site.
1) I connected to my server with root and I entered the following command at the root of my server :
root@...