socket.io + node.js on heroku

前端 未结 6 1260
后悔当初
后悔当初 2021-01-03 06:55

I\'m having some issues in compiling a socket.io app on heroku.

Thats the app.js file

var app = require(\'express\').createServer()
   , io = require         


        
6条回答
  •  难免孤独
    2021-01-03 07:39

    Heroku is failing to build hiredis. The reason is that hiredis (the node.js module) depends on hiredis (the C library), which needs GNU make, which is not available on your slug.

    Question is, why is NPM trying to build hiredis while it's not in your dependencies ?

    You should check if hiredis appears anywhere in your project (grep -R hiredis .). Another possibility is that Heroku is trying to provide redis to all node.js apps ?

    I'd check with Heroku's support.

提交回复
热议问题