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

npm install fails on node-zopfli #889

Closed
hxlnt opened this issue Apr 21, 2020 · 2 comments
Closed

npm install fails on node-zopfli #889

hxlnt opened this issue Apr 21, 2020 · 2 comments
Assignees

Comments

@hxlnt
Copy link
Member

hxlnt commented Apr 21, 2020

Running into some issues when running npm install on this repo locally (Windows 10, node v12). Looks like it fails to pull down a binary from molant/node-zoplfi then fails to build from source.

node-pre-gyp WARN Using request for node-pre-gyp https download 
node-pre-gyp WARN Tried to download(404): https://github.com/molant/node-zopfli/releases/download/v2.0.3/node-zopfli-v2.0.3-node-v72-win32-x64.tar.gz 
node-pre-gyp WARN Pre-built binaries not found for [email protected] and [email protected] (node-v72 ABI, unknown) (falling back to source compile with node-gyp) 
gyp ERR! configure error 
gyp ERR! stack Error: Command failed: C:\Program Files (x86)\Python37-32\python.EXE -c import sys; print "%s.%s.%s" % sys.version_info[:3];
gyp ERR! stack   File "<string>", line 1
gyp ERR! stack     import sys; print "%s.%s.%s" % sys.version_info[:3];
gyp ERR! stack                                ^
gyp ERR! stack SyntaxError: invalid syntax
gyp ERR! stack 
gyp ERR! stack     at ChildProcess.exithandler (child_process.js:290:12)
gyp ERR! stack     at ChildProcess.emit (events.js:200:13)
gyp ERR! stack     at maybeClose (internal/child_process.js:1021:16)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:283:5)

...

npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] install: `node-pre-gyp install --fallback-to-build`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] install script.
@molant
Copy link
Member

molant commented Apr 21, 2020

Haven't built the binary for node 12. Might be worth looking into another option or completely ditching zopfli. Is always a pain.

For not the workaround is for you to use node 10 😞

@hxlnt
Copy link
Member Author

hxlnt commented Apr 24, 2020

Let's try to switch to a newer package.

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