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

Cant install package on OSX #30

Closed
cr4nk89 opened this issue Oct 29, 2017 · 7 comments · Fixed by #58
Closed

Cant install package on OSX #30

cr4nk89 opened this issue Oct 29, 2017 · 7 comments · Fixed by #58
Labels

Comments

@cr4nk89
Copy link

cr4nk89 commented Oct 29, 2017

Always getting this fault when I try to install the package.

`Installing “arduino-upload@1.3.2” failed.Hide output…

serialport-builds-electron@4.0.7 install /private/var/folders/0y/4dl944691xxgnd8csdhp_ksm0000gn/T/apm-install-dir-117929-77429-uih4nw.272gdjkyb9/node_modules/arduino-upload/node_modules/serialport-builds-electron
node-pre-gyp install --fallback-to-build

Failed to execute '/Applications/Atom.app/Contents/Resources/app/apm/bin/node /Applications/Atom.app/Contents/Resources/app/apm/bin/../node_modules/.bin/node-gyp configure --fallback-to-build --module=/private/var/folders/0y/4dl944691xxgnd8csdhp_ksm0000gn/T/apm-install-dir-117929-77429-uih4nw.272gdjkyb9/node_modules/arduino-upload/node_modules/serialport-builds-electron/build/Release/serialport.node --module_name=serialport --module_path=/private/var/folders/0y/4dl944691xxgnd8csdhp_ksm0000gn/T/apm-install-dir-117929-77429-uih4nw.272gdjkyb9/node_modules/arduino-upload/node_modules/serialport-builds-electron/build/Release' (1)
/private/var/folders/0y/4dl944691xxgnd8csdhp_ksm0000gn/T/apm-install-dir-117929-77429-uih4nw.272gdjkyb9
`-- (empty)

node-pre-gyp ERR! Tried to download(500): https://files.sorunome.de/arduino-upload/serialport/4.0.7/serialport-v4.0.7-electron-v1.6-darwin-x64.tar.gz
node-pre-gyp ERR! Pre-built binaries not found for serialport-builds-electron@4.0.7 and electron@1.6.15 (electron-v1.6 ABI) (falling back to source compile with node-gyp)
gyp ERR! configure error
gyp ERR! stack Error: Python executable "/Applications/Atom.app/Contents/Resources/app/apm/bin/python-interceptor.sh" is v3.6.1, which is not supported by gyp.
gyp ERR! stack You can pass the --python switch to point to Python >= v2.5.0 & < 3.0.0.
gyp ERR! stack at failPythonVersion (/Applications/Atom.app/Contents/Resources/app/apm/node_modules/node-gyp/lib/configure.js:454:14)
gyp ERR! stack at /Applications/Atom.app/Contents/Resources/app/apm/node_modules/node-gyp/lib/configure.js:443:9
gyp ERR! stack at ChildProcess.exithandler (child_process.js:197:7)
gyp ERR! stack at emitTwo (events.js:106:13)
gyp ERR! stack at ChildProcess.emit (events.js:191:7)
gyp ERR! stack at maybeClose (internal/child_process.js:877:16)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:226:5)
gyp ERR! System Darwin 16.7.0
gyp ERR! command "/Applications/Atom.app/Contents/Resources/app/apm/bin/node" "/Applications/Atom.app/Contents/Resources/app/apm/node_modules/.bin/node-gyp" "configure" "--fallback-to-build" "--module=/private/var/folders/0y/4dl944691xxgnd8csdhp_ksm0000gn/T/apm-install-dir-117929-77429-uih4nw.272gdjkyb9/node_modules/arduino-upload/node_modules/serialport-builds-electron/build/Release/serialport.node" "--module_name=serialport" "--module_path=/private/var/folders/0y/4dl944691xxgnd8csdhp_ksm0000gn/T/apm-install-dir-117929-77429-uih4nw.272gdjkyb9/node_modules/arduino-upload/node_modules/serialport-builds-electron/build/Release"
gyp ERR! cwd /private/var/folders/0y/4dl944691xxgnd8csdhp_ksm0000gn/T/apm-install-dir-117929-77429-uih4nw.272gdjkyb9/node_modules/arduino-upload/node_modules/serialport-builds-electron
gyp ERR! node -v v6.9.5
gyp ERR! node-gyp -v v3.4.0
gyp ERR! not ok
node-pre-gyp ERR! build error
node-pre-gyp ERR! stack Error: Failed to execute '/Applications/Atom.app/Contents/Resources/app/apm/bin/node /Applications/Atom.app/Contents/Resources/app/apm/bin/../node_modules/.bin/node-gyp configure --fallback-to-build --module=/private/var/folders/0y/4dl944691xxgnd8csdhp_ksm0000gn/T/apm-install-dir-117929-77429-uih4nw.272gdjkyb9/node_modules/arduino-upload/node_modules/serialport-builds-electron/build/Release/serialport.node --module_name=serialport --module_path=/private/var/folders/0y/4dl944691xxgnd8csdhp_ksm0000gn/T/apm-install-dir-117929-77429-uih4nw.272gdjkyb9/node_modules/arduino-upload/node_modules/serialport-builds-electron/build/Release' (1)
node-pre-gyp ERR! stack at ChildProcess. (/private/var/folders/0y/4dl944691xxgnd8csdhp_ksm0000gn/T/apm-install-dir-117929-77429-uih4nw.272gdjkyb9/node_modules/arduino-upload/node_modules/node-pre-gyp/lib/util/compile.js:83:29)
node-pre-gyp ERR! stack at emitTwo (events.js:106:13)
node-pre-gyp ERR! stack at ChildProcess.emit (events.js:191:7)
node-pre-gyp ERR! stack at maybeClose (internal/child_process.js:877:16)
node-pre-gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:226:5)
node-pre-gyp ERR! System Darwin 16.7.0
node-pre-gyp ERR! command "/Applications/Atom.app/Contents/Resources/app/apm/bin/node" "/private/var/folders/0y/4dl944691xxgnd8csdhp_ksm0000gn/T/apm-install-dir-117929-77429-uih4nw.272gdjkyb9/node_modules/arduino-upload/node_modules/.bin/node-pre-gyp" "install" "--fallback-to-build"
node-pre-gyp ERR! cwd /private/var/folders/0y/4dl944691xxgnd8csdhp_ksm0000gn/T/apm-install-dir-117929-77429-uih4nw.272gdjkyb9/node_modules/arduino-upload/node_modules/serialport-builds-electron
node-pre-gyp ERR! node -v v6.9.5
node-pre-gyp ERR! node-pre-gyp -v v0.6.38
node-pre-gyp ERR! not ok
npm WARN enoent ENOENT: no such file or directory, open '/private/var/folders/0y/4dl944691xxgnd8csdhp_ksm0000gn/T/apm-install-dir-117929-77429-uih4nw.272gdjkyb9/package.json'
npm WARN apm-install-dir-117929-77429-uih4nw.272gdjkyb9 No description
npm WARN apm-install-dir-117929-77429-uih4nw.272gdjkyb9 No repository field.
npm WARN apm-install-dir-117929-77429-uih4nw.272gdjkyb9 No README data
npm WARN apm-install-dir-117929-77429-uih4nw.272gdjkyb9 No license field.
npm ERR! Darwin 16.7.0
npm ERR! argv "/Applications/Atom.app/Contents/Resources/app/apm/bin/node" "/Applications/Atom.app/Contents/Resources/app/apm/node_modules/npm/bin/npm-cli.js" "--globalconfig" "/Users/User/.atom/.apm/.apmrc" "--userconfig" "/Users/User/.atom/.apmrc" "install" "/private/var/folders/0y/4dl944691xxgnd8csdhp_ksm0000gn/T/d-117929-77429-3py533.xubv9m5cdi/package.tgz" "--runtime=electron" "--target=1.6.15" "--arch=x64" "--global-style"
npm ERR! node v6.9.5
npm ERR! npm v3.10.10
npm ERR! code ELIFECYCLE

