Questions tagged [npm]

65 questions
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
  • 311
  • 3
  • 4
  • 14
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
  • 17
  • 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
  • 356
  • 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

Library Error while installing NPM on Ubuntu 22.04 LTS

I'm trying to install NPM on Ubuntu 22.04 LTS; How can I fix this problem? Step 1: user@ubuntu:~$ sudo apt-get update Hit:1 http://archive.ubuntu.com/ubuntu jammy InRelease Reading package lists...…
Andre
  • 1,333
  • 4
  • 18
  • 31
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)…
alvipeo
  • 121
  • 3
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,041
  • 1
  • 22
  • 48
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
  • 563
  • 5
  • 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…
1
vote
0 answers

Etherpad-Lite - Something bad happened

I installed etherpad-lite on Debian 7 - I also configured NPM and Node.js, but if I try to open etherpad, I'm getting this error: { "error": "Sorry, something bad happened!" } On the console I'm getting:…
MyFault
  • 893
  • 3
  • 14
  • 35
1
vote
1 answer

Cant use npm as provider with puppet

I am attempting to do the following in puppet: package { 'bower': ensure => present, provider => 'npm', require => Class['nodejs'], before => [ Exec['npm_install'], Exec['grunt_build'] ], } This gives me the error: err: Failed…
spetz
  • 90
  • 1
  • 7