proxychains-ng icon indicating copy to clipboard operation
proxychains-ng copied to clipboard

proxychains4 not work when using with nvm

Open panezhang opened this issue 9 years ago • 6 comments
trafficstars

proxychains4 nvm ls-remote

[proxychains] config file found: /etc/proxychains.conf
[proxychains] preloading /usr/local/lib/libproxychains4.dylib
proxychains can't load process....: No such file or directory

could anyone help?

panezhang avatar Apr 08 '16 05:04 panezhang

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

rofl0r avatar Apr 08 '16 10:04 rofl0r

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

iapolog2u avatar Oct 02 '16 07:10 iapolog2u

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.

NemoAlex avatar Jan 03 '18 02:01 NemoAlex

your nvm.sh calls itself ? or what's inside "$NVM_DIR/nvm.sh" ?

rofl0r avatar Jan 03 '18 03:01 rofl0r

@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

NemoAlex avatar Jan 03 '18 03:01 NemoAlex

ok, thanks for clarification

rofl0r avatar Jan 03 '18 03:01 rofl0r