nodejs / node-gyp

Node.js native addon build tool
MIT License
9.85k stars 1.79k forks source link

Homebridge downloading Govee plugin error #2622

Open Dhwdue opened 2 years ago

Dhwdue commented 2 years ago

npm ERR! code 1 npm ERR! path /usr/local/lib/node_modules/homebridge-plugin-govee/node_modules/@abandonware/noble npm ERR! command failed npm ERR! command sh -c node-gyp rebuild npm ERR! gyp info it worked if it ends with ok npm ERR! gyp info using node-gyp@8.3.0 npm ERR! gyp info using node@16.13.1 | darwin | arm64 npm ERR! gyp info find Python using Python version 3.6.5 found at "/Users/andydu/miniconda3/bin/python3" npm ERR! gyp info spawn /Users/andydu/miniconda3/bin/python3 npm ERR! gyp info spawn args [ npm ERR! gyp info spawn args '/usr/local/lib/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 'make', npm ERR! gyp info spawn args '-I', npm ERR! gyp info spawn args '/usr/local/lib/node_modules/homebridge-plugin-govee/node_modules/@abandonware/noble/build/config.gypi', npm ERR! gyp info spawn args '-I', npm ERR! gyp info spawn args '/usr/local/lib/node_modules/npm/node_modules/node-gyp/addon.gypi', npm ERR! gyp info spawn args '-I', npm ERR! gyp info spawn args '/Users/andydu/Library/Caches/node-gyp/16.13.1/include/node/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=/Users/andydu/Library/Caches/node-gyp/16.13.1', npm ERR! gyp info spawn args '-Dnode_gyp_dir=/usr/local/lib/node_modules/npm/node_modules/node-gyp', npm ERR! gyp info spawn args '-Dnode_lib_file=/Users/andydu/Library/Caches/node-gyp/16.13.1/<(target_arch)/node.lib', npm ERR! gyp info spawn args '-Dmodule_root_dir=/usr/local/lib/node_modules/homebridge-plugin-govee/node_modules/@abandonware/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 'build', npm ERR! gyp info spawn args '-Goutput_dir=.' npm ERR! gyp info spawn args ] npm ERR! gyp info spawn make npm ERR! gyp info spawn args [ 'BUILDTYPE=Release', '-C', 'build' ] npm ERR! xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun npm ERR! gyp ERR! build error npm ERR! gyp ERR! stack Error: make failed with exit code: 1 npm ERR! gyp ERR! stack at ChildProcess.onExit (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:194:23) npm ERR! gyp ERR! stack at ChildProcess.emit (node:events:390:28) npm ERR! gyp ERR! stack at Process.ChildProcess._handle.onexit (node:internal/child_process:290:12) npm ERR! gyp ERR! System Darwin 21.1.0 npm ERR! gyp ERR! command "/usr/local/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild" npm ERR! gyp ERR! cwd /usr/local/lib/node_modules/homebridge-plugin-govee/node_modules/@abandonware/noble npm ERR! gyp ERR! node -v v16.13.1 npm ERR! gyp ERR! node-gyp -v v8.3.0 npm ERR! gyp ERR! not ok

cclauss commented 2 years ago

npm ERR! xcrun: error: invalid active developer path

On the macOS terminal, please try: xcode-select --install

https://github.com/nodejs/node-gyp/blob/master/macOS_Catalina.md#installing-node-gyp-using-the-xcode-command-line-tools-via-xcode-select---install

cclauss commented 2 years ago

@Duhaowei Can this issue be closed?