mirror of
https://github.com/nvm-sh/nvm.git
synced 2025-05-10 22:31:51 +00:00
Merge 8015788d27
into 3766bff734
This commit is contained in:
commit
460ed15211
8
nvm.sh
8
nvm.sh
@ -29,6 +29,10 @@ case "$uname" in
|
|||||||
*x86_64*) arch=x64 ;;
|
*x86_64*) arch=x64 ;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
|
# Use gmake when available to support FreeBSD
|
||||||
|
MAKE_BIN='make'
|
||||||
|
command -v gmake >/dev/null 2>&1 && MAKE_BIN='gmake'
|
||||||
|
|
||||||
# Expand a version using the version cache
|
# Expand a version using the version cache
|
||||||
nvm_version()
|
nvm_version()
|
||||||
{
|
{
|
||||||
@ -219,9 +223,9 @@ nvm()
|
|||||||
tar -xzf "node-$VERSION.tar.gz" && \
|
tar -xzf "node-$VERSION.tar.gz" && \
|
||||||
cd "node-$VERSION" && \
|
cd "node-$VERSION" && \
|
||||||
./configure --prefix="$NVM_DIR/$VERSION" $ADDITIONAL_PARAMETERS && \
|
./configure --prefix="$NVM_DIR/$VERSION" $ADDITIONAL_PARAMETERS && \
|
||||||
make && \
|
$MAKE_BIN && \
|
||||||
rm -f "$NVM_DIR/$VERSION" 2>/dev/null && \
|
rm -f "$NVM_DIR/$VERSION" 2>/dev/null && \
|
||||||
make install
|
$MAKE_BIN install
|
||||||
)
|
)
|
||||||
then
|
then
|
||||||
nvm use $VERSION
|
nvm use $VERSION
|
||||||
|
Loading…
Reference in New Issue
Block a user