Skip to content
This repository has been archived by the owner on Feb 4, 2020. It is now read-only.

Question: MJML couldn't build the propper version of PhantomJS #30

Closed
frankis opened this issue Jun 2, 2018 · 10 comments
Closed

Question: MJML couldn't build the propper version of PhantomJS #30

frankis opened this issue Jun 2, 2018 · 10 comments

Comments

@frankis
Copy link

frankis commented Jun 2, 2018

Just installed a new machine (macOS - 1.13.4) with vscode (1.23.1) with the mjml extension (1.3.0) which basically results in the following:

MJML couldn't build the propper version of PhantomJS. Restart VSCode in order to try it again.

Followed by:

MJML needs to be rebuilt for your current platform. Please wait for the installation to finish...

As its mentioned that there are no dependencies I wonder whats missing here?

@frankis frankis changed the title MJML couldn't build the propper version of PhantomJS Question: MJML couldn't build the propper version of PhantomJS Jun 2, 2018
@gil04
Copy link

gil04 commented Jun 7, 2018

Same problem here...

@attilabuti
Copy link
Owner

@frankis Could you please try the following?

npm install phantomjs-prebuilt
npm --strict-ssl false rebuild phantomjs-prebuilt

Let me know if this works for you. Thanks!

@gil04
Copy link

gil04 commented Jun 8, 2018

npm was not installed. After installing npm the error message is gone and the screenshots are working as expected. Thx!

@codyhazelwood
Copy link

I'm seeing the same issue here. I don't have a global node install though (using nvm). Normally installing the node modules manually at the VS Code workspace root works, but it doesn't here.

@attilabuti
Copy link
Owner

Thank you for reporting – I will fix it in the next update.

@attilabuti
Copy link
Owner

The issue is fixed on 1.4.0.

@ghost
Copy link

ghost commented Apr 5, 2019

no. its not.
v1.6.0: MJML couldn't build the proper version of PhantomJS. Restart VSCode in order to try it again.

@bertobox
Copy link

I’m experiencing the same issue.

My current setup is macOS Mojave 10.14.4, VSCode 1.35.1, mjml extension 1.6.0

@vcorvid
Copy link

vcorvid commented Jul 8, 2019

I am also experiencing this issue on Mac Mojave

@theCalibrius
Copy link

I was encountering this issue and it seemed related to:

-MacOS could not identify the developer of phantomJS and was not allowing it to be installed. The computer I'm on does not allow me to override this behavior of MacOS.

-PhantomJS is not allowed to be downloaded via npm on my computer due to the package having (supposed) known vulnerabilities, as identified by third-party security service proxy that we use.

I tried to use phantomjs-prebuilt to get around this restriction, and it worked.

I ran npm install phantomjs-prebuilt -g
It had some hiccups (trying to use version of phantomjs it discovered on my system but that failed)
but eventually it installed.

I restarted vscode and then tried running mjml commands in vscode and it gave me the "building mjml for your system" popup, but this time it worked just fine.

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

No branches or pull requests

7 participants