hey, I got a little issue with my package, installing fails due to node-pre-gyp, but I don’t understand why, especially since npm install works fine while apm install doesn’t.

Here’s the output of apm install:
[sorunome@sorunome-desktop arduino-upload]$ apm install
Installing modules ✗
> serialport@2.1.0 install /home/sorunome/repos/arduino-upload/node_modules/serialport
> node-pre-gyp install --fallback-to-build

Unsupported target version: 0.36.12

npm WARN installMany node-pre-gyp was bundled with serialport@2.1.0, but bundled package wasn't found in unpacked tree
npm WARN installMany node-pre-gyp-github was bundled with serialport@2.1.0, but bundled package wasn't found in unpacked tree
npm WARN engine deep-extend@0.4.1: wanted: {"node":">=0.12.0","iojs":">=1.0.0"} (current: {"node":"0.10.40","npm":"2.13.3"})
node-pre-gyp ERR! install error 
node-pre-gyp ERR! stack Error: Unsupported target version: 0.36.12
node-pre-gyp ERR! stack     at get_runtime_abi (/home/sorunome/repos/arduino-upload/node_modules/serialport/node_modules/node-pre-gyp/lib/util/versioning.js:156:23)
node-pre-gyp ERR! stack     at Object.module.exports.evaluate (/home/sorunome/repos/arduino-upload/node_modules/serialport/node_modules/node-pre-gyp/lib/util/versioning.js:277:19)
node-pre-gyp ERR! stack     at install (/home/sorunome/repos/arduino-upload/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] (/home/sorunome/repos/arduino-upload/node_modules/serialport/node_modules/node-pre-gyp/lib/node-pre-gyp.js:48:37)
node-pre-gyp ERR! stack     at run (/home/sorunome/repos/arduino-upload/node_modules/serialport/node_modules/node-pre-gyp/bin/node-pre-gyp:79:30)
node-pre-gyp ERR! stack     at Object.<anonymous> (/home/sorunome/repos/arduino-upload/node_modules/serialport/node_modules/node-pre-gyp/bin/node-pre-gyp:131:1)
node-pre-gyp ERR! stack     at Module._compile (module.js:456:26)
node-pre-gyp ERR! stack     at Object.Module._extensions..js (module.js:474:10)
node-pre-gyp ERR! stack     at Module.load (module.js:356:32)
node-pre-gyp ERR! stack     at Function.Module._load (module.js:312:12)
node-pre-gyp ERR! System Linux 4.1.21-1-lts
node-pre-gyp ERR! command "node" "/home/sorunome/repos/arduino-upload/node_modules/serialport/node_modules/.bin/node-pre-gyp" "install" "--fallback-to-build"
node-pre-gyp ERR! cwd /home/sorunome/repos/arduino-upload/node_modules/serialport
node-pre-gyp ERR! node -v v0.10.40
node-pre-gyp ERR! node-pre-gyp -v v0.6.26
node-pre-gyp ERR! not ok 
npm ERR! Linux 4.1.21-1-lts
npm ERR! argv "/usr/share/atom/resources/app/apm/bin/node" "/usr/share/atom/resources/app/apm/node_modules/npm/bin/npm-cli.js" "--globalconfig" "/home/sorunome/.atom/.apm/.apmrc" "--userconfig" "/home/sorunome/.atom/.apmrc" "install" "--target=0.36.12" "--arch=x64"
npm ERR! node v0.10.40
npm ERR! npm  v2.13.3

npm ERR! serialport@2.1.0 install: `node-pre-gyp install --fallback-to-build`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the serialport@2.1.0 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!     /home/sorunome/repos/arduino-upload/npm-debug.log

While debugging I noticed that the version of npm inside of apm is heavily outdated:

[sorunome@sorunome-desktop ~]$ apm -v
apm  1.9.2
npm  2.13.3
node 0.10.40
python 3.5.1
git 2.8.0
[sorunome@sorunome-desktop ~]$ npm -v

Maybe that is related?

Thanks for answers!