-
-
Notifications
You must be signed in to change notification settings - Fork 8.9k
Default packages not installed correctly, nvm adds unnecessary arguements to npm install -g #2281
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
Comments
That |
Ohhh also, can you verify the contents of |
I've alias the $ which rm
rm: aliased to rm -iv $ nvm_npm_global_modules
fast-cli@2.3.0 npm-check-updates@7.0.4 serverless@1.78.1 ////
$ cat $NVM_DIR/default-packages
fast-cli
npm-check-updates |
ah - However, I'm having trouble reproducing this. Where are you creating that alias? (like, in which profile file) |
Hmm, that is unexpected - I've never run into an issue related to aliasing basic commands; however, unaliasing I use zsh, and my dotfiles are on github if you realy are having trouble reproducing. You can see my zsh config here: cbcoutinho/.dotfiles/config/zsh. The |
Ah, I was trying in bash. I assume I'll try to repro it in zsh, and if so, see what I can do about it in nvm. |
Operating system and version:
openSUSE Tumbleweed
nvm installed via homebrew (for linux)
NVM_DIR=
~/.nvm
$ cat $NVM_DIR/default-packages fast-cli npm-check-updates
nvm debug
output:nvm ls
output:How did you install
nvm
?Homebrew (for linux)
What steps did you perform?
Output from npm debug log:
What happened?
It looks like nvm tacks on some unnecessary arguments to the
npm install -g
command, causing problems...What did you expect to happen?
Default packages are installed globally in new environment
Is there anything in any of your profile files that modifies the
PATH
?Somewhere in my .zshrc is
export NVM_DIR=~/.nvm
The text was updated successfully, but these errors were encountered: