mirror of
https://github.com/nvm-sh/nvm.git
synced 2025-05-11 14:51:49 +00:00
Merge 72bb240d5b
into 5c7996da5b
This commit is contained in:
commit
cf519589b5
2
bin/python
Executable file
2
bin/python
Executable file
@ -0,0 +1,2 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
/usr/bin/env python2 $*
|
3
nvm.sh
3
nvm.sh
@ -301,6 +301,9 @@ nvm() {
|
|||||||
elif [ "`curl -Is "http://nodejs.org/dist/node-$VERSION.tar.gz" | \grep '200 OK'`" != '' ]; then
|
elif [ "`curl -Is "http://nodejs.org/dist/node-$VERSION.tar.gz" | \grep '200 OK'`" != '' ]; then
|
||||||
tarball="http://nodejs.org/dist/node-$VERSION.tar.gz"
|
tarball="http://nodejs.org/dist/node-$VERSION.tar.gz"
|
||||||
fi
|
fi
|
||||||
|
# If python2 is available it should be used so that node compilation works on systems
|
||||||
|
# where python3 is the default python.
|
||||||
|
command -v python2 >/dev/null 2>&1 && export PATH=$NVM_DIR/bin:$PATH
|
||||||
if (
|
if (
|
||||||
[ ! -z $tarball ] && \
|
[ ! -z $tarball ] && \
|
||||||
mkdir -p "$tmpdir" && \
|
mkdir -p "$tmpdir" && \
|
||||||
|
Loading…
Reference in New Issue
Block a user