App platform - Node app - Changes to package.json not reflecting

I changed dependencies and engines on my package.json but changes are not reflecting when i try Deploy or Force Rebuild and Deploy.

Ho to fix it?

Submit an answer

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Accepted Answer

Figured out.

Dockerfile had node as latest version. Updated that to version i need and problem went away.


Responses to your points

  1. The build fails because nodejs engined doesnt get degraded per package.json dependency and automatically gets rollbacked to previous build.

  2. No change to branch. Same branch used as previously successful deploy

  3. Not pinned.

Raising ticket now.


Jon Friesen
DigitalOcean Employee
DigitalOcean Employee badge
December 16, 2022

👋 @ashishn

It sounds like you have made changes to your package.json file, but they are not reflecting when you try to deploy or rebuild and deploy.

Here are a few steps you can try to resolve this issue:

  1. Ensure that your build and deploy are succeeding. You can check the build and deployment logs for any errors that may be preventing your changes from being deployed.

  2. Check that the branch you submitted your changes to is the same as the branch set in the component settings. If they are different, your changes may not be reflected in the deployed version of your app.

  3. Make sure that your app is not pinned to a specific commit. If it is, your changes may not be reflected in the deployed version.

If you are still having issues after trying these steps, please submit a ticket to our support team for further assistance. They will be happy to help you troubleshoot the issue and get your changes deployed successfully.

Try DigitalOcean for free

Click below to sign up and get $200 of credit to try our products over 60 days!

Sign up

Featured on Community

Get our biweekly newsletter

Sign up for Infrastructure as a Newsletter.

Hollie's Hub for Good

Working on improving health and education, reducing inequality, and spurring economic growth? We'd like to help.

Become a contributor

Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.

Welcome to the developer cloud

DigitalOcean makes it simple to launch in the cloud and scale up as you grow — whether you're running one virtual machine or ten thousand.

Learn more
DigitalOcean Cloud Control Panel