-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Node-gyp error when trying to build any module #1847
Comments
Since you're using Visual Studio 2019 you'll need to use |
Do you have any idea how could this be done in a yarn environment? I see that in npm works but I have no idea how to do it in |
I'm not that familiar with yarn. Maybe someone else who is could chime in? |
@Dirken @richardlau I see the same error for node-gyp. For version 5.0.3: However I noticed that the path mentioned in the error when you run Interestingly, when you run So, I tried copying this MSBuild.exe to the For version 5.0.0 the node-gyp build command uses the MSBuild.exe from the /Current/... folder and works fine. |
After a cursory glance at the changelog for differences between 5.0.0 and 5.0.3 the only change that looks like it affects detection is 656117cc4a. cc @joaocgreis |
@Hardhik During If this does not explain the issue you're having, please run |
This is the output that I get when I do
$ node-gyp rebuild --silly
gyp info it worked if it ends with ok
gyp verb cli [ 'C:\\Program Files\\nodejs\\node.exe',
gyp verb cli 'C:\\Users\\ricard\\AppData\\Roaming\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js',
gyp verb cli 'rebuild',
gyp verb cli '--silly' ]
gyp info using [email protected]
gyp info using [email protected] | win32 | x64
gyp verb command rebuild []
gyp verb command clean []
gyp verb clean removing "build" directory
gyp verb command configure []
gyp sill find Python runChecks: err = undefined
gyp verb find Python Python is not set from command line or npm configuration
gyp sill find Python runChecks: err = undefined
gyp verb find Python Python is not set from environment variable PYTHON
gyp sill find Python runChecks: err = undefined
gyp verb find Python checking if "python" can be used
gyp verb find Python - executing "python" to get executable path
gyp sill find Python execFile: exec = "\"python\""
gyp sill find Python execFile: args = ["\"-c\"","\"import sys; print(sys.executable);\""]
gyp sill find Python execFile: opts = {"env":{"_":"C:/Program Files/nodejs/node","WINDIR":"C:\\Windows","VBOX_MSI_INSTALL_PATH":"C:\\Program Files\\Oracle\\VirtualBox\\","USERPROFILE":"C:\\Users\\ricard","USERNAME":"ricard","USERDOMAIN_ROAMINGPROFILE":"WORKSTATION1","USERDOMAIN":"WORKSTATION1","TMPDIR":"C:\\Users\\ricard\\AppData\\Local\\Temp","TMP":"C:\\Users\\ricard\\AppData\\Local\\Temp","TERM":"dumb","TEMP":"C:\\Users\\ricard\\AppData\\Local\\Temp","SYSTEMROOT":"C:\\Windows","SYSTEMDRIVE":"C:","SSH_ASKPASS":"C:/Users/ricard/AppData/Local/Programs/Git/mingw64/libexec/git-core/git-gui--askpass","SHLVL":"2","SHELL":"C:\\Users\\ricard\\AppData\\Local\\Programs\\Git\\usr\\bin\\bash.exe","SESSIONNAME":"RDP-Tcp#1","ProgramW6432":"C:\\Program Files","ProgramFiles(x86)":"C:\\Program Files (x86)","ProgramData":"C:\\ProgramData","PWD":"C:/Users/ricard/AppData/Roaming/npm/node_modules/node-gyp","PUBLIC":"C:\\Users\\Public","PSModulePath":"C:\\Program Files\\WindowsPowerShell\\Modules;C:\\Windows\\system32\\WindowsPowerShell\\v1.0\\Modules","PROGRAMFILES":"C:\\Program Files","PROCESSOR_REVISION":"9e09","PROCESSOR_LEVEL":"6","PROCESSOR_IDENTIFIER":"Intel64 Family 6 Model 158 Stepping 9, GenuineIntel","PROCESSOR_ARCHITECTURE":"AMD64","PLINK_PROTOCOL":"ssh","PKG_CONFIG_PATH":"C:\\Users\\ricard\\AppData\\Local\\Programs\\Git\\mingw64\\lib\\pkgconfig;C:\\Users\\ricard\\AppData\\Local\\Programs\\Git\\mingw64\\share\\pkgconfig","PATHEXT":".COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC","PATH":"C:\\Users\\ricard\\bin;C:\\Users\\ricard\\AppData\\Local\\Programs\\Git\\mingw64\\bin;C:\\Users\\ricard\\AppData\\Local\\Programs\\Git\\usr\\local\\bin;C:\\Users\\ricard\\AppData\\Local\\Programs\\Git\\usr\\bin;C:\\Users\\ricard\\AppData\\Local\\Programs\\Git\\usr\\bin;C:\\Users\\ricard\\AppData\\Local\\Programs\\Git\\mingw64\\bin;C:\\Users\\ricard\\AppData\\Local\\Programs\\Git\\usr\\bin;C:\\Users\\ricard\\bin;C:\\Program Files (x86)\\Common Files\\Oracle\\Java\\javapath;C:\\ProgramData\\DockerDesktop\\version-bin;C:\\Program Files\\Docker\\Docker\\Resources\\bin;C:\\Windows\\system32;C:\\Windows;C:\\Windows\\System32\\Wbem;C:\\Windows\\System32\\WindowsPowerShell\\v1.0;C:\\Windows\\System32\\OpenSSH;C:\\Program Files\\dotnet;C:\\Program Files\\Microsoft SQL Server\\130\\Tools\\Binn;C:\\Program Files\\Microsoft SQL Server\\Client SDK\\ODBC\\170\\Tools\\Binn;C:\\Program Files\\nodejs;C:\\Program Files\\Git\\cmd;C:\\Program Files (x86)\\Yarn\\bin;C:\\Program Files (x86)\\CodeBlocks\\MinGW\\bin;C:\\Python27;C:\\Users\\ricard\\AppData\\Local\\Microsoft\\WindowsApps;C:\\Users\\ricard\\AppData\\Local\\Programs\\Git\\cmd;C:\\Users\\ricard\\AppData\\Local\\Yarn\\bin;C:\\Users\\ricard\\AppData\\Roaming\\npm;C:\\Users\\ricard\\Anaconda3\\Scripts;C:\\Users\\ricard\\Anaconda3;C:\\Users\\ricard\\AppData\\Local\\Programs\\Microsoft VS Code\\bin;C:\\Python27;C:\\Users\\ricard\\AppData\\Local\\Programs\\Git\\usr\\bin\\vendor_perl;C:\\Users\\ricard\\AppData\\Local\\Programs\\Git\\usr\\bin\\core_perl","OneDrive":"C:\\Users\\ricard\\OneDrive","OS":"Windows_NT","ORIGINAL_TMP":"C:/Users/ricard/AppData/Local/Temp","ORIGINAL_TEMP":"C:/Users/ricard/AppData/Local/Temp","ORIGINAL_PATH":"C:\\Users\\ricard\\AppData\\Local\\Programs\\Git\\mingw64\\bin;C:\\Users\\ricard\\AppData\\Local\\Programs\\Git\\usr\\bin;C:\\Users\\ricard\\bin;C:\\Program Files (x86)\\Common Files\\Oracle\\Java\\javapath;C:\\ProgramData\\DockerDesktop\\version-bin;C:\\Program Files\\Docker\\Docker\\Resources\\bin;C:\\Windows\\system32;C:\\Windows;C:\\Windows\\System32\\Wbem;C:\\Windows\\System32\\WindowsPowerShell\\v1.0;C:\\Windows\\System32\\OpenSSH;C:\\Program Files\\dotnet;C:\\Program Files\\Microsoft SQL Server\\130\\Tools\\Binn;C:\\Program Files\\Microsoft SQL Server\\Client SDK\\ODBC\\170\\Tools\\Binn;C:\\Program Files\\nodejs;C:\\Program Files\\Git\\cmd;C:\\Program Files (x86)\\Yarn\\bin;C:\\Program Files (x86)\\CodeBlocks\\MinGW\\bin;C:\\Python27;C:\\Users\\ricard\\AppData\\Local\\Microsoft\\WindowsApps;C:\\Users\\ricard\\AppData\\Local\\Programs\\Git\\cmd;C:\\Users\\ricard\\AppData\\Local\\Yarn\\bin;C:\\Users\\ricard\\AppData\\Roaming\\npm;C:\\Users\\ricard\\Anaconda3\\Scripts;C:\\Users\\ricard\\Anaconda3;C:\\Users\\ricard\\AppData\\Local\\Programs\\Microsoft VS Code\\bin;C:\\Python27","OLDPWD":"C:/Users/ricard/AppData/Roaming/npm/node_modules","NUMBER_OF_PROCESSORS":"8","MSYSTEM_PREFIX":"C:/Users/ricard/AppData/Local/Programs/Git/mingw64","MSYSTEM_CHOST":"x86_64-w64-mingw32","MSYSTEM_CARCH":"x86_64","MSYSTEM":"MINGW64","MINGW_PREFIX":"C:/Users/ricard/AppData/Local/Programs/Git/mingw64","MINGW_PACKAGE_PREFIX":"mingw-w64-x86_64","MINGW_CHOST":"x86_64-w64-mingw32","MANPATH":"C:\\Users\\ricard\\AppData\\Local\\Programs\\Git\\mingw64\\local\\man;C:\\Users\\ricard\\AppData\\Local\\Programs\\Git\\mingw64\\share\\man;C:\\Users\\ricard\\AppData\\Local\\Programs\\Git\\usr\\local\\man;C:\\Users\\ricard\\AppData\\Local\\Programs\\Git\\usr\\share\\man;C:\\Users\\ricard\\AppData\\Local\\Programs\\Git\\usr\\man;C:\\Users\\ricard\\AppData\\Local\\Programs\\Git\\share\\man","LOGONSERVER":"\\\\WORKSTATION1","LOCALAPPDATA":"C:\\Users\\ricard\\AppData\\Local","LANG":"en_GB.UTF-8","JAVA_HOME":"C:\\Program Files\\Java\\jdk-12.0.1","INFOPATH":"C:\\Users\\ricard\\AppData\\Local\\Programs\\Git\\usr\\local\\info;C:\\Users\\ricard\\AppData\\Local\\Programs\\Git\\usr\\share\\info;C:\\Users\\ricard\\AppData\\Local\\Programs\\Git\\usr\\info;C:\\Users\\ricard\\AppData\\Local\\Programs\\Git\\share\\info","HOSTNAME":"workstation1","HOMEPATH":"\\Users\\ricard","HOMEDRIVE":"C:","HOME":"C:\\Users\\ricard","GIT":";C:\\Program Files\\Git\\bin\\git.exe;C:\\Program Files\\Git\\cmd","EXEPATH":"C:\\Users\\ricard\\AppData\\Local\\Programs\\Git","DriverData":"C:\\Windows\\System32\\Drivers\\DriverData","DISPLAY":"needs-to-be-defined","CommonProgramW6432":"C:\\Program Files\\Common Files","CommonProgramFiles(x86)":"C:\\Program Files (x86)\\Common Files","CONFIG_SITE":"C:/Users/ricard/AppData/Local/Programs/Git/mingw64/etc/config.site","COMSPEC":"C:\\Windows\\system32\\cmd.exe","COMPUTERNAME":"WORKSTATION1","COMMONPROGRAMFILES":"C:\\Program Files\\Common Files","CLIENTNAME":"LAPTOP-KT36RQ3Q","APPDATA":"C:\\Users\\ricard\\AppData\\Roaming","ALLUSERSPROFILE":"C:\\ProgramData","ACLOCAL_PATH":"C:\\Users\\ricard\\AppData\\Local\\Programs\\Git\\mingw64\\share\\aclocal;C:\\Users\\ricard\\AppData\\Local\\Programs\\Git\\usr\\share\\aclocal"},"shell":true}
gyp sill find Python execFile result: err = null
gyp sill find Python execFile result: stdout = "C:\\Python27\\python.exe\r\n"
gyp sill find Python execFile result: stderr = ""
gyp verb find Python - executable path is "C:\Python27\python.exe"
gyp verb find Python - executing "C:\Python27\python.exe" to get version
gyp sill find Python execFile: exec = "C:\\Python27\\python.exe"
gyp sill find Python execFile: args = ["-c","import sys; print(\"%s.%s.%s\" % sys.version_info[:3]);"]
gyp sill find Python execFile: opts = {"env":{"_":"C:/Program Files/nodejs/node","WINDIR":"C:\\Windows","VBOX_MSI_INSTALL_PATH":"C:\\Program Files\\Oracle\\VirtualBox\\","USERPROFILE":"C:\\Users\\ricard","USERNAME":"ricard","USERDOMAIN_ROAMINGPROFILE":"WORKSTATION1","USERDOMAIN":"WORKSTATION1","TMPDIR":"C:\\Users\\ricard\\AppData\\Local\\Temp","TMP":"C:\\Users\\ricard\\AppData\\Local\\Temp","TERM":"dumb","TEMP":"C:\\Users\\ricard\\AppData\\Local\\Temp","SYSTEMROOT":"C:\\Windows","SYSTEMDRIVE":"C:","SSH_ASKPASS":"C:/Users/ricard/AppData/Local/Programs/Git/mingw64/libexec/git-core/git-gui--askpass","SHLVL":"2","SHELL":"C:\\Users\\ricard\\AppData\\Local\\Programs\\Git\\usr\\bin\\bash.exe","SESSIONNAME":"RDP-Tcp#1","ProgramW6432":"C:\\Program Files","ProgramFiles(x86)":"C:\\Program Files (x86)","ProgramData":"C:\\ProgramData","PWD":"C:/Users/ricard/AppData/Roaming/npm/node_modules/node-gyp","PUBLIC":"C:\\Users\\Public","PSModulePath":"C:\\Program Files\\WindowsPowerShell\\Modules;C:\\Windows\\system32\\WindowsPowerShell\\v1.0\\Modules","PROGRAMFILES":"C:\\Program Files","PROCESSOR_REVISION":"9e09","PROCESSOR_LEVEL":"6","PROCESSOR_IDENTIFIER":"Intel64 Family 6 Model 158 Stepping 9, GenuineIntel","PROCESSOR_ARCHITECTURE":"AMD64","PLINK_PROTOCOL":"ssh","PKG_CONFIG_PATH":"C:\\Users\\ricard\\AppData\\Local\\Programs\\Git\\mingw64\\lib\\pkgconfig;C:\\Users\\ricard\\AppData\\Local\\Programs\\Git\\mingw64\\share\\pkgconfig","PATHEXT":".COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC","PATH":"C:\\Users\\ricard\\bin;C:\\Users\\ricard\\AppData\\Local\\Programs\\Git\\mingw64\\bin;C:\\Users\\ricard\\AppData\\Local\\Programs\\Git\\usr\\local\\bin;C:\\Users\\ricard\\AppData\\Local\\Programs\\Git\\usr\\bin;C:\\Users\\ricard\\AppData\\Local\\Programs\\Git\\usr\\bin;C:\\Users\\ricard\\AppData\\Local\\Programs\\Git\\mingw64\\bin;C:\\Users\\ricard\\AppData\\Local\\Programs\\Git\\usr\\bin;C:\\Users\\ricard\\bin;C:\\Program Files (x86)\\Common Files\\Oracle\\Java\\javapath;C:\\ProgramData\\DockerDesktop\\version-bin;C:\\Program Files\\Docker\\Docker\\Resources\\bin;C:\\Windows\\system32;C:\\Windows;C:\\Windows\\System32\\Wbem;C:\\Windows\\System32\\WindowsPowerShell\\v1.0;C:\\Windows\\System32\\OpenSSH;C:\\Program Files\\dotnet;C:\\Program Files\\Microsoft SQL Server\\130\\Tools\\Binn;C:\\Program Files\\Microsoft SQL Server\\Client SDK\\ODBC\\170\\Tools\\Binn;C:\\Program Files\\nodejs;C:\\Program Files\\Git\\cmd;C:\\Program Files (x86)\\Yarn\\bin;C:\\Program Files (x86)\\CodeBlocks\\MinGW\\bin;C:\\Python27;C:\\Users\\ricard\\AppData\\Local\\Microsoft\\WindowsApps;C:\\Users\\ricard\\AppData\\Local\\Programs\\Git\\cmd;C:\\Users\\ricard\\AppData\\Local\\Yarn\\bin;C:\\Users\\ricard\\AppData\\Roaming\\npm;C:\\Users\\ricard\\Anaconda3\\Scripts;C:\\Users\\ricard\\Anaconda3;C:\\Users\\ricard\\AppData\\Local\\Programs\\Microsoft VS Code\\bin;C:\\Python27;C:\\Users\\ricard\\AppData\\Local\\Programs\\Git\\usr\\bin\\vendor_perl;C:\\Users\\ricard\\AppData\\Local\\Programs\\Git\\usr\\bin\\core_perl","OneDrive":"C:\\Users\\ricard\\OneDrive","OS":"Windows_NT","ORIGINAL_TMP":"C:/Users/ricard/AppData/Local/Temp","ORIGINAL_TEMP":"C:/Users/ricard/AppData/Local/Temp","ORIGINAL_PATH":"C:\\Users\\ricard\\AppData\\Local\\Programs\\Git\\mingw64\\bin;C:\\Users\\ricard\\AppData\\Local\\Programs\\Git\\usr\\bin;C:\\Users\\ricard\\bin;C:\\Program Files (x86)\\Common Files\\Oracle\\Java\\javapath;C:\\ProgramData\\DockerDesktop\\version-bin;C:\\Program Files\\Docker\\Docker\\Resources\\bin;C:\\Windows\\system32;C:\\Windows;C:\\Windows\\System32\\Wbem;C:\\Windows\\System32\\WindowsPowerShell\\v1.0;C:\\Windows\\System32\\OpenSSH;C:\\Program Files\\dotnet;C:\\Program Files\\Microsoft SQL Server\\130\\Tools\\Binn;C:\\Program Files\\Microsoft SQL Server\\Client SDK\\ODBC\\170\\Tools\\Binn;C:\\Program Files\\nodejs;C:\\Program Files\\Git\\cmd;C:\\Program Files (x86)\\Yarn\\bin;C:\\Program Files (x86)\\CodeBlocks\\MinGW\\bin;C:\\Python27;C:\\Users\\ricard\\AppData\\Local\\Microsoft\\WindowsApps;C:\\Users\\ricard\\AppData\\Local\\Programs\\Git\\cmd;C:\\Users\\ricard\\AppData\\Local\\Yarn\\bin;C:\\Users\\ricard\\AppData\\Roaming\\npm;C:\\Users\\ricard\\Anaconda3\\Scripts;C:\\Users\\ricard\\Anaconda3;C:\\Users\\ricard\\AppData\\Local\\Programs\\Microsoft VS Code\\bin;C:\\Python27","OLDPWD":"C:/Users/ricard/AppData/Roaming/npm/node_modules","NUMBER_OF_PROCESSORS":"8","MSYSTEM_PREFIX":"C:/Users/ricard/AppData/Local/Programs/Git/mingw64","MSYSTEM_CHOST":"x86_64-w64-mingw32","MSYSTEM_CARCH":"x86_64","MSYSTEM":"MINGW64","MINGW_PREFIX":"C:/Users/ricard/AppData/Local/Programs/Git/mingw64","MINGW_PACKAGE_PREFIX":"mingw-w64-x86_64","MINGW_CHOST":"x86_64-w64-mingw32","MANPATH":"C:\\Users\\ricard\\AppData\\Local\\Programs\\Git\\mingw64\\local\\man;C:\\Users\\ricard\\AppData\\Local\\Programs\\Git\\mingw64\\share\\man;C:\\Users\\ricard\\AppData\\Local\\Programs\\Git\\usr\\local\\man;C:\\Users\\ricard\\AppData\\Local\\Programs\\Git\\usr\\share\\man;C:\\Users\\ricard\\AppData\\Local\\Programs\\Git\\usr\\man;C:\\Users\\ricard\\AppData\\Local\\Programs\\Git\\share\\man","LOGONSERVER":"\\\\WORKSTATION1","LOCALAPPDATA":"C:\\Users\\ricard\\AppData\\Local","LANG":"en_GB.UTF-8","JAVA_HOME":"C:\\Program Files\\Java\\jdk-12.0.1","INFOPATH":"C:\\Users\\ricard\\AppData\\Local\\Programs\\Git\\usr\\local\\info;C:\\Users\\ricard\\AppData\\Local\\Programs\\Git\\usr\\share\\info;C:\\Users\\ricard\\AppData\\Local\\Programs\\Git\\usr\\info;C:\\Users\\ricard\\AppData\\Local\\Programs\\Git\\share\\info","HOSTNAME":"workstation1","HOMEPATH":"\\Users\\ricard","HOMEDRIVE":"C:","HOME":"C:\\Users\\ricard","GIT":";C:\\Program Files\\Git\\bin\\git.exe;C:\\Program Files\\Git\\cmd","EXEPATH":"C:\\Users\\ricard\\AppData\\Local\\Programs\\Git","DriverData":"C:\\Windows\\System32\\Drivers\\DriverData","DISPLAY":"needs-to-be-defined","CommonProgramW6432":"C:\\Program Files\\Common Files","CommonProgramFiles(x86)":"C:\\Program Files (x86)\\Common Files","CONFIG_SITE":"C:/Users/ricard/AppData/Local/Programs/Git/mingw64/etc/config.site","COMSPEC":"C:\\Windows\\system32\\cmd.exe","COMPUTERNAME":"WORKSTATION1","COMMONPROGRAMFILES":"C:\\Program Files\\Common Files","CLIENTNAME":"LAPTOP-KT36RQ3Q","APPDATA":"C:\\Users\\ricard\\AppData\\Roaming","ALLUSERSPROFILE":"C:\\ProgramData","ACLOCAL_PATH":"C:\\Users\\ricard\\AppData\\Local\\Programs\\Git\\mingw64\\share\\aclocal;C:\\Users\\ricard\\AppData\\Local\\Programs\\Git\\usr\\share\\aclocal"},"shell":false}
gyp sill find Python execFile result: err = null
gyp sill find Python execFile result: stdout = "2.7.16\r\n"
gyp sill find Python execFile result: stderr = ""
gyp verb find Python - version is "2.7.16"
gyp info find Python using Python version 2.7.16 found at "C:\Python27\python.exe"
gyp verb get node dir no --target version specified, falling back to host node version: 10.15.3
gyp verb command install [ '10.15.3' ]
gyp verb install input version string "10.15.3"
gyp verb install installing version: 10.15.3
gyp verb install --ensure was passed, so won't reinstall if already installed
gyp verb install version is already installed, need to check "installVersion"
gyp verb got "installVersion" 9
gyp verb needs "installVersion" 9
gyp verb install version is good
gyp verb get node dir target node version installed: 10.15.3
gyp verb build dir attempting to create "build" dir: C:\Users\ricard\AppData\Roaming\npm\node_modules\node-gyp\build
gyp verb build dir "build" dir needed to be created? C:\Users\ricard\AppData\Roaming\npm\node_modules\node-gyp\build
gyp verb find VS msvs_version not set from command line or npm config
gyp verb find VS VCINSTALLDIR not set, not running in VS Command Prompt
gyp sill find VS Running C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe [ '-ExecutionPolicy',
gyp sill find VS 'Unrestricted',
gyp sill find VS '-NoProfile',
gyp sill find VS '-Command',
gyp sill find VS '&{Add-Type -Path \'C:\\Users\\ricard\\AppData\\Roaming\\npm\\node_modules\\node-gyp\\lib\\Find-VisualStudio.cs\';[VisualStudioConfiguration.Main]::PrintJson()}' ]
gyp sill find VS PS stderr = ""
gyp sill find VS processing installation: "C:\Program Files (x86)\Microsoft Visual Studio\2019\Community"
gyp sill find VS - version match = ["16.1.29102.190","16","1"]
gyp sill find VS - found VC.MSBuild.Base
gyp sill find VS - found VC.Tools.x86.x64
gyp sill find VS - found Win10SDK: 17763
gyp sill find VS vsInfo: [ { version: '16.1.29102.190',
gyp sill find VS versionMajor: 16,
gyp sill find VS versionMinor: 1,
gyp sill find VS versionYear: 2019,
gyp sill find VS path:
gyp sill find VS 'C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\Community',
gyp sill find VS msBuild:
gyp sill find VS 'C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\Community\\MSBuild\\Current\\Bin\\MSBuild.exe',
gyp sill find VS toolset: 'v142',
gyp sill find VS sdk: '10.0.17763.0' } ]
gyp verb find VS checking VS2019 (16.1.29102.190) found at:
gyp verb find VS "C:\Program Files (x86)\Microsoft Visual Studio\2019\Community"
gyp verb find VS - found "Visual Studio C++ core features"
gyp verb find VS - found VC++ toolset: v142
gyp verb find VS - found Windows SDK: 10.0.17763.0
gyp info find VS using VS2019 (16.1.29102.190) found at:
gyp info find VS "C:\Program Files (x86)\Microsoft Visual Studio\2019\Community"
gyp info find VS run with --verbose for detailed information
gyp verb build/config.gypi creating config file
gyp sill build/config.gypi { target_defaults:
gyp sill build/config.gypi { cflags: [],
gyp sill build/config.gypi default_configuration: 'Release',
gyp sill build/config.gypi defines: [],
gyp sill build/config.gypi include_dirs: [],
gyp sill build/config.gypi libraries: [],
gyp sill build/config.gypi msbuild_toolset: 'v142',
gyp sill build/config.gypi msvs_windows_target_platform_version: '10.0.17763.0' },
gyp sill build/config.gypi variables:
gyp sill build/config.gypi { asan: 0,
gyp sill build/config.gypi build_v8_with_gn: false,
gyp sill build/config.gypi coverage: false,
gyp sill build/config.gypi debug_nghttp2: false,
gyp sill build/config.gypi enable_lto: false,
gyp sill build/config.gypi enable_pgo_generate: false,
gyp sill build/config.gypi enable_pgo_use: false,
gyp sill build/config.gypi force_dynamic_crt: 0,
gyp sill build/config.gypi host_arch: 'x64',
gyp sill build/config.gypi icu_data_in: '..\\..\\deps/icu-small\\source/data/in\\icudt62l.dat',
gyp sill build/config.gypi icu_endianness: 'l',
gyp sill build/config.gypi icu_gyp_path: 'tools/icu/icu-generic.gyp',
gyp sill build/config.gypi icu_locales: 'en,root',
gyp sill build/config.gypi icu_path: 'deps/icu-small',
gyp sill build/config.gypi icu_small: true,
gyp sill build/config.gypi icu_ver_major: '62',
gyp sill build/config.gypi nasm_version: '2.14',
gyp sill build/config.gypi node_byteorder: 'little',
gyp sill build/config.gypi node_debug_lib: false,
gyp sill build/config.gypi node_enable_d8: false,
gyp sill build/config.gypi node_enable_v8_vtunejit: false,
gyp sill build/config.gypi node_install_npm: true,
gyp sill build/config.gypi node_module_version: 64,
gyp sill build/config.gypi node_no_browser_globals: false,
gyp sill build/config.gypi node_prefix: '/usr/local',
gyp sill build/config.gypi node_release_urlbase: 'https://nodejs.org/download/release/',
gyp sill build/config.gypi node_shared: false,
gyp sill build/config.gypi node_shared_cares: false,
gyp sill build/config.gypi node_shared_http_parser: false,
gyp sill build/config.gypi node_shared_libuv: false,
gyp sill build/config.gypi node_shared_nghttp2: false,
gyp sill build/config.gypi node_shared_openssl: false,
gyp sill build/config.gypi node_shared_zlib: false,
gyp sill build/config.gypi node_tag: '',
gyp sill build/config.gypi node_target_type: 'executable',
gyp sill build/config.gypi node_use_bundled_v8: true,
gyp sill build/config.gypi node_use_dtrace: false,
gyp sill build/config.gypi node_use_etw: true,
gyp sill build/config.gypi node_use_large_pages: false,
gyp sill build/config.gypi node_use_openssl: true,
gyp sill build/config.gypi node_use_pch: false,
gyp sill build/config.gypi node_use_perfctr: true,
gyp sill build/config.gypi node_use_v8_platform: true,
gyp sill build/config.gypi node_with_ltcg: true,
gyp sill build/config.gypi node_without_node_options: false,
gyp sill build/config.gypi openssl_fips: '',
gyp sill build/config.gypi openssl_no_asm: 0,
gyp sill build/config.gypi shlib_suffix: 'so.64',
gyp sill build/config.gypi target_arch: 'x64',
gyp sill build/config.gypi v8_enable_gdbjit: 0,
gyp sill build/config.gypi v8_enable_i18n_support: 1,
gyp sill build/config.gypi v8_enable_inspector: 1,
gyp sill build/config.gypi v8_no_strict_aliasing: 1,
gyp sill build/config.gypi v8_optimized_debug: 0,
gyp sill build/config.gypi v8_promise_internal_field_count: 1,
gyp sill build/config.gypi v8_random_seed: 0,
gyp sill build/config.gypi v8_trace_maps: 0,
gyp sill build/config.gypi v8_typed_array_max_size_in_heap: 0,
gyp sill build/config.gypi v8_use_snapshot: true,
gyp sill build/config.gypi want_separate_host_toolset: 0,
gyp sill build/config.gypi nodedir:
gyp sill build/config.gypi 'C:\\Users\\ricard\\AppData\\Local\\node-gyp\\Cache\\10.15.3',
gyp sill build/config.gypi standalone_static_library: 1,
gyp sill build/config.gypi msbuild_path:
gyp sill build/config.gypi 'C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\Community\\MSBuild\\Current\\Bin\\MSBuild.exe' } }
gyp verb build/config.gypi writing out config file: C:\Users\ricard\AppData\Roaming\npm\node_modules\node-gyp\build\config.gypi
gyp verb config.gypi checking for gypi file: C:\Users\ricard\AppData\Roaming\npm\node_modules\node-gyp\config.gypi
gyp verb common.gypi checking for gypi file: C:\Users\ricard\AppData\Roaming\npm\node_modules\node-gyp\common.gypi
gyp verb gyp gyp format was not specified; forcing "msvs"
gyp info spawn C:\Python27\python.exe
gyp info spawn args [ 'C:\\Users\\ricard\\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 '-I',
gyp info spawn args 'C:\\Users\\ricard\\AppData\\Roaming\\npm\\node_modules\\node-gyp\\build\\config.gypi',
gyp info spawn args '-I',
gyp info spawn args 'C:\\Users\\ricard\\AppData\\Roaming\\npm\\node_modules\\node-gyp\\addon.gypi',
gyp info spawn args '-I',
gyp info spawn args 'C:\\Users\\ricard\\AppData\\Local\\node-gyp\\Cache\\10.15.3\\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\\ricard\\AppData\\Local\\node-gyp\\Cache\\10.15.3',
gyp info spawn args '-Dnode_gyp_dir=C:\\Users\\ricard\\AppData\\Roaming\\npm\\node_modules\\node-gyp',
gyp info spawn args '-Dnode_lib_file=C:\\Users\\ricard\\AppData\\Local\\node-gyp\\Cache\\10.15.3\\<(target_arch)\\node.lib',
gyp info spawn args '-Dmodule_root_dir=C:\\Users\\ricard\\AppData\\Roaming\\npm\\node_modules\\node-gyp',
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:\\Users\\ricard\\AppData\\Roaming\\npm\\node_modules\\node-gyp\\build',
gyp info spawn args '-Goutput_dir=.' ]
gyp: binding.gyp not found (cwd: C:\Users\ricard\AppData\Roaming\npm\node_modules\node-gyp) while trying to load binding.gyp
gyp ERR! configure error
gyp ERR! stack Error: `gyp` failed with exit code: 1
gyp ERR! stack at ChildProcess.onCpExit (C:\Users\ricard\AppData\Roaming\npm\node_modules\node-gyp\lib\configure.js:344:16)
gyp ERR! stack at ChildProcess.emit (events.js:189:13)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:248:12)
gyp ERR! System Windows_NT 10.0.17763
gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "C:\\Users\\ricard\\AppData\\Roaming\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js" "rebuild" "--silly"
gyp ERR! cwd C:\Users\ricard\AppData\Roaming\npm\node_modules\node-gyp
gyp ERR! node -v v10.15.3
gyp ERR! node-gyp -v v5.0.3
gyp ERR! not ok
|
@joaocgreis Thanks a ton for all the explanation! I figured I had some other setting in my build that demanded an older version of node-gyp and changing that seemed to fix this issue. @Dirken seems like the command Can you check if you have some hard coded dependency to use this version in your package.json files or your build steps. You can alternatively try uninstalling the node-gyp package, clean your local npm cache (Also check your AppData/Roaming/ folders for older versions of node-gyp) and then reinstall the latest version. |
gyp ERR! configure error |
I've done everything we said and way more, and honestly I still struggling and I don't see any way of solving it. Output from yarn install &> error.txt
|
windows isn't my forte but there's a lot of concurrent access / permission errors there, are you sure nothing else is working on those files? maybe reboot to be absolutely clear that there's no lingering build process? also, yarn could be the problem here, I believe we've had some yarn+windows problems reported in the past (again, not my forte, I haven't been keeping track), just an |
@rvagg I've rebooted and tried with npm install but I still have the same problems. I think I will start with a fresh project and build it from 0 because at this point I think it will be less time-consuming. The output from **npm install**
|
@Dirken In any case, the errors you're getting for 1.3.4 look like internal compiler errors, which is strange and different than mine. Can you make sure you're not filling all available disk space or memory during compilation? Also make sure the compiler is updated, in the Visual Studio Installer there will be a button to update if it's not. |
This seems to work with yarn: #1864 (comment) |
Thanks, I am now taking it a look. I was currently seeing also if it could be a VS error because I had anything left to check. Replying to what you asked before: Which module uses [email protected]?``` $ yarn why iltorb yarn why v1.16.0 [1/4] Why do we have the module "iltorb"...? [2/4] Initialising dependency graph... [3/4] Finding dependency... [4/4] Calculating file sizes... => Found "[email protected]" info Reasons this module exists - "firebase-tools#superstatic" depends on it - Hoisted from "firebase-tools#superstatic#iltorb" => Found "shrink-ray#[email protected]" info This module exists because "firebase-tools#superstatic#shrink-ray" depends on it. Done in 1.53s. ```Also I checked if Visual Studio was updated and it was. In any case I mostly installed all it could be useful just in case. I also checked if I was filling all available disk space or memory during compilation but it is not the case. Once I try what you said I'll give some status, thanks everyone for your help so far. Highly appreciated. |
Forgot to provide some status. I finally decided just to update the |
I ran into the same issue with :
rm -rf node_modules/ yarn.lock package-lock.json && npm i && yarn import && rm -f package-lock.json && yarn
Another option as you might already have guessed is, until it get fixed, to switch entirely to NPM. It's far from being perfect but it actually worked for me. Hope this will be helpful to somebody #teamyarn ❤️ |
Of course best solution is probably the one already stated here in issue #1779. |
node -v
v10.15.3and
npm -v` 6.4.1Verbose output (from npm or node-gyp):
Mainly I am having this issue since one of the modules I am using in my react native project somehow requires it. I've tried to downgrade my npm version to a version I saw it works on some people but I actually have no idea how to solve this issue or how to solve it.
My project goes from working perfectly to not working because of this so any help would be more than appreaciated. I tried many workarounds but honestly I don't know at this point how should address this issue.
The text was updated successfully, but these errors were encountered: