How to make one project use one Node version while running another project on another Node version at the same time? #922
-
Hi I have 2 projects that need to run at the same time, one on Node v16.18.1 and another on v14.2.0. I have followed How can I use two different versions of Node.js at the same time? and it's working fine for checking Thanks |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
Update You should be able to run it the same way you'd display the version. Assuming a {
"name": "tmp",
"version": "1.0.0",
"description": "",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
"dev": "echo \"running script from package.json...\""
},
"author": "",
"license": "ISC",
"dependencies": {
"porthog": "^1.0.1"
}
} To execute the |
Beta Was this translation helpful? Give feedback.
Update
I've updated the examples in the How can I use two different versions of Node.js at the same time?.
You should be able to run it the same way you'd display the version.
Assuming a
package.json
file like this:To execute the
dev
script, run a command like this: