Questions tagged [npm]

node package manager is a package manager for node.js

Filter by
Sorted by
Tagged with
0 votes
0 answers
26 views

Read string from file and pass to command, keeping dollar sign intact

Consider a string stored in a file, which I need to read and pass to a Node script via NPM. But the string in the file contains a $, and is being interpreted as a variable and is replaced before being ...
user avatar
  • 243
1 vote
0 answers
20 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 ...
user avatar
1 vote
1 answer
90 views

bash/zsh hook - Add to PATH only if no matching file found

I am looking for a bash/zsh hook, that is invoked when a command is not found. Say I run some arbitrary executable: xyz foo --bar say that bash/zsh cannot find the executable. is there a way to ...
user avatar
1 vote
0 answers
118 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....
user avatar
0 votes
1 answer
103 views

Facing an error while installing npm for neovim coc

I have installed coc.nvim and am now installing the dependencies. To do this I need to install npm. The command I'm using to install npm is sudo apt-get install npm. However, I get this error when ...
user avatar
0 votes
0 answers
73 views

Running script at dockerfile for node image

I'm trying to run script file at dockerfile to node project. That script is adding themes repos to the core project - where the dockefile is built and running- . But when trying to run the dockerfile ...
user avatar
0 votes
0 answers
132 views

The "npm start" doesn't run in Bash

In the EC2 service of AWS, I make a Launch Template with the AMI Amazon Linux 2 64bits (x86), t2.micro for the instance type, and for the User Data I wrote the next scripts: #!/bin/bash sudo yum ...
user avatar
0 votes
0 answers
37 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 ...
user avatar
0 votes
0 answers
82 views

Getting Node error Segmentation fault (core dumped) on current user only

I installed a cli tool using npm install, but it exits with segmentation fault (core dumped). However it will run for all the other users on my machine (using sudo). I double checked all the node/npm ...
user avatar
0 votes
1 answer
380 views

Arch Linux Manjaro: npm start not detecting chrome and returning ENOENT error

I am using Manjaro and have downloaded google-chrome-stable from the AUR package. Even though google chrome is set as a default browser, npm start still defaults to opening firefox, after I deleted ...
user avatar
  • 101
0 votes
1 answer
106 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 ...
user avatar
  • 125
0 votes
0 answers
114 views

Npm won't install SOCKET.io due to Node version?

I need to install socket.io for my node program. So, whenever I try to install socket.io by running the following commandline instruction, it says node version needs to be greater than or equal to 10 ...
user avatar
  • 133
0 votes
2 answers
121 views

installation of npm

I was trying to install npm.. └─$ sudo apt-get install npm I got ...
user avatar
1 vote
0 answers
103 views

tar.unpack untar error while installing angular in Linux vm

I am installing Angular in Linux VM (3.10.0.1062) using command npm install @angular/cli@10.0.5 from Putty terminal, getting below error [host@machinename /]$ npm install @angular/cli@10.0.5 npm WARN ...
user avatar
0 votes
2 answers
355 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... ...
user avatar
  • 101
0 votes
1 answer
241 views

Can't run any serverless commands without error

Not sure if I've tagged this question correctly, but... I installed the serverless framework and went through a tutorial to deploy an app. All good. Then I changed into my actual project's directory ...
user avatar
0 votes
0 answers
97 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! ...
user avatar
2 votes
1 answer
366 views

Unable to run npm install with version specification

I am trying to run a simple npm install with zsh terminal. npm install --save-dev @typescript-eslint/eslint-plugin@^4.0.0 zsh: no matches found: @typescript-eslint/eslint-plugin@^4.0.0 It appears ...
user avatar
  • 123
0 votes
2 answers
21k 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: ...
user avatar
  • 427
1 vote
1 answer
1k views

How to install npm on my debian stretch?

nodejs installed on my debian stretch. nodejs -v v4.8.2 With same way ,i want to install npm. sudo aptitude install -f npm The following NEW packages will be installed: libjs-inherits{a} node-...
user avatar
  • 85
0 votes
2 answers
185 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 ...
user avatar
0 votes
0 answers
335 views

How do I remove unnecessary versions of node in Centos

I am trying to learn how to use node.js in centos 8 I have installed node.js and npm, and using npm I have installed inherits and n I have been following tutorials on different websites and have been ...
user avatar
  • 169
0 votes
1 answer
59 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 ...
user avatar
  • 23
0 votes
1 answer
436 views

NodeJS React Systemd Service not working

I am trying to set up a systemd service for a simple react application. This application is hosted in /home/myuser/test. Both npm and node are in the PATH and hard linked to /usr/bin. All the files ...
user avatar
0 votes
1 answer
228 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 ...
user avatar
  • 203
1 vote
1 answer
101 views

Installed btlejuice package and can't seem to be able to uninstall it

I'm using Kali Linux 2020.1 and installed the btlejuice package yesterday via the command npm install -g btlejuice. Now I'm trying to remove it but when typing dpkg --list I can't see it in there. How ...
user avatar
6 votes
1 answer
240 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....
user avatar
  • 163
0 votes
1 answer
167 views

Vue.js on Debian 9 installation woes

