Skip to content

wgbartley/nnpm

main
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 

nnpm

Checks docker-compose.yml for the NodeJS version being used in a container and runs the NPM command inside a Docker container for the specified NodeJS version. This is useful if you have the NodeJS script/app in a local directory on the host but run it with a different version of NodeJS in the Docker container.

Installation

  1. Copy the script to /usr/local/bin: cp nnpm.sh /usr/local/bin/nnpm
  2. Make the script executable: chmod +x /usr/local/bin/nnpm

About

Run npm command for a different version of NodeJS being used in a Docker container

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages