$ npm install svg2png -g # Running as root since the Docker container is designed that way. sudo is not even installed
/root/.npm-global/bin/svg2png -> /root/.npm-global/lib/node_modules/svg2png/bin/svg2png-cli.js
> phantomjs-prebuilt@2.1.15 install /root/.npm-global/lib/node_modules/svg2png/node_modules/phantomjs-prebuilt
> node install.js
module.js:473
throw err;
^
Error: Cannot find module '/root/.npm-global/lib/node_modules/svg2png/node_modules/phantomjs-prebuilt/install.js'
at Function.Module._resolveFilename (module.js:527:15)
at Function.Module._load (module.js:453:25)
at Function.Module.runMain (module.js:665:10)
at startup (bootstrap_node.js:187:16)
at bootstrap_node.js:608:3
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! phantomjs-prebuilt@2.1.15 install: `node install.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the phantomjs-prebuilt@2.1.15 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/2017-10-13T16_16_26_722Z-debug.log
Yes, I'm aware that this is a very likely a general npm issue, but svg2png was all I was concerned about and the next searcher may be in a similar situation
Quick note for anyone coming across this later:
I was having a lot of issues getting
svg2png
to install (see Below), but all it took was switching to yarn:yarn global add svg2png
Below
Yes, I'm aware that this is a very likely a general npm issue, but svg2png was all I was concerned about and the next searcher may be in a similar situation