Questions tagged [npm]

Use this tag if a question is about npm

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

define an ENV in Dockerfile not working

I wrote a Docker file as below. However I define a system variable (which is necessary for NPM build) in many formats and multi where in that file, after creating image and running container I need to ...
Seyed Amir Mousavian's user avatar
0 votes
0 answers
55 views

cache artifacts indefinitely in nexus repo

Due to some restrictions, I want to cache artifacts indefinitely in my proxied nexus repo (of types maven and npm). I tried to set Maximum Component Age to -1, but it had no effect. I also changed run ...
user36344's user avatar
1 vote
0 answers
68 views

`npm audit` is not returning any vulnerabilities, however dependabot is

In order to force devs to update vulnerabilities more often we wanted to add npm audit to a pre-push hook. We thought this would cut down on the number of dependabot alerts too. However, while ...
JJ3's user avatar
  • 11
0 votes
0 answers
425 views

docker - react - npm install' returned a non-zero code: 1

I'm starting studies with docker. I'm trying to upload a react container. when the image is being created it shows an error in the NPM INSTALL step: npm ERR! code FETCH_ERROR npm ERR! errno ...
Thiago Felipe da Silva's user avatar
1 vote
1 answer
568 views

How to upload a file as user input in Github Actions workflow?

I would like to upload .env file to a build in Github Actions. Is there any way I can do it?
Nitesh B.'s user avatar
  • 111
0 votes
0 answers
202 views

How to use Ansible to create a Nexus npm repo

I need to use Ansible to create an npm repo in our Nexus server. I've been looking through the Nexus REST API documentation and figured that I would use the uri module to issue the relevant command(s) ...
Rob Wells's user avatar
  • 123
0 votes
1 answer
450 views

RUN fails while installing Angular on Ubuntu Image

I am trying to create an image for my angular application for running unit and e2e tests. I started from the ubuntu image and then installed the other components. My dockerfile has the following ...
sridhar pandurangiah's user avatar
13 votes
2 answers
3k views

Does `npm audit` add any value when using `dependabot`

Context There are multiple ways to scan projects for vulnerabilities. Dependabot can be configured to check repositories for issues, and automatically submits pull requests to resolve. NPM Audit will ...
JohnLBevan's user avatar
0 votes
1 answer
80 views

Best practise/standard practise for semantic versioning in development

I have a project that looks like this: SOME_MONOREPO, managed by lerna - package-a - package-b - depends on package-a, package-c - package-c - is currently private, so ...
dwjohnston's user avatar
3 votes
1 answer
359 views

When to "npm publish" when using git flow

I'm using the following resources as a guide to git flow: git-flow cheatsheet git-flow Using git-flow to automate your git branching workflow However, none of them explicitly mention at what point ...
Plastikfan's user avatar
2 votes
1 answer
7k views

Issue installing NPM packages on Jenkins

I have a Jenkins build I am using for a Vue.js application. I am trying to install all dependancies as part of the pipeline and am running into some issues. I've included the below output as well as ...
joshk132's user avatar
  • 465
3 votes
1 answer
15k views

npm not found but installed from the shell script file in Dockerfile

I have a following Dockerfile: FROM ubuntu:18.04 RUN mkdir app && cd app WORKDIR app/ RUN apt-get update && apt-get install -y \ software-properties-common \ curl \ sudo ...
Leon Ma's user avatar
  • 33
1 vote
2 answers
291 views

How to deploy a ZIP or WAR equivalent (built locally via npm)?

I use NPM to build my web project, and it does so nicely to a little ZIP file. Keeps everything nice and light, and I can easily keep bloat down. My current process is to use an FTP client (Win SCP), ...
shanehoban's user avatar
1 vote
1 answer
147 views

How can container user and host user both have access to same files in volume?

I'm using Docker namespaces in an effort to allow files created within a volume to be arbitrarily read and written to by both the container user and the host user (please let me know if this is even a ...
aryzing's user avatar
  • 131
14 votes
2 answers
27k views

How to enable the npm cache in a Jenkins build slave that runs in docker?

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. ...
Brian Ogden's user avatar
5 votes
1 answer
1k views

Force script to fail if "npm install" has network issues

With the current Github outage, I noticed a problem with my packer setup. In a nutshell, I have a packer setup where I call a shell script that looks like this: #!/bin/bash set -e ... npm install ... ...
Philipp Claßen's user avatar