npm ERR! serialport-builds-electron@4.0.7 install: node-pre-gyp install --fallback-to-build
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the serialport-builds-electron@4.0.7 install script 'node-pre-gyp install --fallback-to-build'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the serialport-builds-electron 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 information on how to open an issue for this project with:
npm ERR! npm bugs serialport-builds-electron
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls serialport-builds-electron
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR! /private/var/folders/0y/4dl944691xxgnd8csdhp_ksm0000gn/T/apm-install-dir-117929-77429-uih4nw.272gdjkyb9/npm-debug.log
npm ERR! code 1
`

@Sorunome
Copy link
Owner

wha, um, i will have to look into that

@vlsd
Copy link

vlsd commented Feb 27, 2018

it seems like the server hosting the file at

https://files.sorunome.de/arduino-upload/serialport/4.0.7/serialport-v4.0.7-electron-v1.6-darwin-x64.tar.gz

doesn't work any longer; that file (and newer versions thereof) can be found here

https://github.com/node-serialport/node-serialport/releases

@Sorunome
Copy link
Owner

Sorunome commented Feb 27, 2018

i don't see any difference between the two URLs you posted?

That being said, i never put the serialport builds for osx on there, as the build tools usually work there fine, and while node-pre-gyp is failing then, node-gyp should build the package just fine

On windows, however, it is rather uncommon to have a c++ compiler

@vlsd
Copy link

vlsd commented Feb 27, 2018

copy paste error, sorry; edited

@Sorunome
Copy link
Owner

The issue with the releases is, that when i tried newer serialport versions stuff simply.......didn't work, which is why i started to host pre-builds.

Guess I'll have to look into this again

@vlsd
Copy link

vlsd commented Feb 27, 2018

Yeah, I figured that's why you pointed to an older version. I'm not even sure if the server being down is the main error or just ancillary, tbh. I just started attacking the first error I saw :)

@Sorunome
Copy link
Owner

nah, for some reason it gives error 500 instead of 404 if the file isn't found (prolly some mis-config), it's just that the file isn't present

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants