You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When attempting to run this script on Ubuntu 19.04, I got the following error:
sudo: npx: command not found
This despite having the following:
$ node -v
v12.6.0
$ npm -v
6.10.1
$ npx -v
6.10.1
Solution
I realized that I had installed nvm using their official script. This just adds the nvm shell function into the user's profile (~/.bash_profile, ~/.zshrc, ~/.profile, or ~/.bashrc), which sudo won't have access to.
Given nvm's ubiquity and stance towards homebrew installations:
Homebrew installation is not supported. If you have issues with homebrew-installed nvm, please brew uninstall it, and install it using the instructions below, before filing an issue.
This issue might merit either inclusion into the script or a README mention.
The text was updated successfully, but these errors were encountered:
Issue
When attempting to run this script on Ubuntu 19.04, I got the following error:
sudo: npx: command not found
This despite having the following:
Solution
I realized that I had installed nvm using their official script. This just adds the
nvm
shell function into the user's profile (~/.bash_profile, ~/.zshrc, ~/.profile, or ~/.bashrc), whichsudo
won't have access to.My solution for the problem, adopted from this StackOverflow post, was to symbolically link my nvm binaries into
/usr/local/bin
like so:Goal
Given nvm's ubiquity and stance towards homebrew installations:
This issue might merit either inclusion into the script or a README mention.
The text was updated successfully, but these errors were encountered: