NordicSemiconductor / pc-ble-driver-js

Node.js interface to the C/C++ pc-ble-driver library. API docs: https://nordicsemiconductor.github.io/pc-ble-driver-js/
Other
79 stars 41 forks source link

Installation problem #234

Closed violetgee closed 4 years ago

violetgee commented 4 years ago

When trying to install the latest version, the following error appears:

Validation of nrfjprog libraries failed: Could not locate the bindings file. Tried: → C:\Users\Documents\GitHub\pc-ble-driver-js\node_modules\pc-nrfjprog-js\build\pc-nrfjprog-js.node

node-pre-gyp ERR! stack Error: 404 status code downloading tarball https://github.com/NordicSemiconductor/pc-nrfjprog-js/releases/download/v1.6.0/pc-nrfjprog-js-v1.6.0-node-v72-win32-ia32.tar.gz

I just downloaded the latest version and I'm trying to run the command npm install and npm install pc-ble-driver-js. It also doesn't work: $ git clone https://github.com/NordicPlayground/vcpkg.git $ git checkout tags/2019-06-09 $ ./vcpkg/bootstrap.bat $ ./vcpkg/vcpkg install nrf-ble-driver:x64-windows

Do I need to install anything earlier?

Edit: When I run npm test all tests passed but when I run test from ../test/ for example setup.js or simpleScan.test.js I have this error: Error: Could not locate the bindings file. Tried: → C:\Users\Desktop\pc-ble-driver-js-2.6.2\build\pc-ble-driver-js-sd_api_v2.node

chunfantasy commented 4 years ago

@violetgee I suggest you to use node 8, 10 or 11 if you just wanna use it without modification since we do not have the release for node 12 support yet (I suppose you are using node 12). If you have to use node 12 then you need to build it yourself before we have node 12 support.