This utility image will help us execute npm commands without installing node in our machine.
168
This docker utility container will help us execute npm commands without installing node in our machine. I've used node 20.10-alpine version in this project.
You can run any command begining with npm (leave npm and add remaining at the end of following command)
docker run -it --rm --name node-util -v "D:\AR_extra\rnd\docker\node-util:/app" actionanand/node-util
D:\AR_extra\rnd\docker\node-util is the current working location in host machine
For wsl2, mac and linux - use the below one
docker run -it --rm --name node-util -v $(pwd):/app actionanand/node-util
To run npm init command
docker run -it --rm --name node-util -v $(pwd):/app actionanand/node-util init
To run npm install express
docker run -it --rm --name node-util -v $(pwd):/app actionanand/node-util install express
Content type
Image
Digest
sha256:e9f9c02df…
Size
45.6 MB
Last updated
over 2 years ago
docker pull actionanand/node-util