Delete the package-lock.json file from your project.
Clear the build cache
First install the plugin:
heroku plugins:install heroku-builds
Then use the following command to clear the cache:
heroku builds:cache:purge -a example-app
The cache will be rebuilt on the next deploy. If you do not have any new code to deploy, you can push an empty commit.
Thanks.