Open dsmwong opened 2 years ago
When installing on MacOS 12.3 npm install node-poweredup
npm install node-poweredup
I'm now getting the following error.
> @abandonware/noble@1.9.2-15 install /Users/dawong/dev/source/playground/testlego/node_modules/@abandonware/noble > node-gyp rebuild CC(target) Release/obj.target/nothing/../../node-addon-api/nothing.o LIBTOOL-STATIC Release/nothing.a env: python: No such file or directory make: *** [Release/nothing.a] Error 127 gyp ERR! build error gyp ERR! stack Error: `make` failed with exit code: 2 gyp ERR! stack at ChildProcess.onExit (/Users/dawong/.nvm/versions/node/v14.19.0/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:194:23) gyp ERR! stack at ChildProcess.emit (events.js:400:28) gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:282:12) gyp ERR! System Darwin 21.4.0 gyp ERR! command "/Users/dawong/.nvm/versions/node/v14.19.0/bin/node" "/Users/dawong/.nvm/versions/node/v14.19.0/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild" gyp ERR! cwd /Users/dawong/dev/source/playground/testlego/node_modules/@abandonware/noble gyp ERR! node -v v14.19.0 gyp ERR! node-gyp -v v5.1.0 gyp ERR! not ok npm WARN optional SKIPPING OPTIONAL DEPENDENCY: @abandonware/bluetooth-hci-socket@^0.5.3-8 (node_modules/@abandonware/noble/node_modules/@abandonware/bluetooth-hci-socket): npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for @abandonware/bluetooth-hci-socket@0.5.3-8: wanted {"os":"linux,android,freebsd,win32","arch":"any"} (current: {"os":"darwin","arch":"x64"}) npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! @abandonware/noble@1.9.2-15 install: `node-gyp rebuild` npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the @abandonware/noble@1.9.2-15 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! /Users/dawong/.npm/_logs/2022-03-18T10_46_26_891Z-debug.log
With MacOS 12.3 removing default Python. It would require installing Python manually with MacOS.
When installing on MacOS 12.3
npm install node-poweredup
I'm now getting the following error.