I have been using .nvmrc files to keep track of which Node version I am using in an app. The thing is, the VS Code Terminal does not pick-up on the file and switch the Node version automatically. As a result, I am often need to manually check the file and switch my node version via: nvm use v<Version>
.
This seemed like the perfect opportunity to look into remedying this scenario since it is annoying to run a command only to have it throw errors back at you for using the wrong Node or npm version. A Google search lead me to this piece.
I'll be honest, my eyes started glazing over halfway through. Over the years, my use and appreciation of the terminal has elevated dramatically. The challenge I have is, I still have trouble parsing commands liek this:
~/.nvm/nvm-exec which node | xargs -J % ln -sf % ./.nvm-node && chmod +x ./.nvm-node
This exposes the hole in my knowledge of terminal. Improving my knowledge and proficiency of terminal commands has been on my todo list, along with sharpening up my knowledge of Regular Expressions. Unfortunately, despite making improvements, these items tend to slip down my list of priorities in favour of shinier toys.
I need to do it though.