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

MEGApixel23 picture MEGApixel23  路  4Comments

conradoramalho picture conradoramalho  路  3Comments

Rafaelsk picture Rafaelsk  路  4Comments

FranzSkuffka picture FranzSkuffka  路  3Comments

dnalborczyk picture dnalborczyk  路  3Comments