plugins icon indicating copy to clipboard operation
plugins copied to clipboard

npm install fails when using serverless 4.1.20 with serverless-lift 1.29.0

Open anton-chertov opened this issue 1 year ago • 0 comments

I have the following dev dependencies:

  "devDependencies": {
    "serverless": "^4.1.20",
    "serverless-lift": "^1.29.0"
  },

and npm install fails with the following error:

/Users/.../.nvm/versions/node/v20.11.0/bin/npm install
npm error code ERESOLVE
npm error ERESOLVE unable to resolve dependency tree
npm error
npm error While resolving: ...
npm error Found: [email protected]
npm error node_modules/serverless
npm error   dev serverless@"^4.1.20" from the root project
npm error
npm error Could not resolve dependency:
npm error peer serverless@"^2.36.0 || ^3" from [email protected]
npm error node_modules/serverless-lift
npm error   dev serverless-lift@"^1.29.0" from the root project
npm error
npm error Fix the upstream dependency conflict, or retry
npm error this command with --force or --legacy-peer-deps
npm error to accept an incorrect (and potentially broken) dependency resolution.
npm error
npm error
npm error For a full report see:
npm error /Users/.../.npm/_logs/2024-08-09T02_22_52_743Z-eresolve-report.txt
npm error A complete log of this run can be found in: /Users/.../.npm/_logs/2024-08-09T02_22_52_743Z-debug-0.log

anton-chertov avatar Aug 09 '24 02:08 anton-chertov