Skip to content
\n

Side note: when I install nodejs and npm outside of nvm it seems to work fine.

\n

My .zshrc file contains:

\n
export NVM_DIR=\"$HOME/.nvm\"\n[ -s \"$NVM_DIR/nvm.sh\" ] && \\. \"$NVM_DIR/nvm.sh\"  # This loads nvm\n[ -s \"$NVM_DIR/bash_completion\" ] && \\. \"$NVM_DIR/bash_completion\"  # This loads nvm bash_completion
","upvoteCount":1,"answerCount":3,"acceptedAnswer":{"@type":"Answer","text":"

Hmm oke, this is what I did to fix it.

\n

Adding this to .zshrc and .bashrc:

\n
source $HOME/.nvm/nvm.sh\n\nexport NVM_DIR=\"$HOME/.nvm\"\n[ -s \"$NVM_DIR/nvm.sh\" ] && \\. \"$NVM_DIR/nvm.sh\"  # This loads nvm\n[ -s \"$NVM_DIR/bash_completion\" ] && \\. \"$NVM_DIR/bash_completion\"  # This loads nvm bash_completion
","upvoteCount":1,"url":"https://github.com/deployphp/deployer/discussions/2742#discussioncomment-1622255"}}}
Discussion options

You must be logged in to vote

Hmm oke, this is what I did to fix it.

Adding this to .zshrc and .bashrc:

source $HOME/.nvm/nvm.sh

export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"  # This loads nvm
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion"  # This loads nvm bash_completion

Replies: 3 comments 2 replies

Comment options

You must be logged in to vote
1 reply
@klaasnicolaas
Comment options

Comment options

You must be logged in to vote
1 reply
@voutchko
Comment options

Answer selected by klaasnicolaas
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
4 participants