Comments (6)
@bastiengrignon, look over install of noble for Windows.
from homebridge-switchbot.
I already tried but nothing conclusive.
But I manage to finally install it by completely removing homebridge and re-installing it, now it works
from homebridge-switchbot.
@bastiengrignon, look over install of noble for Windows.
Actually the installation of noble is now deprecated, the repo has been archived, and they said that all tools can be found with the Node Installer ! windows-build-tools.
Even when trying to run the command npm install --global windows-build-tools
, the installation is stuck at some point.
from homebridge-switchbot.
@bastiengrignon Can you try upgrade node to 16.13.0? And then report back?
from homebridge-switchbot.
@donavanbecker same error after Homebridge and computer restart after Node installation
npm ERR! code 1
npm ERR! path C:\Users\...\AppData\Roaming\npm\node_modules\@switchbot\homebridge-swi
tchbot\node_modules\@homebridge\noble
npm ERR! command failed
npm ERR! command C:\WINDOWS\system32\cmd.exe /d /s /c node-gyp rebuild
npm ERR! gyp info it worked if it ends with ok
npm ERR! gyp info using [email protected]
npm ERR! gyp info using [email protected] | win32 | x64
npm ERR! gyp info find Python using Python version 3.9.7 found at "C:\Program Files\Pyt
hon39\python.exe"
npm ERR! gyp info find VS using VS2019 (16.11.31702.278) found at:
npm ERR! gyp info find VS "C:\Program Files (x86)\Microsoft Visual Studio\2019\Communit
y"
npm ERR! gyp info find VS run with --verbose for detailed information
npm ERR! gyp info spawn C:\Program Files\Python39\python.exe
npm ERR! gyp info spawn args [
npm ERR! gyp info spawn args 'C:\\Users\\...\\AppData\\Roaming\\npm\\node_modules\\
npm\\node_modules\\node-gyp\\gyp\\gyp_main.py',
npm ERR! gyp info spawn args 'binding.gyp',
npm ERR! gyp info spawn args '-f',
npm ERR! gyp info spawn args 'msvs',
npm ERR! gyp info spawn args '-I',
npm ERR! gyp info spawn args 'C:\\Users\\...\\AppData\\Roaming\\npm\\node_modules\\
@switchbot\\homebridge-switchbot\\node_modules\\@homebridge\\noble\\build\\config.gypi'
,
npm ERR! gyp info spawn args '-I',
npm ERR! gyp info spawn args 'C:\\Users\\...\\AppData\\Roaming\\npm\\node_modules\\
npm\\node_modules\\node-gyp\\addon.gypi',
npm ERR! gyp info spawn args '-I',
npm ERR! gyp info spawn args 'C:\\WINDOWS\\system32\\config\\systemprofile\\AppData\\
Local\\node-gyp\\Cache\\16.6.1\\common.gypi',
npm ERR! gyp info spawn args '-Dlibrary=shared_library',
npm ERR! gyp info spawn args '-Dvisibility=default',
npm ERR! gyp info spawn args '-Dnode_root_dir=C:\\WINDOWS\\system32\\config\\systempr
ofile\\AppData\\Local\\node-gyp\\Cache\\16.6.1',
npm ERR! gyp info spawn args '-Dnode_gyp_dir=C:\\Users\\...\\AppData\\Roaming\\npm\
\node_modules\\npm\\node_modules\\node-gyp',
npm ERR! gyp info spawn args '-Dnode_lib_file=C:\\\\WINDOWS\\\\system32\\\\config\\\\
systemprofile\\\\AppData\\\\Local\\\\node-gyp\\\\Cache\\\\16.6.1\\\\<(target_arch)\\\\n
ode.lib',
npm ERR! gyp info spawn args '-Dmodule_root_dir=C:\\Users\\...\\AppData\\Roaming\\n
pm\\node_modules\\@switchbot\\homebridge-switchbot\\node_modules\\@homebridge\\noble',
npm ERR! gyp info spawn args '-Dnode_engine=v8',
npm ERR! gyp info spawn args '--depth=.',
npm ERR! gyp info spawn args '--no-parallel',
npm ERR! gyp info spawn args '--generator-output',
npm ERR! gyp info spawn args 'C:\\Users\\...\\AppData\\Roaming\\npm\\node_modules\\
@switchbot\\homebridge-switchbot\\node_modules\\@homebridge\\noble\\build',
npm ERR! gyp info spawn args '-Goutput_dir=.'
npm ERR! gyp info spawn args ]
npm ERR! gyp: C:\WINDOWS\system32\config\systemprofile\AppData\Local\node-gyp\Cache\16.
6.1\common.gypi not found (cwd: C:\Users\...\AppData\Roaming\npm\node_modules\@switch
bot\homebridge-switchbot\node_modules\@homebridge\noble) while reading includes of binding.gyp while trying to load binding.gyp
npm ERR! gyp ERR! configure error
npm ERR! gyp ERR! stack Error: `gyp` failed with exit code: 1
npm ERR! gyp ERR! stack at ChildProcess.onCpExit (C:\Users\...\AppData\Roaming\np
m\node_modules\npm\node_modules\node-gyp\lib\configure.js:261:16)
npm ERR! gyp ERR! stack at ChildProcess.emit (node:events:394:28)
npm ERR! gyp ERR! stack at Process.ChildProcess._handle.onexit (node:internal/child
_process:290:12)
npm ERR! gyp ERR! System Windows_NT 10.0.19043
npm ERR! gyp ERR! command "C:\\Users\\...\\node_modules\\node\\bin\\node.exe" "C:\\Us
ers\\...\\AppData\\Roaming\\npm\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node
-gyp.js" "rebuild"
npm ERR! gyp ERR! cwd C:\Users\...\AppData\Roaming\npm\node_modules\@switchbot\homebr
idge-switchbot\node_modules\@homebridge\noble
npm ERR! gyp ERR! node -v v16.6.1
npm ERR! gyp ERR! node-gyp -v v8.3.0
npm ERR! gyp ERR! not ok
npm ERR! A complete log of this run can be found in:
npm ERR! C:\WINDOWS\system32\config\systemprofile\AppData\Local\npm-cache\_logs\202
1-11-02T06_53_51_745Z-debug.log
Command failed. Please review log for details.
from homebridge-switchbot.
it seems the error points to this:
npm ERR! gyp: C:\WINDOWS\system32\config\systemprofile\AppData\Local\node-gyp\Cache\16.
6.1\common.gypi not found (cwd: C:\Users\...\AppData\Roaming\npm\node_modules\@switch
bot\homebridge-switchbot\node_modules\@homebridge\noble) while reading includes of binding.gyp while trying to load binding.gyp
Maybe search this common.gypi not found
in google and see if any of the results from stackoverflow help?
from homebridge-switchbot.
Related Issues (20)
- Bug: unable to communicate with switchbot thermometer? HOT 1
- Support Request: Switchbot on Hoops has ceased working - Help appreciated. HOT 11
- Bot stops working after latest plugin update HOT 16
- Unable activate switchbot after update to 3.00 HOT 23
- Feature Request: Curtain3 Support HOT 3
- Support Request: Errors and Warning for Switchbot Curtain, not sure where to configure these values HOT 2
- Bug: Unknown statusCode: undefined - Re-opening HOT 2
- Feature Request: Specify a range of temperature settings for the air conditioner HOT 5
- Wiki updates HOT 1
- Bug: Missing all device with 3.1.1 HOT 6
- v3.1.2 leads to endless restart of child bridge. When restarting HomeBridge no plugins are loaded. HOT 4
- Bug: Cannot find package '@abandonware/noble' HOT 2
- Support Request: HOT 13
- Bug: Lock New Status Code Response HOT 4
- Feature Request: Smart Lock Pro HOT 7
- Mini Vacuum K10+ not working HOT 11
- Support Request: IR Devices not showing up HOT 7
- Support Request: HOT 3
- Bug: OpenAPI Unauthorized using valid keys HOT 4
- Support Request: Refresh rate HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from homebridge-switchbot.