Install fails in Electron
antonbrams opened this issue · comments
Bug description
npm install node-window-manager
fails
To Reproduce
trying to install the "node-window-manager": "^2.2.4"
version to use it later in electron. If i understand correctly at the installation phase the electron version doesn't matter. It has to work first of all in node
Details:
- Operating System: MacOS Monterey
node-window-manager
version: 2.2.4- Last known working
node-window-manager
version: 2.2.4
Additional context
node -v 15.5.0 (not the electron node version)
npm -v 7.3.0
electron -v 16.0.7
Console output
npm ERR! path /Users/antonbrams/Desktop/Software/Studio 2/node_modules/node-window-manager
npm ERR! command failed
npm ERR! command sh -c npm run rebuild
npm ERR! > node-window-manager@2.2.4 rebuild
npm ERR! > node-gyp rebuild
npm ERR!
npm ERR! CXX(target) Release/obj.target/addon/lib/macos.o
npm ERR! gyp info it worked if it ends with ok
npm ERR! gyp info using node-gyp@7.1.2
npm ERR! gyp info using node@15.5.0 | darwin | x64
npm ERR! gyp info find Python using Python version 3.7.3 found at "/Library/Developer/CommandLineTools/usr/bin/python3"
npm ERR! gyp info spawn /Library/Developer/CommandLineTools/usr/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 '/Users/antonbrams/Desktop/Software/Studio 2/node_modules/node-window-manager/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/antonbrams/Library/Caches/node-gyp/15.5.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/antonbrams/Library/Caches/node-gyp/15.5.0',
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/antonbrams/Library/Caches/node-gyp/15.5.0/<(target_arch)/node.lib',
npm ERR! gyp info spawn args '-Dmodule_root_dir=/Users/antonbrams/Desktop/Software/Studio 2/node_modules/node-window-manager',
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! No receipt for 'com.apple.pkg.CLTools_Executables' found at '/'.
npm ERR! No receipt for 'com.apple.pkg.DeveloperToolsCLILeo' found at '/'.
npm ERR! No receipt for 'com.apple.pkg.DeveloperToolsCLI' found at '/'.
npm ERR!
npm ERR!
npm ERR!
npm ERR! gyp info spawn make
npm ERR! gyp info spawn args [ 'BUILDTYPE=Release', '-C', 'build' ]
npm ERR! clang: error: no such file or directory: '2/node_modules/node-window-manager/node_modules/node-addon-api'
npm ERR! make: *** [Release/obj.target/addon/lib/macos.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 (/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:376:20)
npm ERR! gyp ERR! stack at Process.ChildProcess._handle.onexit (node:internal/child_process:284:12)
npm ERR! gyp ERR! System Darwin 21.2.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 /Users/antonbrams/Desktop/Software/Studio 2/node_modules/node-window-manager
npm ERR! gyp ERR! node -v v15.5.0
npm ERR! gyp ERR! node-gyp -v v7.1.2
npm ERR! gyp ERR! not ok
npm ERR! npm ERR! code 1
npm ERR! npm ERR! path /Users/antonbrams/Desktop/Software/Studio 2/node_modules/node-window-manager
npm ERR! npm ERR! command failed
npm ERR! npm ERR! command sh -c node-gyp rebuild
npm ERR!
npm ERR! npm ERR! A complete log of this run can be found in:
npm ERR! npm ERR! /Users/antonbrams/.npm/_logs/2022-01-18T15_08_32_271Z-debug.log
npm ERR! A complete log of this run can be found in:
npm ERR! /Users/antonbrams/.npm/_logs/2022-01-18T15_08_32_359Z-debug.log```
clang: error: no such file or directory: '2/node_modules/node-window-manager/node_modules/node-addon-api'
Try to rename 'Studio 2' -> 'Studio_2'
rlly? haha, this error is so silly... but, thanks, it works!
Would you mind to close this issue since this is not about the project but about the tools used widely?