From cb49d3b1dd5251d456cfcf7d7632f89a1accae21 Mon Sep 17 00:00:00 2001 From: Jordan Harband Date: Sat, 23 Nov 2024 10:12:26 -1000 Subject: [PATCH] [Tests] ensure `node` can be found by npm --- ...'nvm uninstall' with incorrect file permissions fails nicely | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/slow/nvm uninstall/Running 'nvm uninstall' with incorrect file permissions fails nicely b/test/slow/nvm uninstall/Running 'nvm uninstall' with incorrect file permissions fails nicely index ad6a4b6bf0..815b2d62da 100755 --- a/test/slow/nvm uninstall/Running 'nvm uninstall' with incorrect file permissions fails nicely +++ b/test/slow/nvm uninstall/Running 'nvm uninstall' with incorrect file permissions fails nicely @@ -19,7 +19,7 @@ nvm ls | grep "$NVM_TEST_VERSION" || die "Failed to install node" # Install global module as root npm_path=$(which npm) -sudo -n "$npm_path" install jspm@'<2' -g || die 'either sudo failed, or `npm install jspm -g` failed`' +PATH="${PATH}" sudo -n "$npm_path" install jspm@'<2' -g || die 'either sudo failed, or `npm install jspm -g` failed`' # Switch to another version so we can uninstall nvm use 0.12.7