-
-
Notifications
You must be signed in to change notification settings - Fork 1k
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
yarn add serialport in electron-builder environment got prebuild-install 404 error #1959
Comments
Pretty much getting the same error. Added serial port to the externals and still nothing. npm install also doesn't want to work. :( |
have you try to use |
I know what is the error info mean now ! Just see the following error info again: $ electron-builder install-app-deps
• electron-builder version=21.2.0
• rebuilding native dependencies dependencies=@serialport/[email protected] platform=linux arch=x64
• install prebuilt binary name=@serialport/bindings version=2.0.8 platform=linux arch=x64
• build native dependency from sources name=@serialport/bindings
version=2.0.8
platform=linux
arch=x64
reason=prebuild-install failed with error (run with env DEBUG=electron-builder to get more information)
error=prebuild-install info begin Prebuild-install version 5.3.2
prebuild-install info looking for cached prebuild @ /home/caibh/.npm/_prebuilds/62a8e4-bindings-v2.0.8-electron-v73-linux-x64.tar.gz
prebuild-install http request GET https://github.com/node-serialport/node-serialport/releases/download/v2.0.8/bindings-v2.0.8-electron-v73-linux-x64.tar.gz
prebuild-install http 404 https://github.com/node-serialport/node-serialport/releases/download/v2.0.8/bindings-v2.0.8-electron-v73-linux-x64.tar.gz
prebuild-install WARN install No prebuilt binaries found (target=6.1.1 runtime=electron arch=x64 libc= platform=linux)
• rebuilding native dependency name=@serialport/bindings version=2.0.8 It means yarn try to build native dependency of
ps:
|
Yes, been trying yarn as well. |
Ran through the other steps you mentioned, using yarn this time. Plus I updated to electron 7. This might be more of an electron issue maybe now.
|
This is what I'm getting after doing an npm install.
|
Anyway you could share your working code? I just want to get this working and actually move on to making an app. |
Again not sure, totally new to all of this but there's this issue over in the node-gyp code nodejs/node-gyp#1933 |
I suggestyou use electron version 6.0, not version 7.0, is too new |
Yeah just reverted, thought the same thing, getting that error above. Is this where you got your info to do the installs? https://github.com/nodejs/node-gyp I went through that, maybe I need a restart. I'll try that now. |
Restarting didn't work. Seems like something's wrong with node-gyp. After a yarn
|
Seems to be an issue with a lot of people https://spin.atomicobject.com/2019/03/27/node-gyp-windows/ |
Considering just installing a ubuntu vm and doing development there. Seems like a windows issue that is now well known and hard to get around. Blah lol |
My demo has updated and add document in README.md, hope to help you. https://github.com/CaiBaoHong/serial-port-gui |
I'll try going through your demo steps. Maybe that'll work. I can't get node-gyp to work by itself so fingers crossed. |
On step 2.2.2 I get the following. I have windows-build-tools and Python27 installed. I did the default windows-build-tools so maybe it did 2019? Maybe I need 2017? I did install with the flag 2015
|
MS has a visual installer so I'm going to go through that and just install all of them (again). |
you don't have to care the warn info in step 2.2.2, because the work of install serialport lib is done |
No idea what's up, but I tried it on a different machine and serialport works. On the other machine when I bring up the app and getting:
I think this is happening because npm install doesn't work on this machine, but it doesn't work on the other one either. Either way, the bindings folder is completely missing on this machine. I tried copying over the files and got a version error. So maybe this is also due to different versions of node, gyp or something else. Going to install the older version of node on here and see if that works. |
yarn add serialport in electron-builder environment got prebuild-install 404 error
My demo project for reproduct the issue is here: https://github.com/CaiBaoHong/serial-port-gui
Reproduct the issue following this step:
when installing the
serialport
, I got this error info:I ignore the error of installing
serialport
, and try to test if the api ofserialport
work or not:serial-port-gui/src/views/Home.vue:
when I run
yarn electron:serve
to start up my electron application,got the following error:Then I find the issue 1906 and mark
serialport
as an external by setting yourvue.config.js
to:Run
yarn electron:serve
again, theserialport
api works !But when I run
yarn
, the problemprebuild-install http 404 https://github.com/node-serialport/node-serialport/releases/download/v2.0.8/bindings-v2.0.8-electron-v73-linux-x64.tar.gz
is still there, I just want to known why?The text was updated successfully, but these errors were encountered: