Giter Club home page Giter Club logo

Comments (6)

donavanbecker avatar donavanbecker commented on June 8, 2024 1

@bastiengrignon, look over install of noble for Windows.

from homebridge-switchbot.

bastiengrignon avatar bastiengrignon commented on June 8, 2024 1

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 avatar bastiengrignon commented on June 8, 2024

@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.

donavanbecker avatar donavanbecker commented on June 8, 2024

@bastiengrignon Can you try upgrade node to 16.13.0? And then report back?

from homebridge-switchbot.

bastiengrignon avatar bastiengrignon commented on June 8, 2024

@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.

bwp91 avatar bwp91 commented on June 8, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.