# Sls offline "Runtime nodejs12.x is not supported"

**URL:** <https://forum.serverless.com/t/sls-offline-runtime-nodejs12-x-is-not-supported/10250>\
**Category:** Serverless Framework\
**Created:** [January 14, 2020, 12:19pm UTC](https://forum.serverless.com/t/sls-offline-runtime-nodejs12-x-is-not-supported/10250 "2020-01-14T12:19:53Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ianmorris](https://avatars.discourse-cdn.com/v4/letter/i/47e85d/32.png) [@ianmorris](https://forum.serverless.com/u/ianmorris)\
**Post date:** [January 14, 2020, 12:19pm UTC](https://forum.serverless.com/t/sls-offline-runtime-nodejs12-x-is-not-supported/10250/1 "2020-01-14T12:19:53Z")

</div>

On Windows 10 I had nodejs 12 installed and Serverless Framework 1.61 and when I ran “sls offline” I got the error message “Runtime nodejs12.x is not supported”. I installed nodejs 10.15.2 but Serverless Framework is still giving me the error “Runtime nodejs12.x is not supported”  
 ![Annotation 2020-01-14 141615](https://canada1.discourse-cdn.com/flex036/uploads/serverless/original/2X/4/43623112d86f6aba76a8d84292ab173640ba94bd.png)

I uninstalled Serverless Framework and nodejs and re-installed both but stuck with this error. Any ideas on how to fix this

---

<div class="post-metadata">

**Author:** ![GimignanoF](https://avatars.discourse-cdn.com/v4/letter/g/4af34b/32.png) [@GimignanoF](https://forum.serverless.com/u/GimignanoF)\
**Post date:** [January 14, 2020, 2:52pm UTC](https://forum.serverless.com/t/sls-offline-runtime-nodejs12-x-is-not-supported/10250/2 "2020-01-14T14:52:41Z")

</div>

I use the serverless offline package with Node12 just fine. Make sure you have the updated version of that package, which currently is 5.12.1  
[https://www.npmjs.com/package/serverless-offline](https://www.npmjs.com/package/serverless-offline)

---

<div class="post-metadata">

**Author:** ![ianmorris](https://avatars.discourse-cdn.com/v4/letter/i/47e85d/32.png) [@ianmorris](https://forum.serverless.com/u/ianmorris)\
**Post date:** [January 15, 2020, 8:16am UTC](https://forum.serverless.com/t/sls-offline-runtime-nodejs12-x-is-not-supported/10250/3 "2020-01-15T08:16:35Z")

</div>

Thanks for the info as it indirectly led me to get it working.

As I installed Serverless Framework for the first time yesterday I assume all the packages should be the latest. Anyway I ran “npm install serverless-offline --save-dev” and still got the same error.

Then I opened serverless.yml to edit it like it says in the link you provided and I noticed in that .yml file that there was a line “runtime: nodejs12.x”. Its a new project that was created after node12 was removed and nodejs10 installed so I don’t know where Serverless Framework is picking up that 12 version. Anyway, I changed that line to “runtime: nodejs10.x” and sls offline works now.
