Let's say I have 2 projects:
example1: requires node version 0.12.1 example2: requires node version 0.10 Currently, when I cd into each project, I use nvm use <version> before running the application.
Is there a way with node or nvm, to automatically switch to the needed version of node when I cd into each project?
node-version at the root of your projects specifying the node version required. After installing avn, when you cd into a directory with a . node-version file, avn will automatically detect the change and use your installed version manager to switch to that version of node.
How do I downgrade to a lower version of node? For Windows and nvm , the command is: nvm install . After installation, run nvm use to switch to the downgraded version of Node.
Install Automatic Node Version Switching (avn) and add .node-version file that specifies the version you'd like to use with project. It automatically detects and uses it via installed version manager such as nvm and n.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With