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
Ugh. Until this is patched, you might want to put a note in the README … I have no idea where my ~/.npmrc came from, but I've been complaining about being unable to update npm for ages. (At least now I know why.)
Activity
wilmoore commentedon Jan 12, 2015
I don't believe this is an
nvm
specific issue.ljharb commentedon Jan 12, 2015
I asked @SeeThruHead to file this - the problem as I see it is that
nvm
(correctly) doesn't respectnpm
'sprefix
option, butnpm
itself will.I'm not sure how to handle this, but at the least,
nvm
could print out a warning.nvm
should create etc/ directory for installations #634ljharb commentedon Mar 13, 2015
Noting from #427 that the env var
$NPM_CONFIG_PREFIX
also causes problems withnvm
.kriswill commentedon Mar 13, 2015
Maybe detect the nvm config setting upon installation and issue a stern warning?
ljharb commentedon Mar 13, 2015
I'm considering making
nvm
refuse any operation whatsoever when problematic settings are set.kriswill commentedon Mar 13, 2015
sure, just do a
npm config get prefix
and if it doesn't contain/.nvm/
then bail out.ljharb commentedon Mar 16, 2015
Also
$PREFIX
, apparently, thanks to #692.ELLIOTTCABLE commentedon Apr 13, 2015
Ugh. Until this is patched, you might want to put a note in the README … I have no idea where my
~/.npmrc
came from, but I've been complaining about being unable to updatenpm
for ages. (At least now I know why.)26 remaining items