Serverless-offline: Does serverless-offline work with serverless v2?

Created on 7 Oct 2020  路  1Comment  路  Source: dherault/serverless-offline

I am getting an error when I run sls offline, and I can't find any documentation online.

error:

Serverless: Offline requires Serverless v1.x.x but found 2.4.0. Exiting.

>All comments

The good thing is that If you have the Serverless Framework CLI installed locally within your Service (i.e. project) folder, that version of the Framework will be run, instead of a globally installed version.

Therefore I installed Serverless V1 locally: npm install [email protected] --save-dev

and now serverless-offline works

Was this page helpful?
0 / 5 - 0 ratings

Related issues

jormaechea picture jormaechea  路  4Comments

Ali-Dalal picture Ali-Dalal  路  4Comments

ozbillwang picture ozbillwang  路  4Comments

stunningpixels picture stunningpixels  路  3Comments

conradoramalho picture conradoramalho  路  3Comments