From 565990847bf566ead16303d9dd810885b3592ff0 Mon Sep 17 00:00:00 2001 From: Jordan Harband Date: Mon, 16 Dec 2024 23:52:31 -0800 Subject: [PATCH] wip --- ...'nvm uninstall' with incorrect file permissions fails nicely | 2 ++ 1 file changed, 2 insertions(+) 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 815b2d62da..97a1dcdd29 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,6 +19,8 @@ nvm ls | grep "$NVM_TEST_VERSION" || die "Failed to install node" # Install global module as root npm_path=$(which npm) +nvm_err "${PATH}" +PATH="${PATH}" sudo -n echo "${PATH}" || die 'sudo echo 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