attilabuti / vscode-mjml

This repo is archived. MJML preview, lint, compile for Visual Studio Code.
https://marketplace.visualstudio.com/items?itemName=attilabuti.vscode-mjml
MIT License
144 stars 59 forks source link

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

Closed frankis closed 6 years ago

frankis commented 6 years ago

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?

gil04 commented 6 years ago

Same problem here...

attilabuti commented 6 years ago

@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 commented 6 years ago

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

codyhazelwood commented 6 years ago

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 commented 6 years ago

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

attilabuti commented 6 years ago

The issue is fixed on 1.4.0.

ghost commented 5 years ago

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

bertobox commented 5 years ago

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 commented 5 years ago

I am also experiencing this issue on Mac Mojave

theCalibrius commented 4 years ago

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.