Open panezhang opened 8 years ago
try to use the full path to nvm binary
example proxychains4 /bin/nvm ls-remote
since you're using an apple its likely in another location though
maybe which nvm
tells you the full path
If you have an https proxy, e.g., use polipo's port 8123 to proxy socks5's port 1080
You can do it like below
https_proxy=https://127.0.0.1:8123 nvm ls-remote
Hit the same issue. I created a bash script then run it with proxychains to solve the problem. nvm-script.sh:
export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"
nvm ls-remote
Run it:
proxychains4 bash nvm-script.sh
Edit: Rename the script to avoid misunderstand.
your nvm.sh calls itself ? or what's inside "$NVM_DIR/nvm.sh" ?
@rofl0r No it's not, just a coincidence their names are same. $NVM_DIR/nvm.sh is provided by nvm. See it here: https://github.com/creationix/nvm/blob/master/nvm.sh
ok, thanks for clarification
proxychains4 nvm ls-remote
could anyone help?