@echo off
cd /d "%~dp0"
color 0A
set msvs_version=2017
set npm_config_target=5.0.10
set npm_config_target_arch=ia32
set npm_config_arch=ia32
set npm_config_runtime=electron
set npm_config_build_from_source=true
cd node_modules\usb-detection
cmd /c node-gyp rebuild
cd ..\node-hid
cmd /c node-gyp rebuild
echo:
pause
But after running...
bindings.js?dfc1:178 Uncaught TypeError: Cannot read property 'indexOf' of undefined
at Function.getFileName (bindings.js?dfc1:178)
at bindings (bindings.js?dfc1:82)
at eval (index.js?8cb0:13)
at Object../node_modules/usb-detection/index.js (app.js:4426)
at __webpack_require__ (app.js:770)
at fn (app.js:130)
at eval (index.js?1bfd:42)
at Object../node_modules/@abckey/hid/dist/index.js (app.js:945)
at __webpack_require__ (app.js:770)
at fn (app.js:130)
usb-detection-v4.3.0-electron-v70-win32-ia32.tar.gz
I compiled it this way.
But after running...