Deploy stops at "Installing dependencies for custom CloudFormation resources"
Problem
I´m using this template https://github.com/msfidelis/serverless-architecture-boilerplate and the issue has only occured with this template so far. Creating new projects from scratch with the sls assistent and deploying works fine. When running sls deploy it processes these 3 steps and then stops [code block] Running deploy with --verbose --force does not change anything and there are literally no additional exceptions or log messages thrown which makes it very hard to find the source of this issue. Serverless v: 1.50.0 OS: Windows 10
Unverified for your environment
Select your OS to check compatibility.
1 Fix
Update Serverless Framework and Dependencies
The issue occurs due to a potential incompatibility between the Serverless Framework version 1.50.0 and the dependencies specified in the template. Older versions may not support certain features or have bugs that have been fixed in later releases. Additionally, the custom CloudFormation resources may rely on updated libraries that are not compatible with the older Serverless version.
Awaiting Verification
Be the first to verify this fix
- 1
Update Serverless Framework
Upgrade the Serverless Framework to the latest stable version to ensure compatibility with the template and its dependencies.
bashnpm install -g serverless - 2
Check Node.js Version
Ensure that your Node.js version is compatible with the latest Serverless Framework. Update Node.js if necessary.
bashnode -v - 3
Update Project Dependencies
Navigate to the project directory and update the dependencies specified in package.json to their latest versions. This can help resolve any conflicts with the Serverless Framework.
bashnpm update - 4
Clear NPM Cache
Sometimes, cached packages can cause issues. Clear the NPM cache to ensure that all packages are freshly installed.
bashnpm cache clean --force - 5
Retry Deployment
After completing the updates, attempt to deploy the project again using the Serverless command.
bashsls deploy
Validation
Confirm that the deployment completes successfully without stopping at the 'Installing dependencies for custom CloudFormation resources' step. Check the deployment logs for any errors or warnings.
Sign in to verify this fix
Environment
Submitted by
Alex Chen
2450 rep