Questions tagged [npm]

node package manager is a package manager for node.js

Filter by
Sorted by
Tagged with
0
votes
3answers
48 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
1answer
48 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-...
0
votes
2answers
75 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
0answers
27 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 ...
0
votes
0answers
20 views

npm not updating in centos 7

hi i am trying to update my npm when i run npm -v it shows the 3.10.10 version but when i run npm install -g npm@laster i get the message below : /usr/local/bin/npx -> /usr/local/lib/node_modules/...
0
votes
1answer
47 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
0answers
38 views

Restoring Linux Mint 19.2 from snapshots on an external USB drive boots me into tty NOT linux desktop. Any ideas what's wrong?

I recently screwed up my Linux Mint 19.2 laptop's drive and need to restore it from recent Timeshift snapshots stored on an external USB drive. My procedure has been to: Reinstall LM 19.2 from a ...
0
votes
1answer
75 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 ...
0
votes
0answers
61 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 ...
0
votes
0answers
31 views

nodejs undefined symbol when using pulsar-client

I am trying to install the pulsar client npm module on Debian 9.1. I tried following the instructions on github (https://github.com/apache/pulsar-client-node). My pulsar is in a custom directory so I ...
1
vote
1answer
36 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 ...
6
votes
1answer
230 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....
0
votes
1answer
79 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 ...
1
vote
1answer
66 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 ...
0
votes
0answers
306 views

EADDRINUSE on every port in Node/Express.js event after restart linux

I am running node with express.js over it on Linux. It was working but now when I start my server the followng error is displayed: Error: listen EADDRINUSE: address already in use 0.0.0.0:1223. ...
0
votes
0answers
5 views

Is there a way to avoid installing child dependencies (deps of the required dep) in NPM when using UMD?

I have a simple UI dependency I import like this... // server/package.json dependencies: { "@jrg/ui-element": "latest" } Then UI has... // ui-element/package.json dependencies: { "rxjs": "...
1
vote
0answers
72 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 ...
0
votes
1answer
3k 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@...
0
votes
1answer
764 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-...
2
votes
1answer
835 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 ...
0
votes
1answer
103 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 ...
0
votes
0answers
1k 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 ...
2
votes
0answers
340 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 ...
1
vote
1answer
256 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 ...
1
vote
1answer
311 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 ...
0
votes
1answer
4k 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?
0
votes
1answer
930 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 ...
2
votes
2answers
2k 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! ...
4
votes
2answers
2k 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?
1
vote
1answer
760 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 ...
0
votes
0answers
434 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 ...
0
votes
1answer
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 ...
1
vote
2answers
298 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 ...
0
votes
1answer
3k 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 ...
0
votes
0answers
570 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:~...
4
votes
2answers
2k 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 ...
1
vote
3answers
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. ...
6
votes
1answer
695 views

freeBSD: Atom Text Editor

Per Atom text editor build instructions for freeBSD: pkg install node pkg install npm pkg install libgnome-keyring npm config set python /usr/local/bin/python2 -g Then: git clone https://github.com/...
0
votes
1answer
431 views

you don't currently have permission to access this folder

I am trying to building a folder (name:components) within a build folder which contains only html files from the existing component folder using the following code. find components -iname "*.html" -...
0
votes
0answers
68 views

NPM chown does not work as advertised

This is supposedly supposed to work sudo chown -R $(whoami) $(npm config get prefix)/{lib/node_modules,bin,share} according to this article https://docs.npmjs.com/getting-started/fixing-npm-...
12
votes
3answers
11k views

How to install npm packages in NixOS?

In NixOS, I installed the package yarn as usual by running $ nix-env -i yarn. Now I am attempting to run yarn via $ yarn start. But this leads me to the following error. $ yarn start yarn start ...
1
vote
0answers
770 views

npm update check failed on login

I have just logged into my Fedora 25 server to see the following message: npm update check failed Try running with sudo or get access to the local update config store via sudo chown -R $USER:$(id -gn ...
0
votes
2answers
350 views

How can I install the latest 6.x or 7.x versions of nodejs (April 2017) on a sid/stretch system?

Both the commands for node 6.x and 7.x fail with curl -sL https://deb.nodesource.com/setup_6.x | sudo -E bash - sudo apt-get install -y nodejs curl -sL https://deb.nodesource.com/setup_7.x | sudo -...
0
votes
1answer
263 views

Keeping a web app running on Ubuntu

I have an Angular2/NodeJS app running on a Linode Ubuntu server. I start the app using npm start and the app will stay running until the Terminal window on my mac is closed on times out. What should I ...
1
vote
0answers
108 views

Cannot install pandoc-convert 1.1.0 via npm in atom 1.14.3 on Manjaro LXqt

When I try to install the package pandoc-convert 1.1.0 on Atom 1.14.3 using the Manjaro LXqt OS 16.11 I get the following error: Installing “pandoc-convert@1.1.0” failed.Hide output… (node:9072) ...
2
votes
2answers
83 views

How to stop fedora from notifying me about nodejs updates?

I installed nodejs using dnf on fedora 25, then removed and installed the package from nodejs' website. I excluded npm from dnf. Dnf stopped notifying me about npm updates but the software center is ...
0
votes
2answers
788 views

Install unix program without internet access

I have a red hat server (server 1) which does not have access to internet. I also have another another red hat server (server 2) which DOES have access to internet and it can also access server 1. I ...
2
votes
0answers
378 views

How to fix node in armv5

I am trying to fix nodejs on mlinux. So when i do a uname -m the output is armv5tejl. It came with pre-installed node and npm. I tried to upgrade but somehow i think I have broken something. Now when ...
0
votes
2answers
56 views

How to make git clone install cli tool?

I am creating a cli tool in nodejs, that i want people to be able to run like this: git clone mytool.git mytool -arg1 Is it possible, or there needs to be a step in between. What would it be.
1
vote
2answers
5k views

Why is npm struggling to connect to the internet on my Arch?

So while downloading the Atom Text Editor through the command yaourt -S atom-editor, but I get these errors: Installing build modules... npm ERR! Linux 4.5.4-1-ARCH npm ERR! argv "/usr/bin/node" "/...