mirror of
https://github.com/nvm-sh/nvm.git
synced 2025-09-10 08:39:07 +00:00
tests: fail install_script test if npm can't install package
This commit is contained in:
@@ -27,7 +27,7 @@ setup () {
|
||||
setup
|
||||
|
||||
|
||||
npm install -g nop >/dev/null
|
||||
npm install -g nop >/dev/null || die 'nvm_check_global_modules cannot be tested because `npm` cannot install the `nop` package'
|
||||
message=$(nvm_check_global_modules)
|
||||
[ ! -z "$message" ] || {
|
||||
puts '-- `npm --version`: '"$(npm --version)"
|
||||
|
Reference in New Issue
Block a user