I am trying to install a module nodejs
on an Amazon EC2 instance when I run ppm install markdown-pdf
I get the following error:
> [email protected] install /home/ubuntu/fermat-org/api-server/node_modules/markdown-pdf/node_modules/phantomjs
> node install.js
PhantomJS not found on PATH
Download already available at /home/ubuntu/tmp/phantomjs/phantomjs-1.9.8-linux-x86_64.tar.bz2
FATAL ERROR: CALL_AND_RETRY_2 Allocation failed - process out of memory
Aborted (core dumped)
npm WARN This failure might be due to the use of legacy binary "node"
npm WARN For further explanations, please read
/usr/share/doc/nodejs/README.Debian
npm ERR! weird error 134
npm ERR! not ok code 0
I have node v0.12.25
andnpm 1.3.10
I deleted the located file
/home/ubuntu/tmp/phantomjs/phantomjs-1.9.8-linux-x86_64.tar.bz2
, then installed the package againnpm install markdown-pdf
and it worked like a charm.Some time ago the Debian team decided
node
tonodejs
rename .Looking at this:
You can try to install it using the package manager: