myusername@myusername-mbp kaih2o.python-resource-monitor-0.2.0 % npm install
npm WARN deprecated @npmcli/[email protected]: This functionality has been moved to @npmcli/fs
npm WARN deprecated [email protected]: This package has been renamed to @vscode/test-electron, please update to the new name
npm ERR! code 1
npm ERR! path /Users/myusername/.vscode/extensions/kaih2o.python-resource-monitor-0.2.0/node_modules/node-ps-data
npm ERR! command failed
npm ERR! command sh -c node-gyp-build
npm ERR! CXX(target) Release/obj.target/node_ps_data/napi.o
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] | darwin | arm64
npm ERR! gyp info find Python using Python version 3.11.3 found at "/opt/homebrew/opt/[email protected]/bin/python3.11"
npm ERR! gyp info spawn /opt/homebrew/opt/[email protected]/bin/python3.11
npm ERR! gyp info spawn args [
npm ERR! gyp info spawn args '/Users/myusername/.vscode/extensions/kaih2o.python-resource-monitor-0.2.0/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 '/Users/myusername/.vscode/extensions/kaih2o.python-resource-monitor-0.2.0/node_modules/node-ps-data/build/config.gypi',
npm ERR! gyp info spawn args '-I',
npm ERR! gyp info spawn args '/Users/myusername/.vscode/extensions/kaih2o.python-resource-monitor-0.2.0/node_modules/node-gyp/addon.gypi',
npm ERR! gyp info spawn args '-I',
npm ERR! gyp info spawn args '/Users/myusername/Library/Caches/node-gyp/19.9.0/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/myusername/Library/Caches/node-gyp/19.9.0',
npm ERR! gyp info spawn args '-Dnode_gyp_dir=/Users/myusername/.vscode/extensions/kaih2o.python-resource-monitor-0.2.0/node_modules/node-gyp',
npm ERR! gyp info spawn args '-Dnode_lib_file=/Users/myusername/Library/Caches/node-gyp/19.9.0/<(target_arch)/node.lib',
npm ERR! gyp info spawn args '-Dmodule_root_dir=/Users/myusername/.vscode/extensions/kaih2o.python-resource-monitor-0.2.0/node_modules/node-ps-data',
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! ../napi.cc:2:10: fatal error: 'napi.h' file not found
npm ERR! #include <napi.h>
npm ERR! ^~~~~~~~
npm ERR! 1 error generated.
npm ERR! make: *** [Release/obj.target/node_ps_data/napi.o] Error 1
npm ERR! gyp ERR! build error
npm ERR! gyp ERR! stack Error: `make` failed with exit code: 2
npm ERR! gyp ERR! stack at ChildProcess.onExit (/Users/myusername/.vscode/extensions/kaih2o.python-resource-monitor-0.2.0/node_modules/node-gyp/lib/build.js:194:23)
npm ERR! gyp ERR! stack at ChildProcess.emit (node:events:513:28)
npm ERR! gyp ERR! stack at ChildProcess._handle.onexit (node:internal/child_process:293:12)
npm ERR! gyp ERR! System Darwin 22.4.0
npm ERR! gyp ERR! command "/opt/homebrew/Cellar/node/19.9.0/bin/node" "/Users/myusername/.vscode/extensions/kaih2o.python-resource-monitor-0.2.0/node_modules/.bin/node-gyp" "rebuild"
npm ERR! gyp ERR! cwd /Users/myusername/.vscode/extensions/kaih2o.python-resource-monitor-0.2.0/node_modules/node-ps-data
npm ERR! gyp ERR! node -v v19.9.0
npm ERR! gyp ERR! node-gyp -v v8.4.1
npm ERR! gyp ERR! not ok
npm ERR! A complete log of this run can be found in: /Users/myusername/.npm/_logs/2023-04-29T18_06_26_341Z-debug-0.log