mirror of
https://github.com/nvm-sh/nvm.git
synced 2025-05-11 14:51:49 +00:00
Merge 8f7898e27d
into 676fff0219
This commit is contained in:
commit
ddb33c829b
2
nvm.sh
2
nvm.sh
@ -1926,7 +1926,7 @@ nvm_install_source() {
|
|||||||
command rm -f "${VERSION_PATH}" 2>/dev/null && \
|
command rm -f "${VERSION_PATH}" 2>/dev/null && \
|
||||||
$make -j "${NVM_MAKE_JOBS}" ${MAKE_CXX-} install
|
$make -j "${NVM_MAKE_JOBS}" ${MAKE_CXX-} install
|
||||||
); then
|
); then
|
||||||
if ! nvm_has "npm" ; then
|
if (nvm use "${VERSION}" && ! nvm_has "npm") ; then
|
||||||
nvm_echo 'Installing npm...'
|
nvm_echo 'Installing npm...'
|
||||||
if nvm_version_greater 0.2.0 "$VERSION"; then
|
if nvm_version_greater 0.2.0 "$VERSION"; then
|
||||||
nvm_err 'npm requires node v0.2.3 or higher'
|
nvm_err 'npm requires node v0.2.3 or higher'
|
||||||
|
Loading…
Reference in New Issue
Block a user