You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The problem
I was trying to use ESCPOS_2.5.2 when node-gyp start building the ( node-bluetooth ) module, warnings and errors start to pop on the console till
In my case there was a quick hack to get it to install xpc-connection, not sure if it's related to your problem, but the current version of xpc does not work with anything over node 8+. See if this helps: npm install git://github.com/taoyuan/node-xpc-connection.git
Activity
[-]node-bluetooth caussing build error[/-][+]node-bluetooth causing build error[/+]netrevisanto commentedon Sep 25, 2019
Same problem, please, any advice?
peterpoliwoda commentedon Oct 16, 2019
In my case there was a quick hack to get it to install
xpc-connection, not sure if it's related to your problem, but the current version of xpc does not work with anything over node 8+. See if this helps:npm install git://github.com/taoyuan/node-xpc-connection.gitwebkong commentedon Oct 23, 2019
I think I hava the same problem. pls any repair.
grosseruser commentedon Oct 30, 2019
...same Problem. After 3 days testing & RTFM.
Environments :
Fresh new Windows 10 version 1903 installation
Visual Studio Community 2019 / Bulid tools 2017 & 2015 (npm install --global windows-build-tools)
Python 2.7.17
node v12.13.0
node-gyp v5.0.3
"npm install node-bluetooth --save --verbose"
James-Machouk commentedon Oct 30, 2019
Potential Solution:
this is what i did to make it work
initalize NPM :
npm initInstall Electron as dev dependencies :
npm i -D electron@latestSet this NPM Config :
set npm_config_target=6.0.7<- Version of electron installedset npm_config_arch=x64set npm_config_runtime=electronset npm_config_build_from_source=trueset PYTHON=C:\Users\[YourUser]\.windows-build-tools\python27\python.exeset npm_config_node_gyp=C:\Users\[YourUser]\AppData\Roaming\npm\node_modules\node-gyp\bin\node-gyp.jsInstall the escpos package :
npm install escpos --saveRebuild electron :
npm install --save-dev electron-rebuildgrosseruser commentedon Nov 3, 2019
...after 6 days testing I have now a working configuration for escpos.
node v11.15.0
electron v5.0.11
electron-rebuild 1.8.5
escpos 2.5.2
Windows build tools: npm install --global --production windows-build-tools
Python 2.7.17
tazougphi commentedon Nov 19, 2019
There might be more going on here, but I had a similar compilation issue and downgrading to Visual Studio 2017 fixed it
edit: I also had to downgrade to NodeJS 11
James-Machouk commentedon Nov 19, 2019
If you want for any reason to use the latest version of VS Studio and node you can check this solution #40 (comment)
karthikjn01 commentedon May 18, 2024
I'm also running into this issue now, I think it might be a good idea to update the node-bluetooth package version to be compatible?