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 error #27

Closed
marvinhagemeister opened this issue May 22, 2017 · 9 comments
Closed

Installation error #27

marvinhagemeister opened this issue May 22, 2017 · 9 comments

Comments

@marvinhagemeister
Copy link

OS: MacOS Sierra

When installing I always get an exception (found at preactjs/preact-cli#26):

$ npm i simplehttp2server
> [email protected] postinstall /Users/marvinhagemeister/dev/http2server/node_modules/simplehttp2server
> node lib/install.js

  ⚠ The `/Users/marvinhagemeister/dev/http2server/node_modules/simplehttp2server/vendor/simplehttp2server` binary doesn't seem to work correctly
  ⚠ simplehttp2server pre-build test failed
  ℹ compiling from source
  ✖ Error: mkdir -p /Users/marvinhagemeister/dev/http2server/node_modules/simplehttp2server/vendor && sh crosscompile.sh && mv ./0f3bf125-3c46-428e-94d8-d7546e50273f_darwin_amd64 /Users/marvinhagemeister/dev/http2server/node_modules/simplehttp2server/vendor/simplehttp2server
Command failed: sh crosscompile.sh && mv ./0f3bf125-3c46-428e-94d8-d7546e50273f_darwin_amd64 /Users/marvinhagemeister/dev/http2server/node_modules/simplehttp2server/vendor/simplehttp2server
simplehttp2server.go:24:2: cannot find package "github.com/NYTimes/gziphandler" in any of:
	/usr/local/Cellar/go/1.8.1/libexec/src/github.com/NYTimes/gziphandler (from $GOROOT)
	/Users/marvinhagemeister/go/src/github.com/NYTimes/gziphandler (from $GOPATH)
simplehttp2server.go:24:2: cannot find package "github.com/NYTimes/gziphandler" in any of:
	/usr/local/Cellar/go/1.8.1/libexec/src/github.com/NYTimes/gziphandler (from $GOROOT)
	/Users/marvinhagemeister/go/src/github.com/NYTimes/gziphandler (from $GOPATH)
simplehttp2server.go:24:2: cannot find package "github.com/NYTimes/gziphandler" in any of:
	/usr/local/Cellar/go/1.8.1/libexec/src/github.com/NYTimes/gziphandler (from $GOROOT)
	/Users/marvinhagemeister/go/src/github.com/NYTimes/gziphandler (from $GOPATH)
simplehttp2server.go:24:2: cannot find package "github.com/NYTimes/gziphandler" in any of:
	/usr/local/Cellar/go/1.8.1/libexec/src/github.com/NYTimes/gziphandler (from $GOROOT)
	/Users/marvinhagemeister/go/src/github.com/NYTimes/gziphandler (from $GOPATH)
simplehttp2server.go:24:2: cannot find package "github.com/NYTimes/gziphandler" in any of:
	/usr/local/Cellar/go/1.8.1/libexec/src/github.com/NYTimes/gziphandler (from $GOROOT)
	/Users/marvinhagemeister/go/src/github.com/NYTimes/gziphandler (from $GOPATH)

    at ChildProcess.exithandler (child_process.js:205:12)
    at emitTwo (events.js:106:13)
    at ChildProcess.emit (events.js:194:7)
    at maybeClose (internal/child_process.js:899:16)
    at Process.ChildProcess._handle.onexit (internal/child_process.js:226:5)
[email protected] /Users/marvinhagemeister/dev/http2server
@surma
Copy link
Contributor

surma commented May 22, 2017

Sadly, the simplehttp2server npm package is not by me.

Please re-open this issue on the respective repo.

@kamalasaurus
Copy link

@marvinhagemeister I've posted a workaround here:
preactjs/preact-cli#73

@surma surma reopened this May 30, 2017
@surma
Copy link
Contributor

surma commented May 30, 2017

Actually, I have an idea on how to fix this on my end as well.

@surma surma closed this as completed in 16c5a52 May 30, 2017
@surma
Copy link
Contributor

surma commented May 30, 2017

I believe I have fixed this on my end. npm i simplehttp2server should work again :)

@marvinhagemeister
Copy link
Author

Thanks for having a look. Just tried again today, but I get the same error as in the original post.

@surma
Copy link
Contributor

surma commented Jun 6, 2017

Can you double-check if the problem is exactly the same, because it shouldn’t be. (Also, run npm cache clean if you haven’t already).

@marvinhagemeister
Copy link
Author

marvinhagemeister commented Jun 6, 2017

@surma sure, just double checked with both yarn, npm and node 7.10 + 8.0.0. The issue is unfortunately reproducible for all combinations.

Maybe there is something wrong with the binaries itself? The first message is about the binaries not working correctly and than it proceeds to build fresh from source. I'm not familiar at all with go or how they generate the binaries.

The `/myproject/node_modules/simplehttp2server/vendor/simplehttp2server` binary doesn't seem to work correctly

EDIT: whoops, just saw your comment about that here: preactjs/preact-cli#26 (comment)

@marvinhagemeister
Copy link
Author

I'll close this one, since it's already tracked in 1000ch/simplehttp2server#2

@surma
Copy link
Contributor

surma commented Jun 6, 2017

Yeah, I am aware. That message is a red herring. I can’t reproduce the failure at all.

FWIW, I am working on an upstream fix at 1000ch/simplehttp2server#3.

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