mirror of
https://github.com/nvm-sh/nvm.git
synced 2025-08-19 20:13:44 +00:00
Compare commits
4 Commits
300cca43c3
...
c6e08936a8
Author | SHA1 | Date | |
---|---|---|---|
![]() |
c6e08936a8 | ||
![]() |
d5e2c92a25 | ||
![]() |
81f18bc445 | ||
![]() |
e87ec0c013 |
@ -358,7 +358,7 @@ nvm_check_global_modules() {
|
|||||||
command printf %s\\n "$NPM_GLOBAL_MODULES"
|
command printf %s\\n "$NPM_GLOBAL_MODULES"
|
||||||
nvm_echo '=> If you wish to uninstall them at a later point (or re-install them under your'
|
nvm_echo '=> If you wish to uninstall them at a later point (or re-install them under your'
|
||||||
# shellcheck disable=SC2016
|
# shellcheck disable=SC2016
|
||||||
nvm_echo '=> `nvm` Nodes), you can remove them from the system Node as follows:'
|
nvm_echo '=> `nvm` node installs), you can remove them from the system Node as follows:'
|
||||||
nvm_echo
|
nvm_echo
|
||||||
nvm_echo ' $ nvm use system'
|
nvm_echo ' $ nvm use system'
|
||||||
nvm_echo ' $ npm uninstall -g a_module'
|
nvm_echo ' $ npm uninstall -g a_module'
|
||||||
|
2
nvm.sh
2
nvm.sh
@ -81,7 +81,7 @@ nvm_command_info() {
|
|||||||
nvm_has_colors() {
|
nvm_has_colors() {
|
||||||
local NVM_NUM_COLORS
|
local NVM_NUM_COLORS
|
||||||
if nvm_has tput; then
|
if nvm_has tput; then
|
||||||
NVM_NUM_COLORS="$(tput -T "${TERM:-vt100}" colors)"
|
NVM_NUM_COLORS="$(command tput -T "${TERM:-vt100}" colors)"
|
||||||
fi
|
fi
|
||||||
[ "${NVM_NUM_COLORS:--1}" -ge 8 ] && [ "${NVM_NO_COLORS-}" != '--no-colors' ]
|
[ "${NVM_NUM_COLORS:--1}" -ge 8 ] && [ "${NVM_NO_COLORS-}" != '--no-colors' ]
|
||||||
}
|
}
|
||||||
|
@ -25,8 +25,11 @@ nvm run $NVM_TEST_VERSION --version | grep $NVM_TEST_VERSION || "'nvm run $NVM_T
|
|||||||
# Remove the stuff we're clobbering.
|
# Remove the stuff we're clobbering.
|
||||||
[ -e ../../$NVM_TEST_VERSION ] && rm -R ../../$NVM_TEST_VERSION
|
[ -e ../../$NVM_TEST_VERSION ] && rm -R ../../$NVM_TEST_VERSION
|
||||||
|
|
||||||
# Install from source with 2 make jobs (and swapped arg order)
|
# Speed up test for non-CI environment which may have more CPU threads
|
||||||
nvm install -j 2 -s $NVM_TEST_VERSION || die "'nvm install -s $NVM_TEST_VERSION' failed"
|
[ -z "${CI-}"] && nvm_get_make_jobs
|
||||||
|
|
||||||
|
# Install from source with multiple make jobs (and swapped arg order)
|
||||||
|
nvm install -j ${NVM_MAKE_JOBS-:2} -s $NVM_TEST_VERSION || die "'nvm install -s $NVM_TEST_VERSION' failed"
|
||||||
|
|
||||||
# Check
|
# Check
|
||||||
[ -d ../../$NVM_TEST_VERSION ]
|
[ -d ../../$NVM_TEST_VERSION ]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user