-
-
Notifications
You must be signed in to change notification settings - Fork 8.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
'nvm is not compatible with the npm config "prefix" option' message in every shell #1224
Comments
What does |
I set my I just tried reinstalling without specifying It actually looks like the problem occurs if |
yes, that's absolutely correct - if it's a relative path then nvm would work or not based on your current directory. |
It only shows up on one machine, where I have /home symlinked to a different mount point. nvm-sh/nvm#855 nvm-sh/nvm#1087 nvm-sh/nvm#1224 nvm-sh/nvm#1245 http://stackoverflow.com/questions/34718528/nvm-is-not-compatible-with-the-npm-config-prefix-option
It only shows up on one machine, where I have /home symlinked to a different mount point. nvm-sh/nvm#855 nvm-sh/nvm#1087 nvm-sh/nvm#1224 nvm-sh/nvm#1245 http://stackoverflow.com/questions/34718528/nvm-is-not-compatible-with-the-npm-config-prefix-option
It only shows up on one machine, where I have /home symlinked to a different mount point. nvm-sh/nvm#855 nvm-sh/nvm#1087 nvm-sh/nvm#1224 nvm-sh/nvm#1245 http://stackoverflow.com/questions/34718528/nvm-is-not-compatible-with-the-npm-config-prefix-option
Every time I open a shell (I have
default
aliased tonode
), the following message is printed:I don't understand why this appears, as I don't have node installed globally and doing
sudo find / -name '*npmrc*'
doesn't return anything except the man pages for npm.After doing
nvm use --delete-prefix v4.5.0 --silent
,npm config ls -l | grep prefix
printsprefix = "/home/josh/.local/share/nvm/versions/node/v4.5.0"
, so maybe it's something to do with that?I installed nvm with
curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.31.7/install.sh | NVM_DIR=.local/share/nvm bash
, then rannvm install --lts
andnvm alias default node
.The text was updated successfully, but these errors were encountered: