profile
viewpoint

Ask questions 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

nodejs/node-gyp

Answer questions dhBunny

I am getting this error every time I run a node-gyp command and when I try to install enmap and quick.db

gyp ERR! configure error
gyp ERR! stack Error: `gyp` failed with exit code: 1
gyp ERR! stack     at ChildProcess.onCpExit (C:\Users\matt\AppData\Roaming\npm\node_modules\node-gyp\lib\configure.js:351:16)
gyp ERR! stack     at ChildProcess.emit (events.js:210:5)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:272:12)
gyp ERR! System Windows_NT 10.0.18362
gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "C:\\Users\\ADRIÁN\\AppData\\Roaming\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js" "configure" "--msvs_version=2015"
gyp ERR! cwd C:\Users\matt\Music\Discord-All\DiscordiumBots\Customers-Bots\SCP Assistant
gyp ERR! node -v v12.13.0
gyp ERR! node-gyp -v v6.0.1
gyp ERR! not ok

I have Node.js v12.13.0, npm v6.12.0 and Python 2.7.16 In my directory, there is a binding.gyp file I created myself, it is empty as I don't know if I have to add anything.

useful!

Related questions

gyp ERR! stack Error: `make` failed with exit code: 2 hot 2
npm install error on windows 10 hot 2
Fails on every npm install on macOS Mojave hot 2
node-gyp: EPERM: operation not permitted, read hot 2
Visual Studio finder is doing a case-sensitive path check hot 2
node-gyp rebuild failed hot 1
Node gyp build fails on node v12.1.0 hot 1
node-pre-gyp build fail error while installing with `npm install` or `npm install -d` hot 1
Is this an Issue with MACOS catalina? hot 1
gyp ERR! stack Error: `make` failed with exit code: 2 hot 1
Is this an Issue with MACOS catalina? hot 1
Is this an Issue with MACOS catalina? hot 1
Not able to build in osx 10.14.2 with java 10.0.1 hot 1
TypeError: '>=' not supported between instances of 'tuple' and 'str' hot 1
Breaks with VS2019 installed hot 1
source:https://uonfu.com/
Github User Rank List