Push rejected, failed to compile Node.js app heroku

前端 未结 8 1039
面向向阳花
面向向阳花 2020-12-09 18:01

When I tried to push my nodejs app to heroku with git push heroku master, i got this:

Counting objects: 975, done.
Delta compression using up to         


        
8条回答
  •  不知归路
    2020-12-09 18:17

    Adding node_modules may be easy but not the correct approach here. Instead do git push -f heroku master in order to FORCE push your updates telling heroku to overwrite any pre-existing node_modules. This way your git repo is not bogged down with node libs.

提交回复
热议问题