Questions tagged [npm]

66 questions
3
votes
0 answers

Using SSH key for install npm module from private repository inside docker

I make container for nodejs project. Inside the project I am using private repository. I need an access to it. For that I am using next Dockerfile FROM node:15 RUN echo "StrictHostKeyChecking no" >> /etc/ssh/ssh_config RUN mkdir -p -m 0600 ~/.ssh…
Eugene
  • 157
  • 1
  • 8
2
votes
2 answers

How to install NPM on Debian?

Can somebody please help with installing NPM in Debian? First I tried apt-get install npm but got this message: Unable to locate package npm. So I followed the installation steps for Debian from nodejs.org. The first command: curl -sL…
Lajdák Marek
  • 147
  • 1
  • 2
  • 7
2
votes
1 answer

Jenkins Docker build slave - npm cache not working

I have a Docker image, let's call it frontend.image, that I use for a Jenkins build slave. The Jenkins Docker plugin will spin up a container from this image and build artifacts inside the container. This all works great. In this case, the…
Brian
  • 321
  • 3
  • 5
  • 15
2
votes
1 answer

Running npm via sudo (not as root, not as self-user) can't find npm where root or self-user can

I have a makefile, which I use to sudo make install for the parts of my app that generally require root installation. Unfortunately, this results in a strange situation where sudo doesn't have access to npm, while both root and my user do have…
Kzqai
  • 1,278
  • 4
  • 18
  • 32
2
votes
1 answer

How to install nodejs and npm packages with salt on debian

I'm struggling to install a recent nodejs version and npm packages using salt on debian. Here is my salt state: nodejs-deps: pkg.installed: - names: - g++ - curl - libssl-dev - apache2-utils require: - pkg:…
Nicolas BADIA
  • 366
  • 1
  • 6
  • 15
2
votes
2 answers

npm install on vagrant virtualbox

Seem to be having A LOT of trouble figuring this one out, but I'm attempting to use vagrant and provision a server that uses node / npm to install dependencies. My setup is: ubuntu 12.04 host (old dev environment) ubuntu 12.04 guest (created via…
Greg
  • 231
  • 1
  • 3
  • 11
2
votes
1 answer

How to use a different version of python duing NPM install?

Salam (means Hello) :) I have terminal access to a VPS running centos 5.9 and default python 2.4.3 installed. I also installed python 2.7.3 via these commands: (I used make altinstall instead of make install) wget…
2
votes
1 answer

how to fix the npm install fails with 'An unknown git error occurred' in one folder but works in a another folder

My Server runs on Centos 8 and I installed nodejs latest (v14.17.5) and NPM (v7.21.0), both dont have a .git folder in there. I have a very very strange issue, If I goto folder example1.com, and run npm install I get the below error, [root@www…
mahen3d
  • 4,342
  • 14
  • 36
  • 57
2
votes
0 answers

WSL2 on Windows 10 - installed NVM, Node but can't install any package

I have WSL 2 on my Windows 10 (* Ubuntu-20.04 Running 2). I installed nvm and node on it. nvm --version: 0.35.3 nvm ls: -> v14.11.0 default -> node (-> v14.11.0) node -> stable (-> v14.11.0) (default) stable -> 14.11 (-> v14.11.0)…
AlexB
  • 121
  • 4
1
vote
1 answer

Babel 6.26.3 keeps getting installed instead of version 7.7

I'm setting up a new server (Ubuntu 18.10), and I can't seem to get the latest Babel installed. I'm doing: apt-get -y install npm sudo npm install -g babel-cli npm install --save-dev @babel/core Yet when I look at the version it tells me I'm only…
Andrew Newby
  • 1,102
  • 2
  • 25
  • 58
1
vote
1 answer

How to install Node.js and NPM on Unix server so that no users require sudo to install or read global packages?

Is this really such an uncommon situation that I can't find answers anywhere? Anyway. I have a Ubuntu VM server on DigitalOcean and I am running Jenkins on this server to do build, test and local deploy of a web app (essentially copy the web app…
Megakoresh
  • 111
  • 3
1
vote
1 answer

What does npm's error message The package grunt does not satisfy its siblings' peerDependencies … tell?

On an little outdated npm/node-platform I'm getting this error while trying to install grunt. npm ERR! peerinvalid The package grunt does not satisfy its siblings' peerDependencies requirements! npm ERR! peerinvalid Peer grunt-bake@0.2.1 wants…
frlan
  • 573
  • 1
  • 8
  • 27
1
vote
1 answer

How do I get the SSH key of my EB instance so that I can give it deployment access in BitBucket?

I am building a node.js app that is hosted by AWS Elastic Beanstalk. One of the dependencies is hosted on BitBucket. I have specified the Git SSH url in the package.json file and everything works on my development machine. BitBucket requires that…
sdgfsdh
  • 109
  • 3
1
vote
1 answer

Making war inside Docker stuck on NPM

Using Docker to make war file to attach to Apache Tomcat. Struggling to use NPM/MVN to get Tomcat war up. I'm behind a corporate proxy and the make scripts don't have "bower install --allow-root" (Realized upon looking up). As we all know, Docker…
user192756
1
vote
2 answers

unable to install npm on the AWS RHEL7 AMI because of c-ares-devel dependency

I've added the EPEL repository and attempted to install npm (since it is not included in the standard repos), but get the following error: Error: Package: nodejs-devel-0.10.33-1.el7.x86_64 (epel) Requires: c-ares-devel(x86-64) No package…