Comments (9)
Hm, I believe this is unique to the serialport project, can you set up a repro?
from rebuild.
I have the same problem with 0.26.0 version
Claudios-MacBook-Pro:manager camoedo$ ./node_modules/.bin/electron-rebuild
[email protected] install /Users/camoedo/Google Drive/arduino/manager/node_modules/serialport
node-pre-gyp install --fallback-to-build
Unsupported target version: 0.26.0
node-pre-gyp ERR! install error
node-pre-gyp ERR! stack Error: Unsupported target version: 0.26.0
node-pre-gyp ERR! stack at get_runtime_abi (/Users/camoedo/Google Drive/arduino/manager/node_modules/serialport/node_modules/node-pre-gyp/lib/util/versioning.js:140:23)
node-pre-gyp ERR! stack at Object.module.exports.evaluate (/Users/camoedo/Google Drive/arduino/manager/node_modules/serialport/node_modules/node-pre-gyp/lib/util/versioning.js:249:19)
node-pre-gyp ERR! stack at install (/Users/camoedo/Google Drive/arduino/manager/node_modules/serialport/node_modules/node-pre-gyp/lib/install.js:138:31)
node-pre-gyp ERR! stack at Object.self.commands.(anonymous function) [as install](/Users/camoedo/Google Drive/arduino/manager/node_modules/serialport/node_modules/node-pre-gyp/lib/node-pre-gyp.js:48:37)
node-pre-gyp ERR! stack at run (/Users/camoedo/Google Drive/arduino/manager/node_modules/serialport/node_modules/node-pre-gyp/bin/node-pre-gyp:79:30)
node-pre-gyp ERR! stack at Object. (/Users/camoedo/Google Drive/arduino/manager/node_modules/serialport/node_modules/node-pre-gyp/bin/node-pre-gyp:131:1)
node-pre-gyp ERR! stack at Module._compile (module.js:431:26)
node-pre-gyp ERR! stack at Object.Module._extensions..js (module.js:449:10)
node-pre-gyp ERR! stack at Module.load (module.js:356:32)
node-pre-gyp ERR! stack at Function.Module._load (module.js:311:12)
node-pre-gyp ERR! System Darwin 14.3.0
node-pre-gyp ERR! command "/Users/camoedo/.nvm/versions/io.js/v2.0.0/bin/iojs" "/Users/camoedo/Google Drive/arduino/manager/node_modules/serialport/node_modules/.bin/node-pre-gyp" "install" "--fallback-to-build"
node-pre-gyp ERR! cwd /Users/camoedo/Google Drive/arduino/manager/node_modules/serialport
node-pre-gyp ERR! node -v v2.0.0
node-pre-gyp ERR! node-pre-gyp -v v0.6.7
node-pre-gyp ERR! not ok
npm ERR! Darwin 14.3.0
npm ERR! argv "/Users/camoedo/.nvm/versions/io.js/v2.0.0/bin/iojs" "/Users/camoedo/Google Drive/arduino/manager/node_modules/electron-rebuild/node_modules/npm/bin/npm-cli.js" "rebuild" "--target=0.26.0" "--arch=x64"
npm ERR! node v2.0.0
npm ERR! npm v2.10.0
npm ERR! code ELIFECYCLE
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 'node-pre-gyp install --fallback-to-build'.
npm ERR! This is most likely a problem with the serialport package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node-pre-gyp install --fallback-to-build
npm ERR! You can get their info via:
npm ERR! npm owner ls serialport
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request:
npm ERR! /Users/camoedo/Google Drive/arduino/manager/npm-debug.log
Process exited with code: 1
Error: Process exited with code: 1
at ChildProcess. (/Users/camoedo/Google Drive/arduino/manager/node_modules/electron-rebuild/lib/spawn.js:53:26)
at emitTwo (events.js:87:13)
at ChildProcess.emit (events.js:169:7)
at maybeClose (child_process.js:953:16)
at Socket. (child_process.js:1114:11)
at emitOne (events.js:77:13)
at Socket.emit (events.js:166:7)
at Pipe._onclose (net.js:456:12)
from rebuild.
Hey Guys, having the same issues here with 0.27.1 and sqlite3 module.
[mporter:~/projects/axn_offline]$ ./node_modules/.bin/electron-rebuild -f
[email protected] install /Users/mporter/projects/axn_offline/node_modules/sqlite3
node-pre-gyp install --fallback-to-build
Unsupported target version: 0.27.1
node-pre-gyp ERR! install error
node-pre-gyp ERR! stack Error: Unsupported target version: 0.27.1
node-pre-gyp ERR! stack at get_runtime_abi (/Users/mporter/projects/axn_offline/node_modules/sqlite3/node_modules/node-pre-gyp/lib/util/versioning.js:140:23)
node-pre-gyp ERR! stack at Object.module.exports.evaluate (/Users/mporter/projects/axn_offline/node_modules/sqlite3/node_modules/node-pre-gyp/lib/util/versioning.js:249:19)
node-pre-gyp ERR! stack at install (/Users/mporter/projects/axn_offline/node_modules/sqlite3/node_modules/node-pre-gyp/lib/install.js:138:31)
node-pre-gyp ERR! stack at Object.self.commands.(anonymous function) as install
node-pre-gyp ERR! stack at run (/Users/mporter/projects/axn_offline/node_modules/sqlite3/node_modules/node-pre-gyp/bin/node-pre-gyp:79:30)
node-pre-gyp ERR! stack at Object. (/Users/mporter/projects/axn_offline/node_modules/sqlite3/node_modules/node-pre-gyp/bin/node-pre-gyp:131:1)
node-pre-gyp ERR! stack at Module._compile (module.js:460:26)
node-pre-gyp ERR! stack at Object.Module._extensions..js (module.js:478:10)
node-pre-gyp ERR! stack at Module.load (module.js:355:32)
node-pre-gyp ERR! stack at Function.Module._load (module.js:310:12)
node-pre-gyp ERR! System Darwin 14.4.0
node-pre-gyp ERR! command "node" "/Users/mporter/projects/axn_offline/node_modules/sqlite3/node_modules/.bin/node-pre-gyp" "install" "--fallback-to-build"
node-pre-gyp ERR! cwd /Users/mporter/projects/axn_offline/node_modules/sqlite3
node-pre-gyp ERR! node -v v0.12.4
node-pre-gyp ERR! node-pre-gyp -v v0.6.6
node-pre-gyp ERR! not ok
npm ERR! Darwin 14.4.0
npm ERR! argv "node" "/Users/mporter/projects/axn_offline/node_modules/electron-rebuild/node_modules/npm/bin/npm-cli.js" "rebuild" "--target=0.27.1" "--arch=x64"
npm ERR! node v0.12.4
npm ERR! npm v2.11.0
npm ERR! code ELIFECYCLE
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 'node-pre-gyp install --fallback-to-build'.
npm ERR! This is most likely a problem with the sqlite3 package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node-pre-gyp install --fallback-to-build
npm ERR! You can get their info via:
npm ERR! npm owner ls sqlite3
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request:
npm ERR! /Users/mporter/projects/axn_offline/node_modules/npm-debug.log
Process exited with code: 1
Error: Process exited with code: 1
at ChildProcess. (/Users/mporter/projects/axn_offline/node_modules/electron-rebuild/lib/spawn.js:53:26)
at ChildProcess.emit (events.js:110:17)
at maybeClose (child_process.js:1015:16)
at Socket. (child_process.js:1183:11)
at Socket.emit (events.js:107:17)
at Pipe.close (net.js:485:12)
from rebuild.
This seems like it's a bug with the node-pre-gyp
package which we can't really do anything about, can someone file a bug there instead?
from rebuild.
Looks like there is one open here that might solve it:
I'm not familiar with how the native compilation stuff works, but is it possible to work around somehow and not rely on node-pre-gyp, falling back to node-gyp without the fatal error?
from rebuild.
I'm not familiar with how the native compilation stuff works, but is it possible to work around somehow and not rely on node-pre-gyp, falling back to node-gyp without the fatal error?
Yeah, so basically, if they didn't use node-pre-gyp at all, this would Just Work. node-pre-gyp seems to be making a simple dumb "If version != one we like, blow up" check
from rebuild.
Cool, that was my hope. I'll follow this up. When you say "they" in this case, who do you mean?
from rebuild.
@makenai "they" here is, "the authors of sqlite3 or serialport"
from rebuild.
Closing as this is almost surely node-pre-gyp not being good
from rebuild.
Related Issues (20)
- Error related to `.forge-meta` file HOT 1
- GCC_PREFIX_HEADER & GCC_PRECOMPILE_PREFIX_HEADER incompatible with Electron 20
- error rebuild canvas on Windows HOT 3
- Rebuilding node-canvas with electron-rebuild fails HOT 4
- Could not detect abi for version 22.3.3 and runtime electron. Updating "node-abi" might help solve this issue if it is a new release of electron at getAbi HOT 8
- no file node_modules/.bin/electron-rebuild in 3.2.11 HOT 1
- Error when rebuilding node-java package HOT 1
- Python 2 died 1,259 days ago on 1/1/2020. Why still use it? HOT 1
- Cross Compile on Linux
- Help using rebuild to package node-sqlite3 to use with Electron HOT 2
- ERR_REQUIRE_ESM HOT 1
- Follow OS conventions for storing cache
- it is not rebuilding for electron from the package root HOT 2
- need to upgrade node-gyp HOT 6
- Complains for deprecated move-file
- @electron/rebuild ignores symlinks for native modules, which crashes the application HOT 1
- Module build fails with empty binding.gyp HOT 3
- Windows CI Failing
- Not rebuilding with --which-module argument
- Pass arch armv7l as "arm" to node-gyp
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from rebuild.