I'm trying to install Vue.js on my Debian 9 OS and I'm getting this error message: Illegal instruction] - rollbackFailedOptional: verb npm-session 1fd93108cdc88b2 when I do this command: npm install ...
user avatar
2 votes
1 answer
375 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 ...
user avatar
1 vote
0 answers
107 views

npm autocomplete broken if prefixed by double dash (--)

I notice this when using a command that accepts additional args after a double-dash, for example: npm test -- spec/blah-spec.js In a raw, clean, ZSH v5.3 install, tab-completion works properly: npm ...
user avatar
1 vote
1 answer
9k 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@...
user avatar
0 votes
1 answer
3k views

yum install npm fails with failure: repodata/repomd.xml from pgdg10

I am trying to install the npm through yum install npm command but it fails every time with the below log: epel/x86_64/metalink | 6.0 kB 00:00 google-...
user avatar
2 votes
1 answer
1k 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 ...
user avatar
0 votes
1 answer
231 views

Remove .gitignored folders and `node_modules` and `vendor` folders whilst I rsync them

On my GNU/Linux machine I want to backup a list of files specified in a text file names rsyncFolders.txt the idea is to keep the files I want and to exclude unwanted ones to backup. In these folders ...
user avatar
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 ...
user avatar
2 votes
1 answer
699 views

Is there a way to package npm dependencies into a .deb package for offline deployment?

I've created a very simple debian .deb package that deploys my node-red project to the correct directory structure on a target machine. I also have a number of python/debian dependencies, which I've ...
user avatar
  • 21
1 vote
1 answer
451 views

Durring npm install: fs.js... binding.copyFile... Unknown system error -122

I'm getting the following when installing @sentry/cli@1.39.1 in a fresh node_modules (existing project). Needed for @sentry/webpack-plugin. Is there any way I can find out more about this "unknown ...
user avatar
1 vote
1 answer
492 views

Can not install npm

I want to make an smart mirror, before I decide to buy a Raspberry pi I want to preview it on my old computer. I installed Raspberry pi (desktop version from homepage of Raspberry). Everything was ...
user avatar
  • 33
0 votes
1 answer
8k views

JSON on the command line with jq in Jenkins

I used jq -r '.version' package.json command to filter the version from package.json file using the terminal. Can we use jq command in Jenkins shell without locally installing it?
user avatar
  • 171
0 votes
1 answer
2k 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 ...
user avatar
2 votes
2 answers
4k views

How to update npm to latest version on Fedora

I've try to run this: sudo npm install npm@latest -g to test npm audit, but this command failed, I've got error: npm ERR! path /usr/lib/node_modules/npm/node_modules/fs-write-stream-atomic npm ERR! ...
user avatar
  • 8,800
4 votes
2 answers
3k 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?
user avatar
1 vote
1 answer
1k views

connect to server with netcat and receive *multiple* files with one request/connection

Say I have an http or tcp server running, which serves tarballs (.tgz files). Is there some way I can receive files individually so I can do something like this: nc localhost 5000 | how can I read ...
user avatar
0 votes
0 answers
611 views

Use sudo to preserve ownership of created files (do not be owned by root but by user)

My question is simple but I couldn't find answers I need to use sudo npm install but I need the files installed to have my user's ownership, not root's. For example: sudo touch a will give me a file ...
user avatar
0 votes
1 answer
3k views

Arch - Installing truffle via npm - npm ERR! write after end [closed]

I'm trying to install truffle, an ethereum development framework, via npm, running sudo npm i -D -g truffle. Unfortunately I'm getting the following error: npm ERR! code ERR_STREAM_WRITE_AFTER_END ...
user avatar
  • 633
1 vote
2 answers
333 views

NPM fail on Debian 9

I'm trying to install jquery on Debian 9 and it fails. I have installed other packages using npm with no problem. When I execute npm install jquery, I get this error: npm WARN enoent ENOENT: no such ...
user avatar
0 votes
1 answer
4k views

Why removing npm means removing nodejs as well on CentOS?

I'm trying to remove npm (EPEL repository), but yum wants me to remove nodejs as well. It's nodejs that is npm's dependency. Not the other way around. nodejs can live without npm just fine. Am I ...
user avatar
  • 2,913
0 votes
0 answers
581 views

serverless update check failed error

I want to intsall serverless on my kali linux . In order to proceed for serverless installalation we need node js install , which i have already done . root@gpunk:~# npm --version 3.10.10 root@gpunk:~...
user avatar
4 votes
2 answers
3k views

Trying to install debian package npm, makes apt-get to remove libssl-dev

:~/$ uname -a Linux hostname 4.9.0-4-rt-amd64 #1 SMP PREEMPT RT Debian 4.9.51-1 (2017-09-28) x86_64 GNU/Linux I think that I have a clear dependency tree without broken packages. :~/$ sudo apt-get ...
user avatar
  • 330
1 vote
3 answers
6k views

npm installation not working under Debian Stretch

I just tried to install node and npm on Debian Stretch. I installed node like decribed here. After installing nodejs-legacy too I got the node command working but npm command still won't be found. ...
user avatar