nvm icon indicating copy to clipboard operation
nvm copied to clipboard

Feature Request: nvm binary

Open svarlitskiy opened this issue 1 year ago • 4 comments

Feature Request: nvm binary

  1. Allow install script to install to global directory /usr/share/nvm
  2. Create a shell script that runs the nvm command like an executable /usr/bin/nvm
#!/bin/bash

export NVM_DIR="/usr/share/nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"  # This loads nvm
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion"  # This loads nvm bash_completion

nvm $@

svarlitskiy avatar Dec 29 '23 10:12 svarlitskiy

Like

ksh5a avatar Dec 29 '23 12:12 ksh5a

nvm is per-user, so it should never be installed globally. We already have nvm-exec that can be run as a binary, as well.

ljharb avatar Dec 29 '23 16:12 ljharb

i build docker images, but cannt use it in jenkins docker pipline. so binary is importent to me.

srk24 avatar Feb 06 '24 03:02 srk24