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

Install fails on Windows #40

Closed
vlascik opened this issue Apr 12, 2016 · 5 comments
Closed

Install fails on Windows #40

vlascik opened this issue Apr 12, 2016 · 5 comments

Comments

@vlascik
Copy link

vlascik commented Apr 12, 2016

ember install ember-cli-fastboot fails because of ember-fastboot-server postInstall script on Windows

npm ERR! ember-fastboot-server@0.5.4 postinstall: `scripts/is-not-legacy-vm || npm install contextify@^0.1.11`
npm ERR! Exit status 1
`scripts/is-not-legacy-vm || npm install contextify@^0.1.11`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the ember-fastboot-server@0.5.4 postinstall script 'scripts/is-not-legacy-vm || npm install contextify@^0.1.11'.

scripts/is-not-legacy-vm won't run just by using #!/usr/bin/env node as first line of scripts/is-not-legacy-vm on Windows, so it tries to include contextify, which is not needed on recent node anyway, and requiring it is a kind of PITA because of prerequisites like specific version of Visual Studio installed. Changing postInstall to node scripts/is-not-legacy-vm || npm install contextify@^0.1.11 works on Windows, but perhaps something more universal would be a better idea.

bantic pushed a commit to bantic/ember-fastboot-server that referenced this issue Apr 28, 2016
@bmeurant
Copy link

bmeurant commented May 9, 2016

This is related to ember-fastboot/ember-cli-fastboot#176. Isn't it ?

0.6.2 did not yet bump ember-fastboot-server version and does not work. Awaiting the next release you can install the master version :

ember install https://github.com/ember-fastboot/ember-cli-fastboot.git

@tomdale
Copy link
Contributor

tomdale commented May 9, 2016

We're cutting the first beta today, which will include this fix. :)

@bmeurant
Copy link

bmeurant commented May 9, 2016

Nice ! Thx

@tomdale
Copy link
Contributor

tomdale commented May 16, 2016

This should be fixed now; let me know if it's not.

@tomdale tomdale closed this as completed May 16, 2016
@bmeurant
Copy link

It works well locally, thx !

But I have now issues deploying on heroku. Probably related to heroku/heroku-buildpack-emberjs#6 ?

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

3 participants