Questions tagged [npm]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1
vote
1answer
62 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 ...
1
vote
2answers
53 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), ...
1
vote
1answer
63 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 ...
12
votes
2answers
12k 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. ...
4
votes
1answer
498 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 ... ...