When I try to install asciicast2gif locally (though a convoluted way to build a system package), the following occurs:
~ > asciicast2gif https://asciinema.org/a/118274.json demo.gif (workstation|✔)
==> Loading https://asciinema.org/a/118274.json...
==> Spawning PhantomJS renderer...
/usr/lib/node_modules/asciicast2gif/main.js:696
return new Zo(a,Qe)}function ap(a){try{var b=a[0];return b.h?b.h(a):b.call(null,a)}catch(c){if(c instanceof Object)throw b=c,Uo(a[6]),b;throw c;}}function bp(a,b,c){c=Vo(c,$o(function(c){a[2]=c;a[1]=b;return ap(a)}));return r(c)?(a[2]=Ob(c),a[1]=b,bj):null}function cp(a,b){a=a[6];null!=b&&a.Dc(null,b,$o(function(){return function(){return null}}(a)));Uo(a);return a}
^
TypeError [ERR_INVALID_ARG_TYPE]: The "file" argument must be of type string. Received type object
at normalizeSpawnArguments (child_process.js:397:11)
at spawn (child_process.js:522:38)
at Function.exports.exec (/usr/lib/node_modules/asciicast2gif/node_modules/phantomjs-prebuilt/lib/phantomjs.js:72:10)
at Le (/usr/lib/node_modules/asciicast2gif/main.js:262:219)
at Ke (/usr/lib/node_modules/asciicast2gif/main.js:261:410)
at Je (/usr/lib/node_modules/asciicast2gif/main.js:261:320)
at Ie (/usr/lib/node_modules/asciicast2gif/main.js:261:238)
at Me (/usr/lib/node_modules/asciicast2gif/main.js:266:230)
at tp (/usr/lib/node_modules/asciicast2gif/main.js:704:224)
at /usr/lib/node_modules/asciicast2gif/main.js:710:373
When I tried building PhantomJS locally, the build failed.
https://github.com/ariya/phantomjs/issues/15344
Perhaps one of these could be used instead: https://github.com/GoogleChrome/puppeteer https://github.com/joelgriffith/browserless
When I try to install asciicast2gif locally (though a convoluted way to build a system package), the following occurs:
When I tried building PhantomJS locally, the build failed.
It does work fine via Docker.