node-gyp: Error: `gyp` failed with exit code: 1 at ChildProcess.onCpExit
Description:
I tried to install several packages and I got the same error. The question is what happens when I want to configure: node-gyp configure --msvs_version = 2015
ERROR
gyp info it worked if it ends with ok
gyp info using node-gyp@3.6.1
gyp info using node@6.9.4 | win32 | x64
gyp info spawn C:\USER.windows-build-tools\python27\pythonw.exe
gyp info spawn args [ ‘C:\USER\AppData\Roaming\npm\node_modules\node-gyp\gyp\gyp_main.py’,
gyp info spawn args ‘binding.gyp’,
gyp info spawn args ‘-f’,
gyp info spawn args ‘msvs’,
gyp info spawn args ‘-G’,
gyp info spawn args ‘msvs_version=2015’,
gyp info spawn args ‘-I’,
gyp info spawn args ‘C:\WINDOWS\system32\build\config.gypi’,
gyp info spawn args ‘-I’,
gyp info spawn args ‘C:\USER\AppData\Roaming\npm\node_modules\node-gyp\addon.gypi’,
gyp info spawn args ‘-I’,
gyp info spawn args ‘C:\USER\.node-gyp\6.9.4\include\node\common.gypi’,
gyp info spawn args ‘-Dlibrary=shared_library’,
gyp info spawn args ‘-Dvisibility=default’,
gyp info spawn args ‘-Dnode_root_dir=C:\Users\Lizandro Zerpa\.node-gyp\6.9.4’,
gyp info spawn args ‘-Dnode_gyp_dir=C:\Users\Lizandro Zerpa\AppData\Roaming\npm\node_modules\node-gyp’,
gyp info spawn args ‘-Dnode_lib_file=node.lib’,
gyp info spawn args ‘-Dmodule_root_dir=C:\WINDOWS\system32’,
gyp info spawn args ‘-Dnode_engine=v8’,
gyp info spawn args ‘–depth=.’,
gyp info spawn args ‘–no-parallel’,
gyp info spawn args ‘–generator-output’,
gyp info spawn args ‘C:\WINDOWS\system32\build’,
gyp info spawn args ‘-Goutput_dir=.’ ]
gyp ERR! configure error
gyp ERR! stack Error: gyp
failed with exit code: 1
gyp ERR! stack at ChildProcess.onCpExit (C:\Users\Lizandro Zerpa\AppData\Roaming\npm\node_modules\node-gyp\lib\confi
gure.js:336:16)
gyp ERR! stack at emitTwo (events.js:106:13)
gyp ERR! stack at ChildProcess.emit (events.js:191:7)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:215:12)
gyp ERR! System Windows_NT 10.0.15063
gyp ERR! command “C:\nodejs\node.exe” “C:\USER\AppData\Roaming\npm\node_modules\node-gyp\bin\
node-gyp.js” “configure” “–msvs_version=2015”
gyp ERR! cwd C:\WINDOWS\system32
gyp ERR! node -v v6.9.4
gyp ERR! node-gyp -v v3.6.1
gyp ERR! not ok
About this issue
- Original URL
- State: closed
- Created 7 years ago
- Reactions: 8
- Comments: 16 (5 by maintainers)
@jeanru you need to run
node-gyp rebuild
in a directory that contains abinding.gyp
.I am getting this error every time I run a
node-gyp
command and when I try to install enmap and quick.dbI have
Node.js v12.13.0
,npm v6.12.0
andPython 2.7.16
In my directory, there is abinding.gyp
file I created myself, it is empty as I don’t know if I have to add anything.