Closed JarrenBack closed 4 months ago
I found a resolution. I was on serverless version 3.39.0 which forces node 23, but when I went back to version 3.26.0, I was able to use node 20
@JarrenBack I think we should re-open this as it is currently breaking with Node version higher then 20.18.3. When using 20.19 this breaks but after downgrading to 20.18.3 it will builds.
@JarrenBack I think we should re-open this as it is currently breaking with Node version higher then 20.18.3. When using 20.19 this breaks but after downgrading to 20.18.3 it will builds.
Experiencing the same thing. Is the move to downgrade with the runtime arn?
Issue description
I'm getting the following error[1] when trying to run
serverless deploy
. This error message lists node 23.3.0 as the node environment, but when I runnode -v
, it gives v20.18.1. I'm not sure why serverless is using node 23.3.0. I've checked my .bash_profile and .zshrc files, but they do not contain a reference to node 23. I've tried running commands like brew link/unlink and nvm use 20, but no luck[1]
Context
In serverless.yml, we have a runtime of nodejs20.x provider: name: aws runtime: nodejs20.x