LoginSignup
1
1

More than 5 years have passed since last update.

Laravel Mix の deploy タスクが Heroku でコケまくるのでTips

Posted at

npm run productionが通らない

1 --progress オプションは切る

Heroku のビルド時に npm run productionするとコケる。

中に入って npm run production しても普通に実行できるのに…

エラーログには以下のような記録が

couldn't write 83961 items to stdout: Resource temporarily unavailable

こういうときには、 --progressオプションを外すと良い。

i had the same issue, try to remove the --progress flag from webpack command, its worked for me.
looks like heroku stop and failed the build if its prints too many logs.

とのこと。

2 node-sass は rebuild する。

Error: ENOENT: no such file or directory, scandir '**/node_modules/node-sass/vendor'

のエラーで詰む。

node node_modules/node-sass/scripts/install.js
npm rebuild node-sass

こちらの2つを実行すればOK

1
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
1