Closed OceanHorn closed 6 years ago
What folders are there in lzma-native
? Did npm install lzma-native
succeed? Do you have any odd npm options like ignore-scripts
activated?
Thank you for sharing your work!
@OceanHorn Are using react native realm?
Same error, cannot find binding-v3.0.1-node-v57-darwin-x64. I spent the afternoon trying to understand why my react native app would no longer build.
yarn installed the other /node_modules/lzma-native/binding-* files, however, the darwin version-x64 version was missing.
yarn complains about some certificate error. npm install works fine
I suspect yarn may be more security paranoid when it sees the certificate error. Or it is a yarn bug.
I just tried it again using yarn and can no longer reproduce.
Somebody spoofing a npm server?
Expired certificate had been replaced?
I do not know....
yarn --version
1.3.2
This was the original yarn install error complaining about a http certificate has expired :
yarn
yarn install v1.2.1
[1/4] π Resolving packages...
[2/4] π Fetching packages...
[3/4] π Linking dependencies...
warning "react-native-firebase@3.0.0-alpha.3" has unmet peer dependency "fbjs@*".
warning "react-test-renderer@16.0.0" has incorrect peer dependency "react@^16.0.0-beta.5".
[4/4] π Building fresh packages...
[-/8] β waiting...
[2/8] β lzma-native: Failed to execute 'node-gyp clean' (Error: spawn node-gyp ENOENT)
[-/8] β waiting...
[4/8] β fsevents: node-pre-gyp http GET https://fsevents-binaries.s3-us-west-2.amazonaws.com/v1.1.1/fse-v1.1.1-node-v57-darwin-x64.tar.gz
error /Users/edward3/Documents/projects/react-native/a-test/source/node_modules/lzma-native: Command failed.
Exit code: 1
Command: node-pre-gyp install --fallback-to-build && node node_modules/rimraf/bin.js build
Arguments:
Directory: /Users/edward3/Documents/projects/react-native/a-test/source/node_modules/lzma-native
Output:
node-pre-gyp info it worked if it ends with ok
node-pre-gyp info using node-pre-gyp@0.6.36
node-pre-gyp info using node@8.7.0 | darwin | x64
node-pre-gyp info check checked for "/Users/edward3/Documents/projects/react-native/a-test/source/node_modules/lzma-native/binding-v3.0.1-node-v57-darwin-x64/lzma_native.node" (not found)
node-pre-gyp http GET https://node-pre-gyp.entless.org/lzma-native/lzma_native-v3.0.1-node-v57-darwin-x64.tar.gz
node-pre-gyp ERR! Tried to download(undefined): https://node-pre-gyp.entless.org/lzma-native/lzma_native-v3.0.1-node-v57-darwin-x64.tar.gz
node-pre-gyp ERR! Pre-built binaries not found for lzma-native@3.0.1 and node@8.7.0 (node-v57 ABI) (falling back to source compile with node-gyp)
node-pre-gyp http certificate has expired
node-pre-gyp ERR! build error
node-pre-gyp ERR! stack Error: Failed to execute 'node-gyp clean' (Error: spawn node-gyp ENOENT)
node-pre-gyp ERR! stack at ChildProcess.<anonymous> (/Users/edward3/Documents/projects/react-native/a-test/source/node_modules/lzma-native/node_modules/node-pre-gyp/lib/util/compile.js:77:29)
node-pre-gyp ERR! stack at emitOne (events.js:115:13)
node-pre-gyp ERR! stack at ChildProcess.emit (events.js:210:7)
node-pre-gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:198:12)
node-pre-gyp ERR! stack at onErrorNT (internal/child_process.js:374:16)
node-pre-gyp ERR! stack at _combinedTickCallback (internal/process/next_tick.js:138:11)
node-pre-gyp ERR! stack at process._tickCallback (internal/process/next_tick.js:180:9)
node-pre-gyp ERR! System Darwin 16.7.0
node-pre-gyp ERR! command "/usr/local/Cellar/node/8.7.0/bin/node" "/Users/edward3/Documents/projects/react-native/a-test/source/node_modules/lzma-native/node_modules/.bin/node-pre-gyp" "install" "--fallback-to-build"
node-pre-gyp ERR! cwd /Users/edward3/Documents/projects/react-native/a-test/source/node_modules/lzma-native
node-pre-gyp ERR! node -v v8.7.0
Expired certificate had been replaced?
Yes, see #46 β I updated the cert but forgot to make the webserver reload its config. Itβs a silly mistake on my end, but has been resolved now & shouldnβt happen again. :)
@addaleax Thank you for sharing your work.
I think I will stick with yarn since it gives me a message "http certificate has expired" while npm did not.
@esutton To be clear, the download of the pre-built binary happens using node-pre-gyp, not in the package manager itself β I really canβt tell why npm vs yarn would make a difference here. It might just be that by the time you tried npm I had already fixed it? Anyway, go with whichever you prefer. :)
@addaleax That is true. It might just have been timing. Good point.
I will stick with yarn since react-native uses it.
I should create my own node.js package to learn more about how the things I use everyday actually work! :)
@addaleax just npm install
.
Files in folder lzma-native
list below:
CHANGELOG.md
LICENSE
README.md
bin
binding-v1.5.3-node-v53-linux-x64
binding-v2.0.0-node-v53-linux-x64
binding-v2.0.1-node-v55-linux-x64
binding-v2.0.2-node-v55-linux-x64
binding-v2.0.3-node-v56-linux-x64
binding-v2.0.4-electron-v1.7-linux-x64
binding-v2.0.4-node-v48-linux-x64
binding-v2.0.4-node-v56-linux-x64
binding-v3.0.0-electron-v1.7-linux-x64
binding-v3.0.0-node-v56-linux-x64
binding-v3.0.1-node-v51-darwin-x64
binding-v3.0.1-node-v56-linux-x64
binding.gyp
cflags.sh
deps
index.js
liblzma-build.sh
liblzma-config.sh
node_modules
package.json
src
Would still be nice to have an answer at least to βDid npm install lzma-native
succeed?β β¦ it looks like you might just have forgotten to rebuild after upgrading Node?
@addaleax I tried to remove lzma-native
and re-install by npm install --save lzma-native
, logs like below:
> lzma-native@3.0.2 install /Users/OceanHorn/SourceTree/mmms/node_modules/lzma-native
> node-pre-gyp install --fallback-to-build && node node_modules/rimraf/bin.js build
[lzma-native] Success: "/Users/OceanHorn/SourceTree/mmms/node_modules/lzma-native/binding-v3.0.2-node-v51-darwin-x64/lzma_native.node" is installed via remote
mmms@0.0.1 /Users/OceanHorn/SourceTree/mmms
βββ UNMET PEER DEPENDENCY babel-eslint@8.0.2
βββ UNMET PEER DEPENDENCY eslint-plugin-jest@^21.0.0
βββ UNMET PEER DEPENDENCY eslint-plugin-jsx-a11y@^6.0.2
βββ UNMET PEER DEPENDENCY eslint-plugin-relay@0.0.8
βββ¬ lzma-native@3.0.2
β βββ nan@2.5.1
β βββ¬ node-pre-gyp@0.6.39
β β βββ detect-libc@1.0.2
β β βββ¬ hawk@3.1.3
β β β βββ boom@2.10.1
β β β βββ cryptiles@2.0.5
β β β βββ hoek@2.16.3
β β β βββ sntp@1.0.9
β β βββ¬ mkdirp@0.5.1
β β β βββ minimist@0.0.8
β β βββ¬ nopt@4.0.1
β β β βββ abbrev@1.1.1
β β β βββ¬ osenv@0.1.4
β β β βββ os-homedir@1.0.2
β β β βββ os-tmpdir@1.0.2
β β βββ¬ npmlog@4.1.2
β β β βββ¬ are-we-there-yet@1.1.4
β β β β βββ delegates@1.0.0
β β β βββ console-control-strings@1.1.0
β β β βββ¬ gauge@2.7.4
β β β β βββ aproba@1.2.0
β β β β βββ has-unicode@2.0.1
β β β β βββ object-assign@4.1.1
β β β β βββ signal-exit@3.0.2
β β β β βββ¬ string-width@1.0.2
β β β β β βββ code-point-at@1.1.0
β β β β β βββ¬ is-fullwidth-code-point@1.0.0
β β β β β βββ number-is-nan@1.0.1
β β β β βββ¬ strip-ansi@3.0.1
β β β β β βββ ansi-regex@2.1.1
β β β β βββ wide-align@1.1.2
β β β βββ set-blocking@2.0.0
β β βββ¬ rc@1.2.2
β β β βββ deep-extend@0.4.2
β β β βββ ini@1.3.4
β β β βββ minimist@1.2.0
β β β βββ strip-json-comments@2.0.1
β β βββ¬ request@2.81.0
β β β βββ aws-sign2@0.6.0
β β β βββ aws4@1.6.0
β β β βββ caseless@0.12.0
β β β βββ¬ combined-stream@1.0.5
β β β β βββ delayed-stream@1.0.0
β β β βββ extend@3.0.1
β β β βββ forever-agent@0.6.1
β β β βββ¬ form-data@2.1.4
β β β β βββ asynckit@0.4.0
β β β βββ¬ har-validator@4.2.1
β β β β βββ¬ ajv@4.11.8
β β β β β βββ co@4.6.0
β β β β β βββ¬ json-stable-stringify@1.0.1
β β β β β βββ jsonify@0.0.0
β β β β βββ har-schema@1.0.5
β β β βββ¬ http-signature@1.1.1
β β β β βββ assert-plus@0.2.0
β β β β βββ¬ jsprim@1.4.1
β β β β β βββ assert-plus@1.0.0
β β β β β βββ extsprintf@1.3.0
β β β β β βββ json-schema@0.2.3
β β β β β βββ¬ verror@1.10.0
β β β β β βββ assert-plus@1.0.0
β β β β βββ¬ sshpk@1.13.1
β β β β βββ asn1@0.2.3
β β β β βββ assert-plus@1.0.0
β β β β βββ bcrypt-pbkdf@1.0.1
β β β β βββ¬ dashdash@1.14.1
β β β β β βββ assert-plus@1.0.0
β β β β βββ ecc-jsbn@0.1.1
β β β β βββ¬ getpass@0.1.7
β β β β β βββ assert-plus@1.0.0
β β β β βββ jsbn@0.1.1
β β β β βββ tweetnacl@0.14.5
β β β βββ is-typedarray@1.0.0
β β β βββ isstream@0.1.2
β β β βββ json-stringify-safe@5.0.1
β β β βββ¬ mime-types@2.1.17
β β β β βββ mime-db@1.30.0
β β β βββ oauth-sign@0.8.2
β β β βββ performance-now@0.2.0
β β β βββ qs@6.4.0
β β β βββ stringstream@0.0.5
β β β βββ¬ tough-cookie@2.3.3
β β β β βββ punycode@1.4.1
β β β βββ tunnel-agent@0.6.0
β β β βββ uuid@3.1.0
β β βββ semver@5.4.1
β β βββ¬ tar@2.2.1
β β β βββ block-stream@0.0.9
β β β βββ¬ fstream@1.0.11
β β β βββ graceful-fs@4.1.11
β β βββ¬ tar-pack@3.4.1
β β βββ¬ debug@2.6.9
β β β βββ ms@2.0.0
β β βββ fstream-ignore@1.0.5
β β βββ¬ once@1.4.0
β β β βββ wrappy@1.0.2
β β βββ uid-number@0.0.6
β βββ¬ readable-stream@2.3.3
β β βββ core-util-is@1.0.2
β β βββ inherits@2.0.3
β β βββ isarray@1.0.0
β β βββ process-nextick-args@1.0.7
β β βββ safe-buffer@5.1.1
β β βββ string_decoder@1.0.3
β β βββ util-deprecate@1.0.2
β βββ¬ rimraf@2.6.2
β βββ¬ glob@7.1.2
β βββ fs.realpath@1.0.0
β βββ inflight@1.0.6
β βββ¬ minimatch@3.0.4
β β βββ¬ brace-expansion@1.1.8
β β βββ balanced-match@1.0.0
β β βββ concat-map@0.0.1
β βββ path-is-absolute@1.0.1
βββ UNMET PEER DEPENDENCY react@16.0.0-alpha.12
βββ UNMET PEER DEPENDENCY react-native-elements@0.17.0
......
And the files in folder ./node_modules/lzma-native
list below:
CHANGELOG.md
LICENSE
README.md
README.md.xz
bin
binding-v3.0.1-node-v58-linux-x64
binding-v3.0.1-node-v59-linux-x64
binding-v3.0.2-node-v51-darwin-x64
binding.gyp
cflags.sh
deps
index.js
liblzma-build.sh
liblzma-config.sh
node_modules
package.json
src
I meet some network error in downloading realm-sync-cocoa-2.1.1.tar.xz
now. I will give you more information later. Thanks a lot!
I too am using realm and saw an error regarding network error regarding realm-sync-cocoa-2.1.1.tar.xz
is https://node-pre-gyp.entless.org/lzma-native/lzma_native-v3.0.1-node-v57-win32-x64.tar.gz
Down or something ?
npm install used to work fine before and today I am getting this
node-pre-gyp ERR! Tried to download(undefined): https://node-pre-gyp.entless.org/lzma-native/lzma_native-v3.0.1-node-v57-win32-x64.tar.gz
I checked the link and it's dead . Is anyone else having the same issue ?
EDIT :
Now the domain is Up and it works perfectly . ( npm install in my project directory now works ) .
Today I have had this problem off an on again. I git clone, then yarn and all is good. Then an hour later bad, then good, then bad....
I am using the realm package which may indirectly depends on lzma-native
Work-around is to use npm install after git clone.
stack Error: Failed to execute 'node-gyp clean
edwards-mbp:source edward3$ yarn
yarn install v1.3.2
[1/4] π Resolving packages...
[2/4] π Fetching packages...
[3/4] π Linking dependencies...
warning " > react-native-firebase@3.0.0-alpha.3" has unmet peer dependency "fbjs@*".
warning " > react-test-renderer@16.0.0" has incorrect peer dependency "react@^16.0.0-beta.5".
[4/4] π Building fresh packages...
[-/8] β waiting...
[2/8] β lzma-native: http GET https://node-pre-gyp.entless.org/lzma-nativ
[-/8] β waiting...
[4/8] β fsevents: https://fsevents-binaries.s3-us-west-2.amazonaws.com/v1
warning Error running install script for optional dependency: "/Users/edward3/Documents/projects/react-native/field-scout/source/node_modules/fsevents: Command failed.\nExit code: 1\nCommand: node install\nArguments: \nDirectory: /Users/edward3/Documents/projects/react-native/field-scout/source/node_modules/fsevents\nOutput:\nnode-pre-gyp info it worked if it ends with ok\nnode-pre-gyp info using node-pre-gyp@0.6.36\nnode-pre-gyp info using node@8.9.0 | darwin | x64\nnode-pre-gyp info check checked for \"/Users/edward3/Documents/projects/react-native/field-scout/source/node_modules/fsevents/lib/binding/Release/node-v57-darwin-x64/fse.node\" (not found)\nnode-pre-gyp http GET https://fsevents-binaries.s3-us-west-2.amazonaws.com/v1.1.1/fse-v1.1.1-node-v57-darwin-x64.tar.gz\nnode-pre-gyp http 404 https://fsevents-binaries.s3-us-west-2.amazonaws.com/v1.1.1/fse-v1.1.1-node-v57-darwin-x64.tar.gz\nnode-pre-gyp ERR! Tried to download(404): https://fsevents-binaries.s3-us-west-2.amazonaws.com/v1.1.1/fse-v1.1.1-node-v57-darwin-x64.tar.gz \nnode-pre-gyp ERR! Pre-built binaries not found for fsevents@1.1.1 and node@8.9.0 (node-v57 ABI) (falling back to source compile with node-gyp) \nnode-pre-gyp http 404 status code downloading tarball https://fsevents-binaries.s3-us-west-2.amazonaws.com/v1.1.1/fse-v1.1.1-node-v57-darwin-x64.tar.gz \nnode-pre-gyp ERR! build error \nnode-pre-gyp ERR! stack Error: Failed to execute 'node-gyp clean' (Error: spawn node-gyp ENOENT)\nnode-pre-gyp ERR! stack at ChildProcess.<anonymous> (/Users/edward3/Documents/projects/react-native/field-scout/source/node_modules/node-pre-gyp/lib/util/compile.js:77:29)\nnode-pre-gyp ERR! stack at emitOne (events.js:116:13)\nnode-pre-gyp ERR! stack at ChildProcess.emit (events.js:211:7)\nnode-pre-gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:196:12)\nnode-pre-gyp ERR! stack at onErrorNT (internal/child_process.js:372:16)\nnode-pre-gyp ERR! stack at _combinedTickCallback (internal/process/next_tick.js:138:11)\nnode-pre-gyp ERR! stack at process._tickCallback (internal/process/next_tick.js:180:9)\nnode-pre-gyp ERR! System Darwin 16.7.0\nnode-pre-gyp ERR! command \"/usr/local/Cellar/node/8.9.0/bin/node\" \"/Users/edward3/Documents/projects/react-native/field-scout/source/node_modules/fsevents/node_modules/.bin/node-pre-gyp\" \"install\" \"--fallback-to-build\"\nnode-pre-gyp ERR! cwd /Users/edward3/Documents/p$
@esutton Iβm not sure but it sounds like that is not an issue with the lzma-native part? The last line of that message reads:
warning Error running install script for optional dependency: "/Users/edward3/Documents/projects/react-native/field-scout/source/node_modules/fsevents: Command failed.
Exit code: 1
Command: node install
Arguments:
Directory: /Users/edward3/Documents/projects/react-native/field-scout/source/node_modules/fsevents
Output:
node-pre-gyp info it worked if it ends with ok
node-pre-gyp info using node-pre-gyp@0.6.36
node-pre-gyp info using node@8.9.0 | darwin | x64
node-pre-gyp info check checked for \"/Users/edward3/Documents/projects/react-native/field-scout/source/node_modules/fsevents/lib/binding/Release/node-v57-darwin-x64/fse.node\" (not found)
node-pre-gyp http GET https://fsevents-binaries.s3-us-west-2.amazonaws.com/v1.1.1/fse-v1.1.1-node-v57-darwin-x64.tar.gz
node-pre-gyp http 404 https://fsevents-binaries.s3-us-west-2.amazonaws.com/v1.1.1/fse-v1.1.1-node-v57-darwin-x64.tar.gz
node-pre-gyp ERR! Tried to download(404): https://fsevents-binaries.s3-us-west-2.amazonaws.com/v1.1.1/fse-v1.1.1-node-v57-darwin-x64.tar.gz
node-pre-gyp ERR! Pre-built binaries not found for fsevents@1.1.1 and node@8.9.0 (node-v57 ABI) (falling back to source compile with node-gyp)
node-pre-gyp http 404 status code downloading tarball https://fsevents-binaries.s3-us-west-2.amazonaws.com/v1.1.1/fse-v1.1.1-node-v57-darwin-x64.tar.gz
node-pre-gyp ERR! build error
node-pre-gyp ERR! stack Error: Failed to execute 'node-gyp clean' (Error: spawn node-gyp ENOENT)
node-pre-gyp ERR! stack at ChildProcess.<anonymous> (/Users/edward3/Documents/projects/react-native/field-scout/source/node_modules/node-pre-gyp/lib/util/compile.js:77:29)
node-pre-gyp ERR! stack at emitOne (events.js:116:13)
node-pre-gyp ERR! stack at ChildProcess.emit (events.js:211:7)
node-pre-gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:196:12)
node-pre-gyp ERR! stack at onErrorNT (internal/child_process.js:372:16)
node-pre-gyp ERR! stack at _combinedTickCallback (internal/process/next_tick.js:138:11)
node-pre-gyp ERR! stack at process._tickCallback (internal/process/next_tick.js:180:9)
node-pre-gyp ERR! System Darwin 16.7.0
node-pre-gyp ERR! command \"/usr/local/Cellar/node/8.9.0/bin/node\" \"/Users/edward3/Documents/projects/react-native/field-scout/source/node_modules/fsevents/node_modules/.bin/node-pre-gyp\" \"install\" \"--fallback-to-build\"
node-pre-gyp ERR! cwd /Users/edward3/Documents/p$ echo hello from yarn postinstall && scripts/npm-post-install.sh
I think all of that is coming from fsevents
β¦
@addaleax I expect you are right. Thanks for looking at it.
Error occors when integrate realm to a react native app with version 2.0.2. And there is no folder named 'binding-v3.0.1-node-v57-darwin-x64' existed in folder 'lzma-native'.
{ Error: Cannot find module '/Users/username/ReactNative/folder/Native/node_modules/lzma-native/binding-v3.0.1-node-v57-darwin-x64/lzma_native.node' at Function.Module._resolveFilename (module.js:485:15) at Function.Module._load (module.js:437:25) at Module.require (module.js:513:17) at require (internal/module.js:11:18) at /Users/username/ReactNative/folder/Native/node_modules/lzma-native/index.js:13:14 at Object. (/Users/username/ReactNative/folder/Native/node_modules/lzma-native/index.js:595:3)
at Module._compile (module.js:569:30)
at Object.Module._extensions..js (module.js:580:10)
at Module.load (module.js:503:32)
at tryModuleLoad (module.js:466:12) code: 'MODULE_NOT_FOUND' }