This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

installing pc-ble-driver-js

Hello.


Microsoft Windows [Version 10.0.16299.431]
(c) 2017 Microsoft Corporation. All rights reserved.

C:\Users\mkond>npm install pc-ble-driver-js
npm WARN deprecated [email protected]: this package has been reintegrated into npm and is now out of date with respect to npm
npm WARN deprecated [email protected]: please upgrade to graceful-fs 4 for compatibility with current and future versions of Node.js

> [email protected] install C:\Users\mkond\node_modules\pc-ble-driver-js
> node-pre-gyp install --fallback-to-build=false || node build.js

node-pre-gyp ERR! install error
node-pre-gyp ERR! stack Error: 404 status code downloading tarball https://github.com/NordicSemiconductor/pc-ble-driver-js/releases/download/v2.3.0/pc-ble-driver-js-sd_api_v3-v2.3.0-node-v57-win32-x64.tar.gz
node-pre-gyp ERR! stack     at Request.<anonymous> (C:\Users\mkond\node_modules\node-pre-gyp\lib\install.js:118:27)
node-pre-gyp ERR! stack     at emitOne (events.js:121:20)
node-pre-gyp ERR! stack     at Request.emit (events.js:211:7)
node-pre-gyp ERR! stack     at Request.onRequestResponse (C:\Users\mkond\node_modules\node-pre-gyp\node_modules\request\request.js:1074:10)
node-pre-gyp ERR! stack     at emitOne (events.js:116:13)
node-pre-gyp ERR! stack     at ClientRequest.emit (events.js:211:7)
node-pre-gyp ERR! stack     at HTTPParser.parserOnIncomingClient [as onIncoming] (_http_client.js:543:21)
node-pre-gyp ERR! stack     at HTTPParser.parserOnHeadersComplete (_http_common.js:112:17)
node-pre-gyp ERR! stack     at TLSSocket.socketOnData (_http_client.js:440:20)
node-pre-gyp ERR! stack     at emitOne (events.js:116:13)
node-pre-gyp ERR! System Windows_NT 10.0.16299
node-pre-gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "C:\\Users\\mkond\\node_modules\\node-pre-gyp\\bin\\node-pre-gyp" "install" "--fallback-to-build=false"
node-pre-gyp ERR! cwd C:\Users\mkond\node_modules\pc-ble-driver-js
node-pre-gyp ERR! node -v v8.11.2
node-pre-gyp ERR! node-pre-gyp -v v0.6.39
node-pre-gyp ERR! not ok
404 status code downloading tarball https://github.com/NordicSemiconductor/pc-ble-driver-js/releases/download/v2.3.0/pc-ble-driver-js-sd_api_v3-v2.3.0-node-v57-win32-x64.tar.gz
info DIST Downloading distribution files.
http DIST       - http://nodejs.org/dist/v8.11.2/SHASUMS256.txt
http DIST       - http://nodejs.org/dist/v8.11.2/win-x64/node.lib
http DIST       - http://nodejs.org/dist/v8.11.2/node-v8.11.2-headers.tar.gz
info CMD CLEAN
info RUN cmake -E remove_directory "C:\Users\mkond\node_modules\pc-ble-driver-js\build"
info CMD CONFIGURE
WARN invalid config loglevel="notice"
info RUN cmake "C:\Users\mkond\node_modules\pc-ble-driver-js" --no-warn-unused-cli -DCMAKE_BUILD_TYPE="Release" -DCMAKE_JS_INC="C:\Users\mkond\.cmake-js\node-x64\v8.11.2\include\node" -DNODE_RUNTIME="node" -DNODE_RUNTIMEVERSION="8.11.2" -DNODE_ARCH="x64" -DCMAKE_JS_LIB="C:\Users\mkond\.cmake-js\node-x64\v8.11.2\win-x64\node.lib"
Not searching for unused variables given on the command line.
-- Building for: Visual Studio 14 2015
-- Selecting Windows SDK version 10.0.14393.0 to target Windows 10.0.16299.
-- The C compiler identification is MSVC 19.0.24213.1
-- The CXX compiler identification is MSVC 19.0.24213.1
-- Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/bin/cl.exe
-- Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/bin/cl.exe -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/bin/cl.exe
-- Check for working CXX compiler: C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/bin/cl.exe -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Architecture not set, using native 32-bit toolchain.
CMake Warning at C:/Program Files/CMake/share/cmake-3.11/Modules/FindBoost.cmake:587 (message):
  Imported targets and dependency information not available for Boost version
  (all versions older than 1.33)
Call Stack (most recent call first):
  C:/Program Files/CMake/share/cmake-3.11/Modules/FindBoost.cmake:950 (_Boost_COMPONENT_DEPENDENCIES)
  C:/Program Files/CMake/share/cmake-3.11/Modules/FindBoost.cmake:1618 (_Boost_MISSING_DEPENDENCIES)
  pc-ble-driver/cmake/pc-ble-driver.cmake:55 (find_package)
  CMakeLists.txt:7 (include)


CMake Warning at C:/Program Files/CMake/share/cmake-3.11/Modules/FindBoost.cmake:587 (message):
  Imported targets and dependency information not available for Boost version
  (all versions older than 1.33)
