Tuesday, 2 May 2017

nodejs iconv invalid ELF header error

I'm checking on my local(mac terminal, with node web.js)

and I checked it is running on local server.

However, when I deploy it to the server, it keeps making error as

Error: /home/hosting_users//apps//node_modules/iconv/build/Release/iconv.node: invalid ELF header

In details,ERROR LOG

How can I make it running on the server?

have no idea please help.

This code is what I use Iconv in my code.

const Iconv = require('iconv').Iconv;

var iconv = new Iconv('euc-kr', 'utf-8//translit//ignore');

var option = {
    url: url,
    transform: function(body) {
        return cheerio.load(iconv.convert(body).toString());
    },
    encoding: null
};

Thanks,



via Chan Ung Chris Jeong

No comments:

Post a Comment