Skip to content

Warning message when deploying because of dependency on serverless #368

Closed
@saadtazi

Description

@saadtazi

This is a minor annoyance

Description

With serverless installed globally, I updated it using serverless i -g serverless to 1.82.0, I now get the following message on a project (with multiple serverless.wml files) using sls deploy --stage prod for example (first output of the command):

Serverless: Deprecation warning: Local installation of Serverless detected. Starting with next major version, CLI will run it instead of globally installed version.
            Set "enableLocalInstallationFallback" to "true" to switch to new behavior now, set to "false" to keep current behavior and hide this message
            More Info: https://www.serverless.com/framework/docs/deprecations/#LOCAL_INSTALLATION_FALLBACK

Once I remove this package and install a serverless.yml that doesn't need this plugin, No warning message.

Nothing is broken, just a little bit annoying...

Maybe:

  • remove the hard dependency on serverless package here, if possible and maybe switch it to a peerDependency (if that's still a thing...)
  • is there a dependency on a specific version of version that would prevent from removing the dependency from package.json?

Similar or dependent issues:

  • didn't find any

Additional Data

  • Serverless Framework Core Version you're using: 1.82.0
  • The Plugin Version you're using: 2.17.2
  • Operating System: macOS
  • Stack Trace: n/a
  • Provider Error messages: n/a

Thank you!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions