Skip to content

Commit

Permalink
[Tests] ensure node can be found by npm
Browse files Browse the repository at this point in the history
  • Loading branch information
ljharb committed Nov 23, 2024
1 parent 3841182 commit cb49d3b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit cb49d3b

Please sign in to comment.