Skip to content

Instantly share code, notes, and snippets.

@NoponyCallsMeChicken
Created October 4, 2017 07:27
Show Gist options
  • Save NoponyCallsMeChicken/60f0e5e4e1e24d277277feab4d37c80e to your computer and use it in GitHub Desktop.
Save NoponyCallsMeChicken/60f0e5e4e1e24d277277feab4d37c80e to your computer and use it in GitHub Desktop.
Log from trying to install noble-uwp on Win10
C:\Users\nopony\nodeproj>npm install noble-uwp
> usb@1.2.0 install C:\Users\nopony\nodeproj\node_modules\usb
> node-pre-gyp install --fallback-to-build
node-pre-gyp info it worked if it ends with ok
node-pre-gyp verb cli [ 'C:\\Program Files\\nodejs\\node.exe',
node-pre-gyp verb cli 'C:\\Users\\nopony\\nodeproj\\node_modules\\usb\\node_modules\\node-pre-gyp\\bin\\node-pre-gyp',
node-pre-gyp verb cli 'install',
node-pre-gyp verb cli '--fallback-to-build' ]
node-pre-gyp info using node-pre-gyp@0.6.30
node-pre-gyp info using node@8.2.1 | win32 | x64
node-pre-gyp verb command install []
node-pre-gyp info check checked for "C:\Users\nopony\nodeproj\node_modules\usb\src\binding\usb_bindings.node" (not found)
node-pre-gyp http GET https://github.com/tessel/node-usb/releases/download/1.2.0/usb_bindings-v1.2.0-node-v57-win32-x64.tar.gz
node-pre-gyp http 404 https://github.com/tessel/node-usb/releases/download/1.2.0/usb_bindings-v1.2.0-node-v57-win32-x64.tar.gz
node-pre-gyp ERR! Tried to download: https://github.com/tessel/node-usb/releases/download/1.2.0/usb_bindings-v1.2.0-node-v57-win32-x64.tar.gz
node-pre-gyp ERR! Pre-built binaries not found for usb@1.2.0 and node@8.2.1 (node-v57 ABI) (falling back to source compile with node-gyp)
node-pre-gyp http Pre-built binary not available for your system, looked for https://github.com/tessel/node-usb/releases/download/1.2.0/usb_bindings-v1.2.0-node-v57-win32-x64.tar.gz
node-pre-gyp verb command build [ 'rebuild' ]
C:\Users\nopony\nodeproj\node_modules\usb>if not defined npm_config_node_gyp (node "C:\Program Files\nodejs\node_modules\npm\bin\node-gyp-bin\\..\..\node_modules\node-gyp\bin\node-gyp.js" clean ) else (node "" clean )
C:\Users\nopony\nodeproj\node_modules\usb>if not defined npm_config_node_gyp (node "C:\Program Files\nodejs\node_modules\npm\bin\node-gyp-bin\\..\..\node_modules\node-gyp\bin\node-gyp.js" configure --fallback-to-build "--module=C:\Users\nopony\nodeproj\node_modules\usb\src\binding\usb_bindings.node" --module_name=usb_bindings "--module_path=C:\Users\nopony\nodeproj\node_modules\usb\src\binding" --python=C:\Users\nopony\.windows-build-tools\python27\python.exe --msvs_version=2015 ) else (node "" configure --fallback-to-build "--module=C:\Users\nopony\nodeproj\node_modules\usb\src\binding\usb_bindings.node" --module_name=usb_bindings "--module_path=C:\Users\nopony\nodeproj\node_modules\usb\src\binding" --python=C:\Users\nopony\.windows-build-tools\python27\python.exe --msvs_version=2015 )
C:\Users\nopony\nodeproj\node_modules\usb>if not defined npm_config_node_gyp (node "C:\Program Files\nodejs\node_modules\npm\bin\node-gyp-bin\\..\..\node_modules\node-gyp\bin\node-gyp.js" build --fallback-to-build "--module=C:\Users\nopony\nodeproj\node_modules\usb\src\binding\usb_bindings.node" --module_name=usb_bindings "--module_path=C:\Users\nopony\nodeproj\node_modules\usb\src\binding" ) else (node "" build --fallback-to-build "--module=C:\Users\nopony\nodeproj\node_modules\usb\src\binding\usb_bindings.node" --module_name=usb_bindings "--module_path=C:\Users\nopony\nodeproj\node_modules\usb\src\binding" )
Die Projekte in dieser Projektmappe werden nacheinander erstellt. Um eine parallele Erstellung zu ermöglichen, müssen Sie den Schalter "/m" hinzufügen.
core.c
descriptor.c
hotplug.c
io.c
strerror.c
sync.c
poll_windows.c
threads_windows.c
C:\Users\nopony\nodeproj\node_modules\usb\libusb\libusb\os/threads_windows.h(47): error C2011: 'timesp
ec': 'struct' type redefinition (compiling source file ..\libusb\libusb\io.c) [C:\Users\nopony\nodeproj
\node_modules\usb\build\libusb.vcxproj]
C:\Program Files (x86)\Windows Kits\10\Include\10.0.10240.0\ucrt\time.h(39): note: see declaration of 'timespec' (com
piling source file ..\libusb\libusb\io.c)
..\libusb\libusb\io.c(1227): warning C4244: '=': conversion from 'time_t' to 'long', possible loss of data [C:\Users\no
pony\nodeproj\node_modules\usb\build\libusb.vcxproj]
C:\Users\nopony\nodeproj\node_modules\usb\libusb\libusb\os/threads_windows.h(47): error C2011: 'timesp
ec': 'struct' type redefinition (compiling source file ..\libusb\libusb\sync.c) [C:\Users\nopony\
\node_modules\usb\build\libusb.vcxproj]
C:\Program Files (x86)\Windows Kits\10\Include\10.0.10240.0\ucrt\time.h(39): note: see declaration of 'timespec' (com
piling source file ..\libusb\libusb\sync.c)
..\libusb\libusb\io.c(1902): warning C4244: '=': conversion from 'time_t' to 'long', possible loss of data [C:\Users\no
pony\nodeproj\node_modules\usb\build\libusb.vcxproj]
C:\Users\nopony\nodeproj\node_modules\usb\libusb\libusb\os/threads_windows.h(47): error C2011: 'timesp
ec': 'struct' type redefinition (compiling source file ..\libusb\libusb\strerror.c) [C:\Users\nopony\nodeproj
\GIT\node_modules\usb\build\libusb.vcxproj]
C:\Program Files (x86)\Windows Kits\10\Include\10.0.10240.0\ucrt\time.h(39): note: see declaration of 'timespec' (com
piling source file ..\libusb\libusb\strerror.c)
..\libusb\libusb\io.c(2435): warning C4244: '=': conversion from 'time_t' to 'long', possible loss of data [C:\Users\no
pony\nodeproj\node_modules\usb\build\libusb.vcxproj]
C:\Users\nopony\nodeproj\node_modules\usb\libusb\libusb\os/threads_windows.h(47): error C2011: 'timesp
ec': 'struct' type redefinition (compiling source file ..\libusb\libusb\core.c) [C:\Users\nopony\nodeproj\
\node_modules\usb\build\libusb.vcxproj]
C:\Users\nopony\nodeproj\node_modules\usb\libusb\libusb\os/threads_windows.h(47): error C2011: 'timesp
ec': 'struct' type redefinition (compiling source file ..\libusb\libusb\os\poll_windows.c) [C:\Users\nopony\nodeproj\
node_modules\usb\build\libusb.vcxproj]
C:\Program Files (x86)\Windows Kits\10\Include\10.0.10240.0\ucrt\time.h(39): note: see declaration of 'timespec' (com
piling source file ..\libusb\libusb\core.c)C:\Program Files (x86)\Windows Kits\10\Include\10.0.10240.0\ucrt\time.h(39
): note: see declaration of 'timespec' (compiling source file ..\libusb\libusb\os\poll_windows.c)
windows_usb.c
C:\Users\nopony\nodeproj\node_modules\usb\libusb\libusb\os/threads_windows.h(47): error C2011: 'timesp
ec': 'struct' type redefinition (compiling source file ..\libusb\libusb\hotplug.c) [C:\Users\nopony\nodeproj
\node_modules\usb\build\libusb.vcxproj]
C:\Program Files (x86)\Windows Kits\10\Include\10.0.10240.0\ucrt\time.h(39): note: see declaration of 'timespec' (com
piling source file ..\libusb\libusb\hotplug.c)C:\Users\nopony\nodeproj\node_modules\usb\libusb\libus
b\os/threads_windows.h(47): error C2011: 'timespec': 'struct' type redefinition (compiling source file ..\libusb\libu
sb\descriptor.c)
C:\Program Files (x86)\Windows Kits\10\Include\10.0.10240.0\ucrt\time.h(39): note: see declaration of 'timespec' (com
piling source file ..\libusb\libusb\descriptor.c)
C:\Users\nopony\nodeproj\node_modules\usb\libusb\libusb\os/threads_windows.h(47): error C2011: 'timesp
ec': 'struct' type redefinition (compiling source file ..\libusb\libusb\os\threads_windows.c) [C:\Users\nopony\nodeproj
\node_modules\usb\build\libusb.vcxproj]
C:\Program Files (x86)\Windows Kits\10\Include\10.0.10240.0\ucrt\time.h(39): note: see declaration of 'timespec' (com
piling source file ..\libusb\libusb\os\threads_windows.c)
..\libusb\libusb\os\threads_windows.c(194): warning C4244: '=': conversion from 'time_t' to 'long', possible loss of da
ta [C:\Users\nopony\nodeproj\node_modules\usb\build\libusb.vcxproj]
..\libusb\libusb\os\threads_windows.c(196): warning C4244: '=': conversion from 'const time_t' to 'long', possible loss
of data [C:\Users\nopony\nodeproj\node_modules\usb\build\libusb.vcxproj]
C:\Users\nopony\nodeproj\node_modules\usb\libusb\libusb\os/threads_windows.h(47): error C2011: 'timesp
ec': 'struct' type redefinition (compiling source file ..\libusb\libusb\os\windows_usb.c) [C:\Users\nopony\nodeproj\
node_modules\usb\build\libusb.vcxproj]
C:\Program Files (x86)\Windows Kits\10\Include\10.0.10240.0\ucrt\time.h(39): note: see declaration of 'timespec' (com
piling source file ..\libusb\libusb\os\windows_usb.c)
..\libusb\libusb\os\windows_usb.c(586): warning C4244: '=': conversion from '__int64' to 'unsigned int', possible loss
of data [C:\Users\nopony\nodeproj\node_modules\usb\build\libusb.vcxproj]
..\libusb\libusb\os\windows_usb.c(1017): warning C4996: 'GetVersionExA': was declared deprecated [C:\Users\nopony\nodep
roj\node_modules\usb\build\libusb.vcxproj]
C:\Program Files (x86)\Windows Kits\8.1\Include\um\sysinfoapi.h(433): note: see declaration of 'GetVersionExA'
..\libusb\libusb\os\windows_usb.c(1020): warning C4996: 'GetVersionExA': was declared deprecated [C:\Users\nopony\nodep
roj\node_modules\usb\build\libusb.vcxproj]
C:\Program Files (x86)\Windows Kits\8.1\Include\um\sysinfoapi.h(433): note: see declaration of 'GetVersionExA'
..\libusb\libusb\os\windows_usb.c(1423): warning C4244: '=': conversion from '__int64' to 'unsigned int', possible loss
of data [C:\Users\nopony\nodeproj\node_modules\usb\build\libusb.vcxproj]
..\libusb\libusb\os\windows_usb.c(2558): warning C4018: '<': signed/unsigned mismatch [C:\Users\nopony\nodeproj\
node_modules\usb\build\libusb.vcxproj]
gyp ERR! build error
gyp ERR! stack Error: `C:\Program Files (x86)\MSBuild\14.0\bin\msbuild.exe` failed with exit code: 1
gyp ERR! stack at ChildProcess.onExit (C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\build.js:258:23)
gyp ERR! stack at emitTwo (events.js:125:13)
gyp ERR! stack at ChildProcess.emit (events.js:213:7)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:200:12)
gyp ERR! System Windows_NT 10.0.10586
gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js" "build" "--fallback-to-build" "--module=C:\\Users\\nopony\\nodeproj\\node_modules\\usb\\src\\binding\\usb_bindings.node" "--module_name=usb_bindings" "--module_path=C:\\Users\\nopony\\nodeproj\\node_modules\\usb\\src\\binding"
gyp ERR! cwd C:\Users\nopony\nodeproj\node_modules\usb
gyp ERR! node -v v8.2.1
gyp ERR! node-gyp -v v3.6.2
gyp ERR! not ok
node-pre-gyp ERR! build error
node-pre-gyp ERR! stack Error: Failed to execute 'node-gyp.cmd build --fallback-to-build --module=C:\Users\nopony\nodeproj\node_modules\usb\src\binding\usb_bindings.node --module_name=usb_bindings --module_path=C:\Users\nopony\nodeproj\node_modules\usb\src\binding' (1)
node-pre-gyp ERR! stack at ChildProcess.<anonymous> (C:\Users\nopony\nodeproj\node_modules\usb\node_modules\node-pre-gyp\lib\util\compile.js:83:29)
node-pre-gyp ERR! stack at emitTwo (events.js:125:13)
node-pre-gyp ERR! stack at ChildProcess.emit (events.js:213:7)
node-pre-gyp ERR! stack at maybeClose (internal/child_process.js:921:16)
node-pre-gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:211:5)
node-pre-gyp ERR! System Windows_NT 10.0.10586
node-pre-gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "C:\\Users\\nopony\\nodeproj\\node_modules\\usb\\node_modules\\node-pre-gyp\\bin\\node-pre-gyp" "install" "--fallback-to-build"
node-pre-gyp ERR! cwd C:\Users\nopony\nodeproj\node_modules\usb
node-pre-gyp ERR! node -v v8.2.1
node-pre-gyp ERR! node-pre-gyp -v v0.6.30
node-pre-gyp ERR! not ok
Failed to execute 'node-gyp.cmd build --fallback-to-build --module=C:\Users\nopony\nodeproj\node_modules\usb\src\binding\usb_bindings.node --module_name=usb_bindings --module_path=C:\Users\nopony\nodeproj\node_modules\usb\src\binding' (1)
> noble-uwp@0.5.4 install C:\Users\nopony\nodeproj\node_modules\noble-uwp
> install.cmd
Installing NodeRT UWP adapter for Windows.Foundation
[windows.foundation] Success: "C:\Users\nopony\nodeproj\node_modules\noble-uwp\uwp\windows.foundation\binding\node-v57-win32-x64\binding.node" already installed
Pass --update-binary to reinstall or --build-from-source to recompile
Installing NodeRT UWP adapter for Windows.Storage.Streams
[windows.storage.streams] Success: "C:\Users\nopony\nodeproj\node_modules\noble-uwp\uwp\windows.storage.streams\binding\node-v57-win32-x64\binding.node" already installed
Pass --update-binary to reinstall or --build-from-source to recompile
Installing NodeRT UWP adapter for Windows.Devices.Bluetooth
[windows.devices.bluetooth] Success: "C:\Users\nopony\nodeproj\node_modules\noble-uwp\uwp\windows.devices.bluetooth\binding\node-v57-win32-x64\binding.node" already installed
Pass --update-binary to reinstall or --build-from-source to recompile
Installing NodeRT UWP adapter for Windows.Devices.Bluetooth.Advertisement
[windows.devices.bluetooth.advertisement] Success: "C:\Users\nopony\nodeproj\node_modules\noble-uwp\uwp\windows.devices.bluetooth.advertisement\binding\node-v57-win32-x64\binding.node" already installed
Pass --update-binary to reinstall or --build-from-source to recompile
Installing NodeRT UWP adapter for Windows.Devices.Bluetooth.GenericAttributeProfile
[windows.devices.bluetooth.genericattributeprofile] Success: "C:\Users\nopony\nodeproj\node_modules\noble-uwp\uwp\windows.devices.bluetooth.genericattributeprofile\binding\node-v57-win32-x64\binding.node" already installed
Pass --update-binary to reinstall or --build-from-source to recompile
Installing NodeRT UWP adapter for Windows.Devices.Enumeration
[windows.devices.enumeration] Success: "C:\Users\nopony\nodeproj\node_modules\noble-uwp\uwp\windows.devices.enumeration\binding\node-v57-win32-x64\binding.node" already installed
Pass --update-binary to reinstall or --build-from-source to recompile
Installing NodeRT UWP adapter for Windows.Devices.Radios
[windows.devices.radios] Success: "C:\Users\nopony\nodeproj\node_modules\noble-uwp\uwp\windows.devices.radios\binding\node-v57-win32-x64\binding.node" already installed
Pass --update-binary to reinstall or --build-from-source to recompile
npm ERR! path C:\Users\nopony\nodeproj\node_modules\usb\node_modules\node-pre-gyp\node_modules\npmlog\node_modules\gauge\node_modules\strip-ansi\node_modules
npm ERR! code EPERM
npm ERR! errno -4048
npm ERR! syscall scandir
npm ERR! Error: EPERM: operation not permitted, scandir 'C:\Users\nopony\nodeproj\node_modules\usb\node_modules\node-pre-gyp\node_modules\npmlog\node_modules\gauge\node_modules\strip-ansi\node_modules'
npm ERR! { Error: EPERM: operation not permitted, scandir 'C:\Users\nopony\nodeproj\node_modules\usb\node_modules\node-pre-gyp\node_modules\npmlog\node_modules\gauge\node_modules\strip-ansi\node_modules'
npm ERR! stack: 'Error: EPERM: operation not permitted, scandir \'C:\\Users\\nopony\\nodeproj\\node_modules\\usb\\node_modules\\node-pre-gyp\\node_modules\\npmlog\\node_modules\\gauge\\node_modules\\strip-ansi\\node_modules\'',
npm ERR! errno: -4048,
npm ERR! code: 'EPERM',
npm ERR! syscall: 'scandir',
npm ERR! path: 'C:\\Users\\nopony\\nodeproj\\node_modules\\usb\\node_modules\\node-pre-gyp\\node_modules\\npmlog\\node_modules\\gauge\\node_modules\\strip-ansi\\node_modules' }
npm ERR!
npm ERR! Please try running this command again as root/Administrator.
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\nopony\AppData\Roaming\npm-cache\_logs\2017-10-04T06_46_04_964Z-debug.log
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment