Code Monkey home page Code Monkey logo

Comments (9)

anaisbetts avatar anaisbetts commented on August 21, 2024

Hm, I believe this is unique to the serialport project, can you set up a repro?

from rebuild.

camoedo avatar camoedo commented on August 21, 2024

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.

doc avatar doc commented on August 21, 2024

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.

anaisbetts avatar anaisbetts commented on August 21, 2024

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.

makenai avatar makenai commented on August 21, 2024

Looks like there is one open here that might solve it:

mapbox/node-pre-gyp#110

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.

anaisbetts avatar anaisbetts commented on August 21, 2024

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.

makenai avatar makenai commented on August 21, 2024

Cool, that was my hope. I'll follow this up. When you say "they" in this case, who do you mean?

from rebuild.

anaisbetts avatar anaisbetts commented on August 21, 2024

@makenai "they" here is, "the authors of sqlite3 or serialport"

from rebuild.

anaisbetts avatar anaisbetts commented on August 21, 2024

Closing as this is almost surely node-pre-gyp not being good

from rebuild.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.