Questions tagged [npm]
node package manager is a package manager for node.js
90 questions
2
votes
0
answers
45
views
What am I doing wrong here? (npm, root privileges ... ?)
Somewhat floundering. I'm trying to install and run an open-source app called "Swordfish", which is a CAT (computer-assisted translation) app.
I've never really built from source before in ...
0
votes
1
answer
282
views
How can I start a NPM app from a desktop shortcut?
I have created a desktop shortcut for a npm application called TMXEditor, but it doesn't work.
I can launch the app if I do cd /home/souto/Apps/maxprograms/TMXEditor && npm start on a terminal....
-1
votes
1
answer
576
views
Why Ubuntu does not see npm? sudo: npm: command not found
I run
sudo npm install -g @angular/cli
got
sudo: npm: command not found
Let's check
nvm install v20.0.0
v20.0.0 is already installed.
Now using node v20.0.0 (npm v9.6.4)
and
which npm
/home/miki/....
1
vote
1
answer
311
views
OpenBSD: npm install sodium-native, interpret error messages
I am attempting to install sodium native as an npm package on OpenBSD 7.3 amd64.
Aside: As a dependency of Hypercore, Hyperbee and Corestore.
This needs node-gyp.
Following this, I set the C and C++ ...
2
votes
2
answers
5k
views
wscat is broken on install
wscat broken - any ideas why - I use this tool a lot, never seen this before.
Ubuntu 20.04
# npm install -g wscat
added 9 packages in 2s
root@simp:~# wscat
node:internal/modules/cjs/loader:988
...
1
vote
0
answers
190
views
Symlink npm to pnpm
My understanding is that pnpm is designed to be a drop-in replacement for npm. However, I'm not sure if this is true for all cases.
Is it safe to just delete npm and symlink in pnpm or will that break ...
2
votes
0
answers
678
views
Figuring out which user is best to start pm2
I'm about to deploy a highly secure production server, which is running an nginx reverse proxy, which points to the backend server on nodeJS. When a user starts the server by typing in the "pm2 ...
1
vote
1
answer
807
views
Make npm work in tails
The latest tails comes with nodejs v10.24.0. Trying to get tails to run a newer node has been unsuccessful even after running script from deb.nodesource.com/setup_14x which said buster was unsupported....
0
votes
0
answers
173
views
Why is cronjob stoping the script execution after 60 seconds?
0 8 * * * /usr/local/bin/npm --prefix /root/myscript run start > /root/logs
I can see at the log file that this script STARTS execution at 8am.
Although, if the script does exceed more than 60 ...
0
votes
1
answer
481
views
authentication for npm install during PuTTY ssh?
I'm connected via PuTTY ssh to a Linux Server (so it's not supposed to have a GUI).
when I npm install something, due to some intranet network configuration, the http request is redirected as follows
...
0
votes
2
answers
281
views
installation of npm
I was trying to install npm..
└─$ sudo apt-get install npm
I got ...
0
votes
2
answers
665
views
NPM: Unmet dependencies on Debian 9.13 Stretch
I'm trying to install NPM on a Google Cloud Platform Debian Instance running Debian 9.13 Stretch. However, if I try to use $ sudo apt install npm I get the following message
Reading package lists... ...
0
votes
0
answers
292
views
Ubuntu server NodeJS app exited due to lack of memory (npm err 137). Memory leak or lack of memory on server?
I am hosting a NodeJS app on a Ubuntu server. The server has 512 MB of RAM and is pretty basic since I am the only user of the app.
Recently, the app ended exited with the following errors:
npm ERR! ...
0
votes
2
answers
52k
views
lsof command not found in VS Code terminal
I am trying to start up my application with npm start, however I get the following errors:
rm: cannot remove 'dist/': Device or resource busy
When I try to run an lsof I get the error message: bash: ...
0
votes
2
answers
427
views
shell script relative position from the file
I have almost no idea about shell scripts or commands in linux
I have a project named projectx
projectX happens to be in users/hardik/desktop/projectx
I have created a shell script start.sh. This is ...
0
votes
1
answer
95
views
After debian upgrade, npm is not working
I upgraded from Debian 9 to 10, and Emacs from 25 to 26.1. Then, npm was NOT working and missing but node was there.
Then, re-installed npm using:
$ sudo apt-get install npm
npm succesfully ...
0
votes
1
answer
637
views
Getting error when installing bufferutil npm package
I've a problem install my application on my server. Locally everything works fine. The versions of node and npm are the same but I'm still getting this error during my install on the server:
91 ...
6
votes
1
answer
260
views
When debian bugfix will appear on my system?
On my Debian 10 I've ran into same problem with npm as many people before:
npm does not support Node.js v10.15.2
Searching for the fix I've found that the bug was fixed in debian:
https://bugs....
2
votes
1
answer
720
views
Deb build-dependencies in custom locations
I have a debian package with npm build dependency, e.g, the control file contains the line:
Build-Depends: debhelper (>= 11), npm
Building this package works fine if I have installed nodejs using ...
1
vote
1
answer
10k
views
EACCES: permission denied when using sudo
I'm trying to install a node package using NPM, but it just gives a permission error. I could install packages without any issues yesterday, but for some reason it has stopped working.
asgeir@...
2
votes
1
answer
2k
views
How does one set up CodiMD as a personal wiki?
CodiMD is great for collaborative work, but I would like to use it for personal notes on my laptop (Ubuntu 18.04), configured so that it works without an internet connection and uses as few resources ...
1
vote
0
answers
3k
views
npm : Depends: node-gyp (>= 3.6.2~) but it is not going to be installed
I did the following steps:
git clone https://github.com/nibtehaz/NORTH-app.git
curl -sL https://deb.nodesource.com/setup_10.x | sudo -E bash -
sudo apt-get install -y nodejs
npm install # which caused ...
1
vote
1
answer
747
views
Durring npm install: fs.js... binding.copyFile... Unknown system error -122
I'm getting the following when installing @sentry/[email protected] in a fresh node_modules (existing project). Needed for @sentry/webpack-plugin.
Is there any way I can find out more about this "unknown ...
0
votes
1
answer
3k
views
Why is process not exiting and how to get it to exit
I have a server I want to run (on one HTTP port), and then another script (which runs (temporarily) on another port).
I'm using a pipe in order to let these run concurrently, and brackets to group ...
4
votes
2
answers
4k
views
nodejs deb package seems to miss npm
I did on Debian testing sudo apt install nodejs but I'm missing npm.
$ node -v
v8.11.2
$ npm -v
bash: npm: command not found
What did I miss?