Hi All, Is there a way to use multiple versions of...
# suitecommerce
g
Hi All, Is there a way to use multiple versions of Node without the use of Nodist? Looking to upgrade our SCA website to 2023.1.1 in our sandbox, but still make necessary changes to production for our existing version of SCA 2022.12. Thanks
s
Use nvm?
g
Ive seen a few people mention that on the internet. Have you used it yourself?
s
Yup. It does the job
g
ok thanks - will give it a go
e
Nvm is the way to go!
c
nvm use xx.xx
is the solution. In your base solution add a
.nvmrc
file with the version #. The file literally only contains the version number, ex:
12.21.0
.
Then you can just type
nvm use
and it'll detect the version and automatically use it.