Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issues with installing #151

Closed
Laura7089 opened this issue Oct 31, 2018 · 8 comments
Closed

Issues with installing #151

Laura7089 opened this issue Oct 31, 2018 · 8 comments

Comments

@Laura7089
Copy link

Laura7089 commented Oct 31, 2018

I just get the following when I try to install it

[edward in ~] $: sudo npm install -g markdown-pdf
/usr/bin/markdown-pdf -> /usr/lib/node_modules/markdown-pdf/bin/markdown-pdf

> phantomjs-prebuilt@2.1.16 install /usr/lib/node_modules/markdown-pdf/node_modules/phantomjs-prebuilt
> node install.js

PhantomJS not found on PATH
Download already available at /tmp/phantomjs/phantomjs-2.1.1-linux-x86_64.tar.bz2
Verified checksum of previously downloaded file
Extracting tar contents (via spawned process)
Removing /usr/lib/node_modules/markdown-pdf/node_modules/phantomjs-prebuilt/lib/phantom
Copying extracted folder /tmp/phantomjs/phantomjs-2.1.1-linux-x86_64.tar.bz2-extract-1541017488065/phantomjs-2.1.1-linux-x86_64 -> /usr/lib/node_modules/markdown-pdf/node_modules/phantomjs-prebuilt/lib/phantom
chmod failed: phantomjs was not successfully copied to /usr/lib/node_modules/markdown-pdf/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/2018-10-31T20_24_50_220Z-debug.log
g /usr/lib/node_modules/markdown-pdf/node_modules/phantomjs-prebuilt/lib/phantom

2018-10-31T20_27_56_571Z-debug.log

@nukeop
Copy link

nukeop commented Dec 3, 2018

Getting the same error here

@neooblaster
Copy link

neooblaster commented Dec 4, 2018

Hi @Edward70891, @nukeop

Did you try again to install markdown-pdf after cleaning files ? I have already get similar error.
I completly clean files for the Node application that I'm trying to install (here markdown-pdf)

Delete Markdown-pdf Files (Winows Paths) :
For Linux, I think path are same in ~ (or $HOME)

  • File : %APPDATA%\npm\markdown-pdf
  • File : %APPDATA%\npm\markdown-pdf.cmd
  • Folder %APPDATA%\npm\node_modules\markdown-pdf\.

Maybe an issue was occurs during installation producing your error.

Best Regards,
Nicolas DUPRE.

@Laura7089
Copy link
Author

Laura7089 commented Dec 4, 2018 via email

@neooblaster
Copy link

neooblaster commented Dec 4, 2018

Hi @Edward70891,

Can you try with this following thread : https://stackoverflow.com/questions/5926672/where-does-npm-install-packages.
I think the right path is /usr/local/lib/node_modules.

Nicolas

@nukeop
Copy link

nukeop commented Dec 5, 2018

Cleaning files did not help. I just cloned the repo and ran this locally, in this case it did work.

@shwinshaker
Copy link

npm install -g markdown-pdf --ignore-scripts seems to temporarily solve the problem.

@Laura7089
Copy link
Author

Laura7089 commented Feb 6, 2019 via email

alanshaw added a commit that referenced this issue Feb 15, 2019
@dlagg
Copy link

dlagg commented Jan 26, 2020

npm install -g markdown-pdf --ignore-scripts seems to temporarily solve the problem.

Same problem and this don't work for me

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants