asciinema / asciicast2gif

Generate GIF animations from asciicasts (asciinema recordings)
MIT License
1.21k stars 82 forks source link

npm install asciicast2gif fails #62

Closed nishakm closed 2 years ago

nishakm commented 5 years ago

Env: Fedora 29

Error:


Copying extracted folder /tmp/phantomjs/phantomjs-2.1.1-linux-x86_64.tar.bz2-extract-1549045473113/phantomjs-2.1.1-linux-x86_64 -> /usr/lib/node_modules/asciicast2gif/node_modules/phantomjs-prebu
ilt/lib/phantom
chmod failed: phantomjs was not successfully copied to /usr/lib/node_modules/asciicast2gif/node_modules/phantomjs-prebuilt/lib/phantom/bin/phantomjs
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! phantomjs-prebuilt@2.1.16 install: `node install.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the phantomjs-prebuilt@2.1.16 install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /root/.npm/_logs/2019-02-01T18_24_36_249Z-debug.log
``
Error does not come up when installing without the --global flag but isn't available to the user of course.
jrab66 commented 5 years ago

This do the fix lml in F29 sudo npm install -g phantomjs@2.1.1 --unsafe-perm sudo npm install -g asciicast2gif --unsafe-perm

MarvinKlar commented 3 years ago

In my case I had to clear previous installation (there might be a better way, so use with caution): sudo rm /usr/bin/phantomjs

mathieu-aubin commented 3 years ago

In my case I had to clear previous installation (there might be a better way, so use with caution): sudo rm /usr/bin/phantomjs

Caution would be to cd into /usr/bin before making any kind of deletion, but yes, alright