Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [npm]

node package manager is a package manager for node.js

0
votes
1answer
18 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
72 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
45 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 ...
0
votes
0answers
32 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 ...
0
votes
0answers
67 views

NPM always fails to install packages Deepin Linux

I Have Deepin 15.9 Installed on my Hp ProBook 5330m as the main OS! I am sharing VPN connection from my android phone to my laptop using android app called (Proxy Server) and after set my phone as ...
1
vote
1answer
117 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
670 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
88 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
1k 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! ...
0
votes
0answers
218 views

Why doesn't a Gradle with task to call npm install not work with nohup

I have a gradle app with the following task... task npm(type:Exec) { if(System.getProperty("os.name").toLowerCase(Locale.ROOT).contains("windows")){ workingDir = "${projectDir}" ...
2
votes
2answers
558 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?
0
votes
0answers
9 views

Updating npm AFTER /usr/lib/apt/apt.systemd.daily finishes [duplicate]

If apt-get updates a package that was previously upgraded by npm install -g, you often end up with an older version of that package than the latest. The easiest fix is to do an npm upgrade -g . after ...
1
vote
1answer
423 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
15 views

npm install fails @types/detect not found , @types/minimatch@3.0.1 not found

Npm install is failing. I tried clearing cache and then installing. I upgraded node. Still npm install is failing. Thanks
0
votes
0answers
248 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
257 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
2k 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
463 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
1k 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
5k 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
452 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/...
1
vote
0answers
2k views

Accidentally removed /usr/local/bin/node [closed]

I accidentally copied the following command from a forum into my command line sudo ln -fs /usr/bin/nodejs /usr/local/bin/node which caused /usr/local/bin/node to get deleted (replaced by a dead link)...
0
votes
1answer
226 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
55 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-...
7
votes
3answers
5k 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
votes
0answers
499 views

Different version of npm when using sudo?

when I tried to update npm, I found that command returns Permission deny: npm install npm -g Then I tried: sudo npm install npm -g Then npm has been updated, but when I tried npm -v and sudo npm -...
1
vote
0answers
620 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
290 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
209 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
94 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) ...
0
votes
0answers
591 views

Change env variable based off current directory - hook into cd command somehow? [duplicate]

Is there a way on *nix machines, to change the value of an environment variable depending on the current working directory? I am working on an NPM/Node.js module. Basically what I want to do, is ...
3
votes
2answers
71 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
565 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 ...
1
vote
0answers
308 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
48 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
4k 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" "/...
2
votes
2answers
2k views

NodeJS - error npm undefined symbol uv_fs_realpath

i'm trying to install yo (linux) using npm npm install -g yo but i get this error : node: symbol lookup error: node: undefined symbol: uv_fs_realpath when i only type npm, it return same error ...
0
votes
1answer
829 views

bash - npm not found, though installed

ph@vm:~$ uname -a Linux vm 4.2.0-16-generic #19-Ubuntu SMP Thu Oct 8 15:35:06 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux ph@vm:~$ which npm /home/ph/.nvm/versions/node/v4.0.0/bin/npm ph@vm:~$ npm -v 2....
2
votes
1answer
1k views

Using an older version of Node and NPM on FreeBSD

I need to install an older version of NODE and NPM on freebsd to work with GHOST, a pretty cool blogging platform. I want to do this on my own system, preferably on a FreeBSD VM. The system is setup,...
1
vote
0answers
374 views

npm install couchbase on linux machine failing

I am trying to move node js application from windows machine to linux machine for QA environment and I am having trouble installing couchbase module on linux machine. It ran fine on windows machine ...
1
vote
1answer
432 views

SASS (gulp) failing

My gulp is failing. It's a clean install. Installed as non-superuser and using as non-superuser. I am in /X/ when running gulp. It works straight from install on other machines. I have done a ls -l $(...
0
votes
1answer
270 views

Can not execute bash script (unexpected element '(' )

I have created a script to check if I have installed Node, Npm, Bower and Susy but when I execute it I get an error which I can not solve. This is the script: isInstalled(){ command -v $1 >/...
1
vote
1answer
174 views

Npm throws error [Opensuse Tumbleweed]

I tried installing node.js on openSUSE Tumbleweed, but when I try to run npm install I get an error: openssl fips failed: error:2D06C06E:FIPS routines:FIPS_module_mode_set:fingerprint does not match ...
0
votes
1answer
2k views

How to install bower on CentOS 7?

I am trying to install bower on CentOS 7, after installing node.js. To install node.js I followed these steps: Step1: wget http://nodejs.org/dist/v0.10.30/node-v0.10.30.tar.gz Step2: tar xzvf node-...
1
vote
1answer
1k views

Bash script problem in RPM postinstall

I created an rpm package that extract a Node.js project into a specific folder and then I created a postinstall script that cd into that folder and perform an "npm install --production" #!/bin/bash ...
1
vote
0answers
275 views

npm on ARM return TypeError: Bad argument

Env Cross-compiled node.js for ARM read more... Installed on target FriendlyARM mini210s running bare Linux 3.0.8 armv7l On target node.js seems to function properly. I tried a simple hello word ...
16
votes
4answers
33k views

Is there an option to install an npm package without dependencies?

I'm attemting to modify an npm package with multiple dependencies. As such npm install -g . takes a long time to execute. Do I have other options besides removing the dependencies from packages.json?
4
votes
1answer
1k views

Is it safe to install software globally with npm?

The node.js package manager, npm, has an option to install packages globally. Since distributions typically have their own package manager, is it safe to use the global option? Could npm packages ...
3
votes
2answers
582 views

Should I install npm in Kubuntu?

I am using Kubuntu. I am looking into installing a plugin to help in javascript. This seems to be good jshint but it mention npm install What is this? My understanding is that in Kubuntu I should only ...