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
I'm trying to use nvm from another language, so when it calls bash, it doesn't execute .bashrc, and sessions are as long as only 1 command, so it doesn't save any enviromental variables, how hard is to execute nvm install in this situation?
The text was updated successfully, but these errors were encountered:
That it's an interactive shell only determines which profile files are sourced - you can choose to source nvm.sh in any shell, either manually or via the correct profile file.
If your sessions are only as long as one command, you'd probably do something like . /path/to/nvm.sh && nvm install node - but since nvm sets the $PATH so that you can use node, all your node/npm commands would have to run inside that same shell session.
I'm trying to use nvm from another language, so when it calls bash, it doesn't execute .bashrc, and sessions are as long as only 1 command, so it doesn't save any enviromental variables, how hard is to execute
nvm install
in this situation?The text was updated successfully, but these errors were encountered: