Is there a way to declare the local version of nod...
# sst
c
Is there a way to declare the local version of node SST should use when running live dev? After updating node to v17 I now see the error below in the console. I’ve installed node v16 as well and tried adding a
.nvmrc
file at the project root (e.g. with ‘16’) but it doesn’t seem to affect things.
t
Right now we just try to resolve
node
So whatever is in your systems PATH is found
You can trick sst by specifying a different PATH
But not too sure how else to do it
d
or just run
nvm use 16.x.x
before the sst command (which effectively does what @thdxr listed)
t
Ah cool
d
c
Thanks Derrick. Should
nvm
be installed at the project level?
d
i generally install it at the OS level, but you can read their docs
a
So we can’t use
.nvmrc
?
d
.nvmrc
powers
nvm
c
Great, thanks guys
d
so if you have that populated, you can just type
nvm use
a
Ok, yes, that’s what I want.
Because I want all developers to use the same version.
d
You can specify node and npm versions with volta. Much better than nvm.
t
why can't everyone switch to linux and use nix 🙂
a
because that’s too easy lol! 😂