Call Stack (most recent call first):
  C:/Program Files/CMake/share/cmake-3.11/Modules/FindBoost.cmake:950 (_Boost_COMPONENT_DEPENDENCIES)
  C:/Program Files/CMake/share/cmake-3.11/Modules/FindBoost.cmake:1618 (_Boost_MISSING_DEPENDENCIES)
  pc-ble-driver/cmake/pc-ble-driver.cmake:55 (find_package)
  CMakeLists.txt:7 (include)


CMake Warning at C:/Program Files/CMake/share/cmake-3.11/Modules/FindBoost.cmake:587 (message):
  Imported targets and dependency information not available for Boost version
  (all versions older than 1.33)
Call Stack (most recent call first):
  C:/Program Files/CMake/share/cmake-3.11/Modules/FindBoost.cmake:950 (_Boost_COMPONENT_DEPENDENCIES)
  C:/Program Files/CMake/share/cmake-3.11/Modules/FindBoost.cmake:1618 (_Boost_MISSING_DEPENDENCIES)
  pc-ble-driver/cmake/pc-ble-driver.cmake:55 (find_package)
  CMakeLists.txt:7 (include)


CMake Warning at C:/Program Files/CMake/share/cmake-3.11/Modules/FindBoost.cmake:587 (message):
  Imported targets and dependency information not available for Boost version
  (all versions older than 1.33)
Call Stack (most recent call first):
  C:/Program Files/CMake/share/cmake-3.11/Modules/FindBoost.cmake:950 (_Boost_COMPONENT_DEPENDENCIES)
  C:/Program Files/CMake/share/cmake-3.11/Modules/FindBoost.cmake:1618 (_Boost_MISSING_DEPENDENCIES)
  pc-ble-driver/cmake/pc-ble-driver.cmake:55 (find_package)
  CMakeLists.txt:7 (include)


CMake Warning at C:/Program Files/CMake/share/cmake-3.11/Modules/FindBoost.cmake:587 (message):
  Imported targets and dependency information not available for Boost version
  (all versions older than 1.33)
Call Stack (most recent call first):
  C:/Program Files/CMake/share/cmake-3.11/Modules/FindBoost.cmake:950 (_Boost_COMPONENT_DEPENDENCIES)
  C:/Program Files/CMake/share/cmake-3.11/Modules/FindBoost.cmake:1618 (_Boost_MISSING_DEPENDENCIES)
  pc-ble-driver/cmake/pc-ble-driver.cmake:55 (find_package)
  CMakeLists.txt:7 (include)


-- Looking for pthread.h
-- Looking for pthread.h - not found
-- Found Threads: TRUE
CMake Error at C:/Program Files/CMake/share/cmake-3.11/Modules/FindBoost.cmake:2044 (message):
  Unable to find the requested Boost libraries.

  Unable to find the Boost header files.  Please set BOOST_ROOT to the root
  directory containing Boost or BOOST_INCLUDEDIR to the directory containing
  Boost's headers.
Call Stack (most recent call first):
  pc-ble-driver/cmake/pc-ble-driver.cmake:55 (find_package)
  CMakeLists.txt:7 (include)


-- Found Git: C:/Program Files/Git/cmd/git.exe (found version "2.8.1.windows.1")
CMake Error: The following variables are used in this project, but they are set to NOTFOUND.
Please set them or make sure they are set and tested correctly in the CMake files:
Boost_INCLUDE_DIR (ADVANCED)
   used as include directory in directory C:/Users/mkond/node_modules/pc-ble-driver-js/pc-ble-driver
   used as include directory in directory C:/Users/mkond/node_modules/pc-ble-driver-js/pc-ble-driver
   used as include directory in directory C:/Users/mkond/node_modules/pc-ble-driver-js/pc-ble-driver
   used as include directory in directory C:/Users/mkond/node_modules/pc-ble-driver-js/pc-ble-driver
   used as include directory in directory C:/Users/mkond/node_modules/pc-ble-driver-js/pc-ble-driver
   used as include directory in directory C:/Users/mkond/node_modules/pc-ble-driver-js/pc-ble-driver
   used as include directory in directory C:/Users/mkond/node_modules/pc-ble-driver-js/pc-ble-driver

-- Configuring incomplete, errors occurred!
See also "C:/Users/mkond/node_modules/pc-ble-driver-js/build/CMakeFiles/CMakeOutput.log".
See also "C:/Users/mkond/node_modules/pc-ble-driver-js/build/CMakeFiles/CMakeError.log".
ERR! OMG Process terminated: 1
npm WARN enoent ENOENT: no such file or directory, open 'C:\Users\mkond\package.json'
npm WARN mkond No description
npm WARN mkond No repository field.
npm WARN mkond No README data
npm WARN mkond No license field.

npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] install: `node-pre-gyp install --fallback-to-build=false || node build.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\mkond\AppData\Roaming\npm-cache\_logs\2018-05-21T21_25_16_396Z-debug.log

C:\Users\mkond>
2018-05-21T21_25_16_396Z-debug.log

Hello.

I am trying to install pc-ble-driver-js on my computer but it fails to install. If anyone could guide me how to install it, that will be appreciated. My goal is making app with Electron like nRF connect with pc-ble-driver-js, so any related guidance will be appreciated as well.

I installed Node.js 8.11.2 LTS and CMAKE for windows 64 bits today and tried to follow installation guide on Github (npm install pc-ble-driver-js) but no success. Please find attached logs from command prompt and log automatically generated.

Thank you for your help.

Masahiro

Related