-
-
✍️ Custom Output ✍️ Editors ✍️ Template Content
✍️ Chocolatey ✍️ Web Resources ✍️ Git Commands ✍️ Devlopment Links ✍️ Expose your local Backend ✍️ javascript -
✍️ Volta -
✍️ Keylayer Plate Thickness ✍️ Build Guides ✍️ Components ✍️ KiCad Examples ✍️ Keyboard Roadmap ✍️ splitkb ✍️ Index ✍️ Tools
| ✍️ | Roadmap |
Volta
published: 2025-03-21
Simply: allows more than one application with different requirements for versions of node to run together on the same machine at the same time
-
winget install Volta.Voltaor
choco install volta -y -
navigate to code that you need node installed on in terminal and run the following in that directory
volta install node@14.21.3where
14.21.3is the version of node needed in the 1st directory -
then navigate to code for the 2nd directory
volta install node@16.20.2where
16.20.2is the version of node needed in the 2nd directoryinstalling a version of node with Volta makes that version available to use in any other application on the machine
if using the same version again use the pin command instead
note: if VSCode was open during the above install, then it will need to be restarted for the commands below to work
-
The pin command adds a volta entry to package.json and means that whenever you open the workspace volta loads up the specified node (and appropriate npm)
run
volta pin node@16.20.2to use this version of node in that directoryby pining the version you save it in your
package.jsonfile which makes it available to install withnpm i -
running the application in the VS terminal starts the watch using the correct node version
Can have both projects watched with different versions at the same time
notes:
- Needed
npm clean-installbefore first run after getting the new node version. - NVM does not need to be uninstalled for volta to work