Skip to content

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

@mirza-s

Description

@mirza-s

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions