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

Installation fails when using yarn on FreeBSD Error: No binary for freebsd/x64 #8

Open
mirza-s opened this issue Jul 14, 2018 · 1 comment

Comments

@mirza-s
Copy link

mirza-s commented Jul 14, 2018

When invoking yarn global add preact-cli

The installation of simplehttp2server dependency fails with Error: No binary for freebsd/x64

error /usr/local/share/.config/yarn/global/node_modules/simplehttp2server: Command failed.
Exit code: 1
Command: node lib/install.js
Arguments: 
Directory: /usr/local/share/.config/yarn/global/node_modules/simplehttp2server
Output:
/usr/local/share/.config/yarn/global/node_modules/simplehttp2server/lib/suffix.js:17
      throw new Error(`No binary for ${process.platform}/${process.arch}`);
      ^

Error: No binary for freebsd/x64
    at module.exports (/usr/local/share/.config/yarn/global/node_modules/simplehttp2server/lib/suffix.js:17:13)
    at Object.<anonymous> (/usr/local/share/.config/yarn/global/node_modules/simplehttp2server/lib/index.js:9:38)
    at Module._compile (internal/modules/cjs/loader.js:702:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:713:10)
    at Module.load (internal/modules/cjs/loader.js:612:32)
    at tryModuleLoad (internal/modules/cjs/loader.js:551:12)
    at Function.Module._load (internal/modules/cjs/loader.js:543:3)
    at Module.require (internal/modules/cjs/loader.js:650:17)

node v10.5.0
yarn 1.7.0
npm 6.0.1
FreeBSD 11.2-RELEASE #0 r335510

@digitalica
Copy link
Contributor

The problem seems to be the simplehttp2server is just a wrapper around Googles simplehttp2server and they don't provide executable for freebsd... see:
https://github.com/GoogleChromeLabs/simplehttp2server/releases
So either someone has to fix that, or preact has to move to the http2 support in Node (v8.4.0 and later, see https://nodejs.org/api/http2.html).

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

2 participants