-
-
Notifications
You must be signed in to change notification settings - Fork 203
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
ERROR: phantomjs binary does not exist #2
Comments
With the Internet connected, please open the markdown file with vscode. |
I found same issue in my environment. I got following error:
but phantomjs pre-built binary is installed in:
Please check again. |
Thank you for your report. The following file is not a binary file.
Is there the following phantomjs binary file?
|
If phantomjs is found in lib or on PATH, it will not be re-copied to dir |
With the Internet connected, please open the markdown file with vscode. -- |
Having the same problem, got it working by symlinking the phantomjs binary: mkdir -p ~/.vscode/extensions/yzane.markdown-pdf-0.1.4/node_modules/phantomjs-prebuilt/lib/phantom/bin
ln -s ~/.vscode/extensions/yzane.markdown-pdf-0.1.4/node_modules/phantomjs-prebuilt/bin/phantomjs ~/.vscode/extensions/yzane.markdown-pdf-0.1.4/node_modules/phantomjs-prebuilt/lib/phantom/bin/ |
I also had the same problem. Downloading the latest phantomjs and pasting the exe under |
For macOS 10.12 (brew was installed): brew install phantomjs
cd ~/.vscode/extensions/yzane.markdown-pdf-0.1.4/node_modules/phantomjs-prebuilt
mkdir lib/phantom/bin
ln -s /usr/local/bin/phantomjs lib/phantom/bin/phantomjs |
Thanks for report. |
Released 0.1.5 with this fix. |
Still getting the same error after uninstall/install: |
@eminsenay Thanks for info. With this fix, if phantomjs is found in PATH it will be used. |
I got a same error after install when I used "Convert Markdown to PDF". but when I install Node.js and reload this ext. This error is fixed. Another method to resolve this error(just windows):
|
Same problem for me as well
What's weird is the file does exist at that location though. After doing the steps above of manually downloading and overwriting that file, then it works as expected. |
Same problem for me as well. @Amroll solution works for me. Like @deadlydog the file already existed at the appropriate location. |
Since the size limit of the extensions increased from 20 MB to 100 MB, we included phantomjs.exe for Windows in Markdown-PDF 0.1.7. |
I got a same error after install when I used "Convert Markdown to PDF". Error message is I can found this exe file under the right path, but the default permissions of OS: OS X EI Caption |
I met the same issue as @marsdotpset , |
Same issue on MacOSX. The pre-build phantomjs.exe executable is a Windows binary. Not usable by OSX or Linux. |
Simplest workaround for OSX users, at least, is to install Node.js (https://nodejs.org/en/), then go into the extensions directory and rebuild phantomjs:
|
For Mac
For Ubuntu
then restart vscode, problem solved |
@malk271's rebuilding phantomjs suggestion worked for me on high sierra. |
Markdown PDF ver1.0.0 replaced PDF converter with puppeteer instead of node-html-pdf. |
Trying to generate a pdf, and keep getting this error:
ERROR: phantomjs binary does not exist: C:\Users\user_name\.vscode\extensions\yzane.markdown-pdf-0.1.4\node_modules\phantomjs-pre
I have tried running the command several times, but still keep getting this error.
I can't actually open the .pdf it generates. Please excuse me if its a trivial problem - I am new to using VSC. I also installed Auto-open Markdown packages.
Thanks in advance.
The text was updated successfully, but these errors were encountered: