package.json start script, babel-node: not found on heroku deploy

后端 未结 3 644
没有蜡笔的小新
没有蜡笔的小新 2021-02-04 04:13

When I run heroku local or when I just do npm start locally, my app builds and runs fine. However when I deploy to heroku, the app crashes saying it ca

3条回答
  •  迷失自我
    2021-02-04 04:38

    I got the same issue, but I think set NPM_CONFIG_PRODUCTION=false to install devDependencies will be better. I used below command:

    heroku config:set NPM_CONFIG_PRODUCTION=false
    

提交回复
热议问题