Skip to content
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

Closed
Dirken opened this issue Jul 24, 2019 · 18 comments
Closed

Node-gyp error when trying to build any module #1847

Dirken opened this issue Jul 24, 2019 · 18 comments

Comments

@Dirken
Copy link

Dirken commented Jul 24, 2019

  • Node Version: node -v v10.15.3andnpm -v` 6.4.1
  • Platform: System Windows_NT 10.0.17763
  • Module: it complains when i do yarn install or I add pretty much any module
Verbose output (from npm or node-gyp):
ricard@workstation1 MINGW64 ~/Desktop/nameOfMyProject
$ yarn install
yarn install v1.16.0
[1/4] Resolving packages...
[2/4] Fetching packages...
info There appears to be trouble with your network connection. Retrying...
info There appears to be trouble with your network connection. Retrying...
info [email protected]: The platform "win32" is incompatible with this module.
info "[email protected]" is an optional dependency and failed compatibility check. Excluding it from installation.
info @expo/[email protected]: The platform "win32" is incompatible with this module.
info "@expo/[email protected]" is an optional dependency and failed co
mpatibility check. Excluding it from installation.
info @expo/[email protected]: The platform "win32" is incompatible with this module.
info "@expo/[email protected]" is an optional dependency and failed compatibility check. Excluding it from installation.
info @expo/[email protected]: The CPU architecture "x64" is incompatible with this module.
info @expo/[email protected]: The platform "win32" is incompatible with this module.
info "@expo/[email protected]" is an optional dependency and failed compatibility check. Excluding it from installation.
info @expo/[email protected]: The platform "win32" is incompatible with this module.
info "@expo/[email protected]" is an optional dependency and failed compatibility check. Excluding it from installation.
info @expo/[email protected]: The CPU architecture "x64" is incompatiblewith this module.
info @expo/[email protected]: The platform "win32" is incompatible with this module.
info "@expo/[email protected]" is an optional dependency and failed compatibility check. Excluding it from installation.
info @expo/[email protected]: The platform "win32" is incompatible with this module.
info "@expo/[email protected]" is an optional dependency and failed compatibility check. Excluding it from installation.
info @expo/[email protected]: The CPU architecture "x64" is incompatible with this module.
info @expo/[email protected]: The platform "win32" is incompatible with this module.
info "@expo/[email protected]" is an optional dependency and failed compatibility check. Excluding it from installation.
info @expo/[email protected]: The CPU architecture "x64" is incompatible with this module.
info @expo/[email protected]: The platform "win32" is incompatible with this module.
info "@expo/[email protected]" is an optional dependency and failed compatibility check. Excluding it from installation.
info @expo/[email protected]: The CPU architecture "x64" is incompatible with this module.
info @expo/[email protected]: The platform "win32" is incompatible with this module.
info "@expo/[email protected]" is an optional dependency and failed compatibility check. Excluding it from installation.
info @expo/[email protected]: The platform "win32" is incompatible with this module.
info "@expo/[email protected]" is an optional dependency and failed compatibility check. Excluding it from installation.
info @expo/[email protected]: The CPU architecture "x64" is incompatible with this module.
info "@expo/[email protected]" is an optional dependency and failedcompatibility check. Excluding it from installation.
info @expo/[email protected]: The platform "win32" is incompatible with this module.
info "@expo/[email protected]" is an optional dependency and failed compatibility check. Excluding it from installation.
info @google-cloud/[email protected]: The engine "node" is incompatible with this module. Expected version "~6". Got "10.15.3"
info "@google-cloud/[email protected]" is an optional dependency and failed compatibility check. Excluding it from installation.
[3/4] Linking dependencies...
warning "expo > [email protected]" has incorrect peer dependency "[email protected]".
warning "expo > [email protected]" has incorrect peer dependency "react-native@^0.44.1".
warning "firebase > @firebase/[email protected]" has unmet peer dependency "@firebase/app-types@^0.1.0".
warning "firebase > @firebase/[email protected]" has unmet peer dependency "@firebase/app-types@^0.1.0".
warning "firebase > @firebase/[email protected]" has unmet peer dependency "@firebase/app-types@^0.1.0".
warning "firebase > @firebase/[email protected]" has unmet peer dependency "@firebase/app-types@^0.1.0".
warning "firebase > @firebase/auth > @firebase/[email protected]" has unmet peer dependency "@firebase/app-types@^0.1.0".
warning "firebase > @firebase/database > @firebase/[email protected]" has unmet peer dependency "@firebase/app-types@^0.1.0".
warning "firebase > @firebase/firestore > @firebase/[email protected]" has unmet peer dependency "@firebase/app-types@^0.1.0".
warning "firebase > @firebase/functions > @firebase/[email protected]" has unmet peer dependency "@firebase/[email protected]".
warning "firebase > @firebase/messaging > @firebase/[email protected]" has unmet peer dependency "@firebase/app-types@^0.1.0".
warning "firebase > @firebase/storage > @firebase/[email protected]" has unmet peer dependency "@firebase/app-types@^0.1.0".
warning " > [email protected]" has unmet peer dependency "prop-types@^15.0.0 || ^16.0.0".
warning " > [email protected]" has unmet peer dependency "[email protected]".warning "react-i18next > [email protected]" has unmet peer dependency "prop-types@^15.0.0".
warning " > [email protected]" has incorrect peer dependency "react-native-svg@^6.2.1".
warning "react-navigation > [email protected]" has unmet peer dependency "prop-types@^15.0.0".
warning "jest-expo > [email protected]" has incorrect peer dependency "react@^16.6.3".
[4/4] Building fresh packages...
[-/8] ⢀ waiting...
[-/8] ⢀ waiting...
[6/8] ⠠ iltorb
[7/8] ⠠ node-zopfli
warning Error running install script for optional dependency: "C:\\Users\\ricard\\Desktop\\nameOfMyProject\\node_modules\\shrink-ray\\node_modules\\iltorb: Command f
ailed.
Exit code: 7
Command: detect-libc prebuild-install || node-gyp rebuild
Arguments:
Directory: C:\\Users\\ricard\\Desktop\\nameOfMyProject\\node_modules\\shrink-ray\
\node_modules\\iltorb
Output:
prebuild-install WARN install No prebuilt binaries found (target=10.15.3 runtime=node arch=x64 platform=win32)
gyp info it worked if it ends with ok
gyp info using [email protected]
gyp info using [email protected] | win32 | x64
gyp info spawn C:\\Python27\\python.exe
gyp info spawn args [ 'C:\\\\Users\\\\ricard\\\\Desktop\\\\nameOfMyProject\\\\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:\\\\Users\\\\ricard\\\\Desktop\\\\nameOfMyProject\\\\node_modules\\\\shrink-ray\\\\node_modules\\\\iltorb\\\\build\\\\config.gypi',
gyp info spawn args   '-I',
gyp info spawn args   'C:\\\\Users\\\\ricard\\\\Desktop\\\\nameOfMyProject\\\\node_modules\\\\node-gyp\\\\addon.gypi',
gyp info spawn args   '-I',
gyp info spawn args   'C:\\\\Users\\\\ricard\\\\.node-gyp\\\\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\\\\.node-gyp\\\\10.15.3',
gyp info spawn args   '-Dnode_gyp_dir=C:\\\\Users\\\\ricard\\\\Desktop\\\\nameOfMyProject\\\\node_modules\\\\node-gyp',
gyp info spawn args   '-Dnode_lib_file=C:\\\\Users\\\\ricard\\\\.node-gyp\\\\10.15.3\\\\<(target_arch)\\\\node.lib',
gyp info spawn args   '-Dmodule_root_dir=C:\\\\Users\\\\ricard\\\\Desktop\\\\nameOfMyProject\\\\node_modules\\\\shrink-ray\\\\node_modules\\\\iltorb',
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\\\\Desktop\\\\nameOfMyProject\\\\node_modules\\\\shrink-ray\\\\node_modules\\\\iltorb\\\\build',
gyp info spawn args   '-Goutput_dir=.' ]
gyp info spawn C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\Community\\MSBuild\\15.0\\Bin\\MSBuild.exe
gyp info spawn args [ 'build/binding.sln',
gyp info spawn args   '/clp:Verbosity=minimal',
gyp info spawn args   '/nologo',
gyp info spawn args   '/p:Configuration=Release;Platform=x64' ]
gyp ERR! UNCAUGHT EXCEPTION
gyp ERR! stack Error: spawn C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\Community\\MSBuild\\15.0\\Bin\\MSBuild.exe ENOENT
gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js
:240:19)
gyp ERR! stack     at onErrorNT (internal/child_process.js:415:16)
gyp ERR! stack     at process._tickCallback (internal/process/next_tick.js:63:19)
gyp ERR! System Windows_NT 10.0.17763
gyp ERR! command \"C:\\\\Program Files\\\\nodejs\\\\node.exe\" \"C:\\\\Users\\\\ricard\\\\Desktop\\\\nameOfMyProject\\\\node_modules\\\\node-gyp\\\\bin\\\\node-gyp.j
s\" \"rebuild\"
gyp ERR! cwd C:\\Users\\ricard\\Desktop\\nameOfMyProject\\node_modules\\shrink-ra
y\\node_modules\\iltorb
gyp ERR! node -v v10.15.3
gyp ERR! node-gyp -v v3.8.0
[-/8] ⢀ waiting...
[-/8] ⢀ waiting...
[-/8] ⠠ waiting...
[7/8] ⠠ node-zopfli
error C:\Users\ricard\Desktop\nameOfMyProject\node_modules\iltorb: Command failed
.
Exit code: 1
Command: node-pre-gyp install --fallback-to-build
Arguments:
Directory: C:\Users\ricard\Desktop\nameOfMyProject\node_modules\iltorb
Output:
node-pre-gyp info it worked if it ends with ok
node-pre-gyp info using [email protected]
node-pre-gyp info using [email protected] | win32 | x64
node-pre-gyp info check checked for "C:\Users\ricard\Desktop\nameOfMyProject\node_modules\iltorb\build\bindings\encode.node" (not found)
node-pre-gyp http GET https://node-iltorb.s3.amazonaws.com/iltorb/v1.3.4/node-v64-win32-x64.tar.gz
node-pre-gyp http 404 https://node-iltorb.s3.amazonaws.com/iltorb/v1.3.4/node-v64-win32-x64.tar.gz
node-pre-gyp ERR! Tried to download(404): https://node-iltorb.s3.amazonaws.com/iltorb/v1.3.4/node-v64-win32-x64.tar.gz
node-pre-gyp ERR! Pre-built binaries not found for [email protected] and [email protected] (node-v64 ABI, unknown) (falling back to source compile with node-gyp)
node-pre-gyp http 404 status code downloading tarball https://node-iltorb.s3.amazonaws.com/iltorb/v1.3.4/node-v64-win32-x64.tar.gz
node-pre-gyp ERR! Tried to download(undefined): https://node-iltorb.s3.amazonaws.com
/iltorb/v1.3.4/node-v64-win32-x64.tar.gz
node-pre-gyp ERR! Pre-built binaries not found for [email protected] and [email protected] (node-v64 ABI, unknown) (falling back to source compile with node-gyp)
node-pre-gyp http Connection closed while downloading tarball file 
gypgyp info it worked if it ends with ok
info it worked if it ends with ok
gyp info using [email protected]
gyp info using [email protected] | win32 | x64
gyp info using [email protected]
gyp info using [email protected] | win32 | x64
gyp info ok
gyp info ok
gyp info it worked if it ends with ok
gyp info it worked if it ends with ok
gyp info using [email protected]
gyp info using [email protected] | win32 | x64
gyp info using [email protected]
gyp info using [email protected] | win32 | x64
gyp info spawn C:\Python27\python.exe
gyp info spawn args [ 'C:\\Users\\ricard\\Desktop\\nameOfMyProject\\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:\\Users\\ricard\\Desktop\\nameOfMyProject\\node_modules\\iltorb\\build\\config.gypi',
gyp info spawn args   '-I',
gyp info spawn args   'C:\\Users\\ricard\\Desktop\\nameOfMyProject\\node_modules\\node-gyp\\addon.gypi',
gyp info spawn args   '-I',
gyp info spawn args   'C:\\Users\\ricard\\.node-gyp\\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\\.node-gyp\\10.15.3',
gyp info spawn args   '-Dnode_gyp_dir=C:\\Users\\ricard\\Desktop\\nameOfMyProject
\\node_modules\\node-gyp',
gyp info spawn args   '-Dnode_lib_file=C:\\Users\\ricard\\.node-gyp\\10.15.3\\<(targ
et_arch)\\node.lib',
gyp info spawn args   '-Dmodule_root_dir=C:\\Users\\ricard\\Desktop\\givme5mobilebac
kup\\node_modules\\iltorb',
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\\Desktop\\nameOfMyProject\\node_modules\
\iltorb\\build',
gyp info spawn args   '-Goutput_dir=.' ]
gyp info spawn C:\Python27\python.exe
gyp info spawn args [ 'C:\\Users\\ricard\\Desktop\\nameOfMyProject\\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:\\Users\\ricard\\Desktop\\nameOfMyProject\\node_modules\
\iltorb\\build\\config.gypi',
gyp info spawn args   '-I',
gyp info spawn args   'C:\\Users\\ricard\\Desktop\\nameOfMyProject\\node_modules\
\node-gyp\\addon.gypi',
gyp info spawn args   '-I',
gyp info spawn args   'C:\\Users\\ricard\\.node-gyp\\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\\.node-gyp\\10.15.3',
gyp info spawn args   '-Dnode_gyp_dir=C:\\Users\\ricard\\Desktop\\nameOfMyProject\\node_modules\\node-gyp',
gyp info spawn args   '-Dnode_lib_file=C:\\Users\\ricard\\.node-gyp\\10.15.3\\<(target_arch)\\node.lib',
gyp info spawn args   '-Dmodule_root_dir=C:\\Users\\ricard\\Desktop\\nameOfMyProject\\node_modules\\iltorb',
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\\Desktop\\nameOfMyProject\\node_modules\
\iltorb\\build',
gyp info spawn args   '-Goutput_dir=.' ]
gyp info ok
gyp info ok
gyp info it worked if it ends with ok
gyp info using [email protected]
gyp info using [email protected] | win32 | x64
gyp info it worked if it ends with ok
gyp info using [email protected]
gyp info using [email protected] | win32 | x64
gyp info spawn C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\15.0\Bin\MSBuild.exe
gyp info spawn args [ 'build/binding.sln',
gyp info spawn args   '/clp:Verbosity=minimal',
gyp info spawn args   '/nologo',
gyp info spawn args   '/p:Configuration=Release;Platform=x64' ]
gyp ERR! UNCAUGHT EXCEPTION
gyp ERR! stack Error: spawn C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\15.0\Bin\MSBuild.exe ENOENT
gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:240:19)
gyp ERR! stack     at onErrorNT (internal/child_process.js:415:16)
gyp ERR! stack     at process._tickCallback (internal/process/next_tick.js:63:19)
gyp ERR! System Windows_NT 10.0.17763
gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "C:\\Users\\ricard\\Desktop\\nameOfMyProject\\node_modules\\node-gyp\\bin\\node-gyp.js" "build" "--fallback-to
-build" "--module=C:\\Users\\ricard\\Desktop\\nameOfMyProject\\node_modules\\iltorb\\build\\bindings\\encode.node" "--module_name=encode" "--module_path=C:\\Users\\ricard\\Desktop\\nameOfMyProject\\node_modules\\iltorb\\build\\bindings"
gyp ERR! cwd C:\Users\ricard\Desktop\nameOfMyProject\node_modules\iltorb
gyp ERR! node -v v10.15.3
gyp ERR! node-gyp -v v3.8.0
gyp ERR! This is a bug in `node-gyp`.
gyp ERR! Try to update node-gyp and file an Issue if it does not help:
gyp ERR!     <https://github.com/nodejs/node-gyp/issues>
node-pre-gyp ERR! build error
node-pre-gyp ERR! stack Error: Failed to execute 'C:\Program Files\nodejs\node.exe C:\Users\ricard\Desktop\nameOfMyProject\node_modules\node-gyp\bin\node-gyp.js build --fallback-to-build --module=C:\Users\ricard\Desktop\nameOfMyProject\node_modules\iltorb\build\bindings\encode.node --module_name=encode --module_path=C:\Users\ric
ard\Desktop\nameOfMyProject\node_modules\iltorb\build\bindings' (7)
node-pre-gyp ERR! stack     at ChildProcess.<anonymous> (C:\Users\ricard\Desktop\nameOfMyProject\node_modules\node-pre-gyp\lib\util\compile.js:83:29)
node-pre-gyp ERR! stack     at ChildProcess.emit (events.js:189:13)
node-pre-gyp ERR! stack     at maybeClose (internal/child_process.js:970:16)
node-pre-gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:259:5)
node-pre-gyp ERR! System Windows_NT 10.0.17763
node-pre-gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "C:\\Users\\ricard\\Desktop\\nameOfMyProject\\node_modules\\node-pre-gyp\\bin\\node-pre-gyp" "install
" "--fallback-to-build"
node-pre-gyp ERR! cwd C:\Users\ricard\Desktop\nameOfMyProject\node_modules\iltorbnode-pre-gyp ERR! node -v v10.15.3
node-pre-gyp ERR! node-pre-gyp -v v0.6.39
node-pre-gyp ERR! not ok
Failed to execute 'C:\Program Files\nodejs\node.exe C:\Users\ricard\Desktop\nameOfMyProject\node_modules\node-gyp\bin\node-gyp.js build --fallback-to-build --module=C:\Users\ricard\Desktop\nameOfMyProject\node_modules\iltorb\build\bindings\encode




warning Error running install script for optional dependency: "C:\\Users\\ricard\\Desktop\\nameOfMyProject\\node_modules\\node-zopfli: Command failed.
Exit code: 1
Command: node-pre-gyp install --fallback-to-build
Arguments:
Directory: C:\\Users\\ricard\\Desktop\\nameOfMyProject\\node_modules\\node-zopfliOutput:
node-pre-gyp info it worked if it ends with ok
node-pre-gyp info using [email protected]
node-pre-gyp info using [email protected] | win32 | x64
node-pre-gyp info check checked for \"C:\\Users\\ricard\\Desktop\\nameOfMyProject\\node_modules\\node-zopfli\\lib\\binding\\node-v64-win32-x64\\zopfli.node\" (not fo
und)
node-pre-gyp http GET https://node-zopfli.s3.amazonaws.com/Release/zopfli-v1.4.0-node-v64-win32-x64.tar.gz
node-pre-gyp http 403 https://node-zopfli.s3.amazonaws.com/Release/zopfli-v1.4.0-node-v64-win32-x64.tar.gz
node-pre-gyp ERR! Tried to download(403): https://node-zopfli.s3.amazonaws.com/Release/zopfli-v1.4.0-node-v64-win32-x64.tar.gz
node-pre-gyp ERR! Pre-built binaries not found for [email protected] and [email protected] (node-v64 ABI, unknown) (falling back to source compile with node-gyp)
node-pre-gyp http 403 status code downloading tarball https://node-zopfli.s3.amazonaws.com/Release/zopfli-v1.4.0-node-v64-win32-x64.tar.gz
node-pre-gyp ERR! Tried to download(undefined): https://node-zopfli.s3.amazonaws.com/Release/zopfli-v1.4.0-node-v64-win32-x64.tar.gz
node-pre-gyp ERR! Pre-built binaries not found for [email protected] and [email protected] (node-v64 ABI, unknown) (falling back to source compile with node-gyp)
node-pre-gyp http Connection closed while downloading tarball file
gyp info it worked if it ends with ok
gyp info using [email protected]
gyp info using [email protected] | win32 | x64
gyp info it worked if it ends with ok
gyp info using [email protected]
gyp info using [email protected] | win32 | x64
gyp info ok
gyp info ok
gyp info it worked if it ends with ok
gyp info using [email protected]
gyp info using [email protected] | win32 | x64
gyp info it worked if it ends with ok
gyp info using [email protected]
gyp info using [email protected] | win32 | x64
gyp info spawn C:\\Python27\\python.exe
gyp info spawn args [ 'C:\\\\Users\\\\ricard\\\\Desktop\\\\nameOfMyProject\\\\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:\\\\Users\\\\ricard\\\\Desktop\\\\nameOfMyProject\\\\node_modules\\\\node-zopfli\\\\build\\\\config.gypi',
gyp info spawn args   '-I',
gyp info spawn args   'C:\\\\Users\\\\ricard\\\\Desktop\\\\nameOfMyProject\\\\node_modules\\\\node-gyp\\\\addon.gypi',
gyp info spawn args   '-I',
gyp info spawn args   'C:\\\\Users\\\\ricard\\\\.node-gyp\\\\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\\\\.node-gyp\\\\10.15.3',
gyp info spawn args   '-Dnode_gyp_dir=C:\\\\Users\\\\ricard\\\\Desktop\\\\nameOfMyProject\\\\node_modules\\\\node-gyp',
gyp info spawn args   '-Dnode_lib_file=C:\\\\Users\\\\ricard\\\\.node-gyp\\\\10.15.3\\\\<(target_arch)\\\\node.lib',
gyp info spawn args   '-Dmodule_root_dir=C:\\\\Users\\\\ricard\\\\Desktop\\\\nameOfMyProject\\\\node_modules\\\\node-zopfli',
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\\\\Desktop\\\\nameOfMyProject\\\\node_modules\\\\node-zopfli\\\\build',
gyp info spawn args   '-Goutput_dir=.' ]
gyp info spawn C:\\Python27\\python.exe
gyp info spawn args [ 'C:\\\\Users\\\\ricard\\\\Desktop\\\\nameOfMyProject\\\\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:\\\\Users\\\\ricard\\\\Desktop\\\\nameOfMyProject\\\\node_modules\\\\node-zopfli\\\\build\\\\config.gypi',
gyp info spawn args   '-I',
gyp info spawn args   'C:\\\\Users\\\\ricard\\\\Desktop\\\\nameOfMyProject\\\\node_modules\\\\node-gyp\\\\addon.gypi',
gyp info spawn args   '-I',
gyp info spawn args   'C:\\\\Users\\\\ricard\\\\.node-gyp\\\\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\\\\.node-gyp\\\\10.15.3',
gyp info spawn args   '-Dnode_gyp_dir=C:\\\\Users\\\\ricard\\\\Desktop\\\\nameOfMyProject\\\\node_modules\\\\node-gyp',
gyp info spawn args   '-Dnode_lib_file=C:\\\\Users\\\\ricard\\\\.node-gyp\\\\10.15.3\\\\<(target_arch)\\\\node.lib',
gyp info spawn args   '-Dmodule_root_dir=C:\\\\Users\\\\ricard\\\\Desktop\\\\nameOfMyProject\\\\node_modules\\\\node-zopfli',
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\\\\Desktop\\\\nameOfMyProject\\\\node_modules\\\\node-zopfli\\\\build',
gyp info spawn args   '-Goutput_dir=.' ]
gyp info ok
Traceback (most recent call last):
  File \"C:\\Users\\ricard\\Desktop\\nameOfMyProject\\node_modules\\node-gyp\\gyp\\gyp_main.py\", line 16, in <module>
    sys.exit(gyp.script_main())
  File \"C:\\Users\\ricard\\Desktop\\nameOfMyProject\\node_modules\\node-gyp\\gyp\\pylib\\gyp\\__init__.py\", line 545, in script_main
    return main(sys.argv[1:])
  File \"C:\\Users\\ricard\\Desktop\\nameOfMyProject\\node_modules\\node-gyp\\gyp\\pylib\\gyp\\__init__.py\", line 538, in main
    return gyp_main(args)
  File \"C:\\Users\\ricard\\Desktop\\nameOfMyProject\\node_modules\\node-gyp\\gyp\\pylib\\gyp\\__init__.py\", line 523, in gyp_main
    generator.GenerateOutput(flat_list, targets, data, params)
  File \"C:\\Users\\ricard\\Desktop\\nameOfMyProject\\node_modules\\node-gyp\\gyp\\pylib\\gyp\\generator\\msvs.py\", line 2025, in GenerateOutput
    version=msvs_version)
  File \"C:\\Users\\ricard\\Desktop\\nameOfMyProject\\node_modules\\node-gyp\\gyp\\pylib\\gyp\\MSVSNew.py\", line 213, in __init__
    self.Write()
  File \"C:\\Users\\ricard\\Desktop\\nameOfMyProject\\node_modules\\node-gyp\\gyp\\pylib\\gyp\\MSVSNew.py\", line 340, in Write
    f.close()
  File \"C:\\Users\\ricard\\Desktop\\nameOfMyProject\\node_modules\\node-gyp\\gyp\\pylib\\gyp\\common.py\", line 393, in close
    os.rename(self.tmp_path, filename)
WindowsError: [Error 183] Cannot create a file when that file already exists
gyp ERR! configure error
gyp ERR! stack Error: `gyp` failed with exit code: 1
gyp ERR! stack     at ChildProcess.onCpExit (C:\\Users\\ricard\\Desktop\\givme5mobil
ebackup\\node_modules\\node-gyp\\lib\\configure.js:345: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\\\\Desktop\\\\nameOfMyProject\\\\node_modules\\\\node-gyp\\\\bin\\\\node-gyp.j
s\" \"configure\" \"--fallback-to-build\" \"--module=C:\\\\Users\\\\ricard\\\\Desktop\\\\nameOfMyProject\\\\node_modules\\\\node-zopfli\\\\lib\\\\binding\\\\node-v64
-win32-x64\\\\zopfli.node\" \"--module_name=zopfli\" \"--module_path=C:\\\\Users\\\\ricard\\\\Desktop\\\\nameOfMyProject\\\\node_modules\\\\node-zopfli\\\\lib\\\\bin
ding\\\\node-v64-win32-x64\" \"--python=python2.7\" \"--msvs_version=2017\"gyp ERR! cwd C:\\Users\\ricard\\Desktop\\nameOfMyProject\\node_modules\\node-zopfli
gyp ERR! node -v v10.15.3
gyp ERR! node-gyp -v v3.8.0
gyp ERR! not ok
node-pre-gyp ERR! build error
node-pre-gyp ERR! stack Error: Failed to execute 'C:\\Program Files\\nodejs\\node.exe C:\\Users\\ricard\\Desktop\\nameOfMyProject\\node_modules\\node-gyp\\bin\\node-gyp.js configure --fallback-to-build --module=C:\\Users\\ricard\\Desktop\\nameOfMyProject\\node_modules\\node-zopfli\\lib\\binding\\node-v64-win32-x64\\zopfli.node --module_name=zopfli --module_path=C:\\Users\\ricard\\Desktop\\nameOfMyProject\\node_modules\\node-zopfli\\lib\\binding\\node-v64-win32-x64 --python=python2.7 --msvs_
version=2017' (1)
node-pre-gyp ERR! stack     at ChildProcess.<anonymous> (C:\\Users\\ricard\\Desktop\\nameOfMyProject\\node_modules\\node-pre-gyp\\lib\\util\\compile.js:83:29)
node-pre-gyp ERR! stack     at ChildProcess.emit (events.js:189:13)
node-pre-gyp ERR! stack     at maybeClose (internal/child_process.js:970:16)
node-pre-gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:259:5)
node-pre-gyp ERR! System Windows_NT 10.0.17763
node-pre-gyp ERR! command \"C:\\\\Program Files\\\\nodejs\\\\node.exe\" \"C:\\\\Users\\\\ricard\\\\Desktop\\\\nameOfMyProject\\\\node_modules\\\\node-pre-gyp\\\\bin\
\\\node-pre-gyp\" \"install\" \"--fallback-to-build\"
node-pre-gyp ERR! cwd C:\\Users\\ricard\\Desktop\\nameOfMyProject\\node_modules\\node-zopfli
node-pre-gyp ERR! node -v v10.15.3
node-pre-gyp ERR! node-pre-gyp -v v0.6.39
node-pre-gyp ERR! not ok
Failed to execute 'C:\\Program Files\\nodejs\\node.exe C:\\Users\\ricard\\Desktop\\nameOfMyProject\\node_modules\\node-gyp\\bin\\node-gyp.js configure --fallback-to-build --module=C:\\Users\\ricard\\Desktop\\nameOfMyProject\\node_modules\\node-zopfli\\lib\\binding\\node-v64-win32-x64\\zopfli.node --module_name=zopfli --module_path=C:\\Users\\ricard\\Desktop\\nameOfMyProject\\node_modules\\node-zopfli\\lib\\binding\\node-v64-win32-x64 --python=python2.7 --msvs_version=2017' (1)"
info This module is OPTIONAL, you can safely ignore this error

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.

@richardlau
Copy link
Member

gyp ERR! UNCAUGHT EXCEPTION
gyp ERR! stack Error: spawn C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\Community\\MSBuild\\15.0\\Bin\\MSBuild.exe ENOENT
gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js
:240:19)
gyp ERR! stack     at onErrorNT (internal/child_process.js:415:16)
gyp ERR! stack     at process._tickCallback (internal/process/next_tick.js:63:19)
gyp ERR! System Windows_NT 10.0.17763

Since you're using Visual Studio 2019 you'll need to use node-gyp 5.0.0. See #1753 (comment) for temporary update instructions.

@Dirken
Copy link
Author

Dirken commented Jul 27, 2019

gyp ERR! UNCAUGHT EXCEPTION
gyp ERR! stack Error: spawn C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\Community\\MSBuild\\15.0\\Bin\\MSBuild.exe ENOENT
gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js
:240:19)
gyp ERR! stack     at onErrorNT (internal/child_process.js:415:16)
gyp ERR! stack     at process._tickCallback (internal/process/next_tick.js:63:19)
gyp ERR! System Windows_NT 10.0.17763

Since you're using Visual Studio 2019 you'll need to use node-gyp 5.0.0. See #1753 (comment) for temporary update instructions.

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 yarn

@richardlau
Copy link
Member

I'm not that familiar with yarn. Maybe someone else who is could chime in?

@Hardhik
Copy link

Hardhik commented Jul 29, 2019

@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 node-gyp install: C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\Community\\MSBuild\\15.0\\Bin\\MSBuild.exe does not contain the MSBuild.exe

Interestingly, when you run node-gyp rebuild it invokes C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\MSBuild\Current\Bin\MSBuild.exe which exists.

So, I tried copying this MSBuild.exe to the ..15.0/Bin.. folder and it ran without any errors.
This indicates that node-gyp somehow is getting the ...15.0/Bin folder for build command but uses the 'Current/Bin` folder for rebuild and is throwing this error when it does not find it in 15.0/ folder so the build command should also ideally be using the Current/ folder's MSBuild.exe

For version 5.0.0 the node-gyp build command uses the MSBuild.exe from the /Current/... folder and works fine.

@richardlau
Copy link
Member

@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 node-gyp install: C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\Community\\MSBuild\\15.0\\Bin\\MSBuild.exe does not contain the MSBuild.exe

Interestingly, when you run node-gyp rebuild it invokes C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\MSBuild\Current\Bin\MSBuild.exe which exists.

So, I tried copying this MSBuild.exe to the ..15.0/Bin.. folder and it ran without any errors.
This indicates that node-gyp somehow is getting the ...15.0/Bin folder for build command but uses the 'Current/Bin` folder for rebuild and is throwing this error when it does not find it in 15.0/ folder so the build command should also ideally be using the Current/ folder's MSBuild.exe

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

@joaocgreis
Copy link
Member

@Hardhik node-gyp install should not run MSBuild at all, it should only download headers for the current Node version. Perhaps you meant node-gyp build?

During node-gyp configure node-gyp finds and stores the location of MSBuild to be used in node-gyp build. If you run node-gyp rebuild, both these steps happen and the right MSBuild should be found. But if you were using an older version of node-gyp and the only run node-gyp build, it fails as described. You need to run node-gyp configure or node-gyp rebuild when the version of node-gyp changes.

If this does not explain the issue you're having, please run node-gyp rebuild --silly and paste the whole output here.

@Dirken
Copy link
Author

Dirken commented Jul 30, 2019

@Hardhik node-gyp install should not run MSBuild at all, it should only download headers for the current Node version. Perhaps you meant node-gyp build?

During node-gyp configure node-gyp finds and stores the location of MSBuild to be used in node-gyp build. If you run node-gyp rebuild, both these steps happen and the right MSBuild should be found. But if you were using an older version of node-gyp and the only run node-gyp build, it fails as described. You need to run node-gyp configure or node-gyp rebuild when the version of node-gyp changes.

If this does not explain the issue you're having, please run node-gyp rebuild --silly and paste the whole output here.

This is the output that I get when I do node-gyp rebuild -silly in the path that appears to me in npm root -g. I think that it has to be related with what @Hardhik was saying.

$ 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

@Hardhik
Copy link

Hardhik commented Jul 30, 2019

@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 node-gyp rebuild --silly for you is picking up the [email protected] version but according to your yarn command, error was with [email protected]

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.

@yyforever0608
Copy link

gyp ERR! configure error
gyp ERR! stack Error: gyp failed with exit code: 1
gyp ERR! stack at ChildProcess.onCpExit (C:\Users\yy\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\yy\AppData\Roaming\npm\node_modules\node-gyp\bin\node-gyp.js" "rebuild"
gyp ERR! cwd E:\project1\main2
gyp ERR! node -v v10.15.3
gyp ERR! node-gyp -v v5.0.3

@Dirken
Copy link
Author

Dirken commented Aug 20, 2019

I've done everything we said and way more, and honestly I still struggling and I don't see any way of solving it.
Node version node -v v10.15.3
Yarn version yarn -v 1.16.0
Anything you can think of, would be appreciated

Output from yarn install &> error.txt
yarn install v1.16.0
[1/4] Resolving packages...
[2/4] Fetching packages...
info [email protected]: The platform "win32" is incompatible with this module.
info "[email protected]" is an optional dependency and failed compatibility check. Excluding it from installation.
info @expo/[email protected]: The platform "win32" is incompatible with this module.
info "@expo/[email protected]" is an optional dependency and failed compatibility check. Excluding it from installation.
info @expo/[email protected]: The platform "win32" is incompatible with this module.
info "@expo/[email protected]" is an optional dependency and failed compatibility check. Excluding it from installation.
info @expo/[email protected]: The CPU architecture "x64" is incompatible with this module.
info @expo/[email protected]: The platform "win32" is incompatible with this module.
info "@expo/[email protected]" is an optional dependency and failed compatibility check. Excluding it from installation.
info @expo/[email protected]: The platform "win32" is incompatible with this module.
info "@expo/[email protected]" is an optional dependency and failed compatibility check. Excluding it from installation.
info @expo/[email protected]: The CPU architecture "x64" is incompatible with this module.
info @expo/[email protected]: The platform "win32" is incompatible with this module.
info "@expo/[email protected]" is an optional dependency and failed compatibility check. Excluding it from installation.
info @expo/[email protected]: The platform "win32" is incompatible with this module.
info "@expo/[email protected]" is an optional dependency and failed compatibility check. Excluding it from installation.
info @expo/[email protected]: The CPU architecture "x64" is incompatible with this module.
info @expo/[email protected]: The platform "win32" is incompatible with this module.
info "@expo/[email protected]" is an optional dependency and failed compatibility check. Excluding it from installation.
info @expo/[email protected]: The CPU architecture "x64" is incompatible with this module.
info @expo/[email protected]: The platform "win32" is incompatible with this module.
info "@expo/[email protected]" is an optional dependency and failed compatibility check. Excluding it from installation.
info @expo/[email protected]: The CPU architecture "x64" is incompatible with this module.
info @expo/[email protected]: The platform "win32" is incompatible with this module.
info "@expo/[email protected]" is an optional dependency and failed compatibility check. Excluding it from installation.
info @expo/[email protected]: The platform "win32" is incompatible with this module.
info "@expo/[email protected]" is an optional dependency and failed compatibility check. Excluding it from installation.
info @expo/[email protected]: The CPU architecture "x64" is incompatible with this module.
info "@expo/[email protected]" is an optional dependency and failed compatibility check. Excluding it from installation.
info @expo/[email protected]: The platform "win32" is incompatible with this module.
info "@expo/[email protected]" is an optional dependency and failed compatibility check. Excluding it from installation.
info @google-cloud/[email protected]: The engine "node" is incompatible with this module. Expected version "~6". Got "10.15.3"
info "@google-cloud/[email protected]" is an optional dependency and failed compatibility check. Excluding it from installation.
[3/4] Linking dependencies...
warning "expo-localization > [email protected]" has unmet peer dependency "expo-react-native-adapter@~1.2.0".
warning "firebase > @firebase/[email protected]" has unmet peer dependency "@firebase/app-types@^0.1.0".
warning "firebase > @firebase/[email protected]" has unmet peer dependency "@firebase/app-types@^0.1.0".
warning "firebase > @firebase/[email protected]" has unmet peer dependency "@firebase/app-types@^0.1.0".
warning "firebase > @firebase/[email protected]" has unmet peer dependency "@firebase/app-types@^0.1.0".
warning "firebase > @firebase/auth > @firebase/[email protected]" has unmet peer dependency "@firebase/app-types@^0.1.0".
warning "firebase > @firebase/database > @firebase/[email protected]" has unmet peer dependency "@firebase/app-types@^0.1.0".
warning "firebase > @firebase/firestore > @firebase/[email protected]" has unmet peer dependency "@firebase/app-types@^0.1.0".
warning "firebase > @firebase/functions > @firebase/[email protected]" has unmet peer dependency "@firebase/[email protected]".
warning "firebase > @firebase/messaging > @firebase/[email protected]" has unmet peer dependency "@firebase/app-types@^0.1.0".
warning "firebase > @firebase/storage > @firebase/[email protected]" has unmet peer dependency "@firebase/app-types@^0.1.0".
warning " > [email protected]" has unmet peer dependency "prop-types@^15.0.0 || ^16.0.0".
warning " > [email protected]" has unmet peer dependency "[email protected]".
warning "react-i18next > [email protected]" has unmet peer dependency "prop-types@^15.0.0".
warning " > [email protected]" has incorrect peer dependency "react-native-svg@^6.2.1".
warning "react-navigation > [email protected]" has unmet peer dependency "prop-types@^15.0.0".
[4/4] Building fresh packages...
warning Error running install script for optional dependency: "C:\\Users\\ricard\\Desktop\\path\\path2\\appName-2\\appName\\node_modules\\node-zopfli: Command failed.
Exit code: 1
Command: node-pre-gyp install --fallback-to-build
Arguments: 
Directory: C:\\Users\\ricard\\Desktop\\path\\path2\\appName-2\\appName\\node_modules\\node-zopfli
Output:
node-pre-gyp info it worked if it ends with ok
node-pre-gyp info using [email protected]
node-pre-gyp info using [email protected] | win32 | x64
node-pre-gyp info check checked for \"C:\\Users\\ricard\\Desktop\\path\\path2\\appName-2\\appName\\node_modules\\node-zopfli\\lib\\binding\\node-v64-win32-x64\\zopfli.node\" (not found)
node-pre-gyp http GET https://node-zopfli.s3.amazonaws.com/Release/zopfli-v1.4.0-node-v64-win32-x64.tar.gz
node-pre-gyp http 403 https://node-zopfli.s3.amazonaws.com/Release/zopfli-v1.4.0-node-v64-win32-x64.tar.gz
node-pre-gyp ERR! Tried to download(403): https://node-zopfli.s3.amazonaws.com/Release/zopfli-v1.4.0-node-v64-win32-x64.tar.gz 
node-pre-gyp ERR! Pre-built binaries not found for [email protected] and [email protected] (node-v64 ABI, unknown) (falling back to source compile with node-gyp) 
node-pre-gyp http 403 status code downloading tarball https://node-zopfli.s3.amazonaws.com/Release/zopfli-v1.4.0-node-v64-win32-x64.tar.gz 
node-pre-gyp ERR! Tried to download(undefined): https://node-zopfli.s3.amazonaws.com/Release/zopfli-v1.4.0-node-v64-win32-x64.tar.gz 
node-pre-gyp ERR! Pre-built binaries not found for [email protected] and [email protected] (node-v64 ABI, unknown) (falling back to source compile with node-gyp) 
node-pre-gyp http Connection closed while downloading tarball file 
gyp info it worked if it ends with ok
gyp info using [email protected]
gyp info using [email protected] | win32 | x64
gyp info it worked if it ends with ok
gyp info using [email protected]
gyp info using [email protected] | win32 | x64
gyp info ok 
gyp info ok 
gyp info it worked if it ends with ok
gyp info using [email protected]
gyp info using [email protected] | win32 | x64
gyp info it worked if it ends with ok
gyp info using [email protected]
gyp info using [email protected] | win32 | x64
gyp info find Python using Python version 2.7.16 found at \"C:\\Python27\\python.exe\"
gyp info find Python using Python version 2.7.16 found at \"C:\\Python27\\python.exe\"
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 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 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\\\\Desktop\\\\path\\\\path2\\\\appName-2\\\\appName\\\\node_modules\\\\node-zopfli\\\\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\\\\Desktop\\\\path\\\\path2\\\\appName-2\\\\appName\\\\node_modules\\\\node-zopfli',
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\\\\Desktop\\\\path\\\\path2\\\\appName-2\\\\appName\\\\node_modules\\\\node-zopfli\\\\build',
gyp info spawn args   '-Goutput_dir=.' ]
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\\\\Desktop\\\\path\\\\path2\\\\appName-2\\\\appName\\\\node_modules\\\\node-zopfli\\\\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\\\\Desktop\\\\path\\\\path2\\\\appName-2\\\\appName\\\\node_modules\\\\node-zopfli',
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\\\\Desktop\\\\path\\\\path2\\\\appName-2\\\\appName\\\\node_modules\\\\node-zopfli\\\\build',
gyp info spawn args   '-Goutput_dir=.' ]
gyp info ok 
Traceback (most recent call last):
  File \"C:\\Users\\ricard\\AppData\\Roaming\\npm\\node_modules\\node-gyp\\gyp\\gyp_main.py\", line 16, in <module>
    sys.exit(gyp.script_main())
  File \"C:\\Users\\ricard\\AppData\\Roaming\\npm\\node_modules\\node-gyp\\gyp\\pylib\\gyp\\__init__.py\", line 554, in script_main
    return main(sys.argv[1:])
  File \"C:\\Users\\ricard\\AppData\\Roaming\\npm\\node_modules\\node-gyp\\gyp\\pylib\\gyp\\__init__.py\", line 547, in main
    return gyp_main(args)
  File \"C:\\Users\\ricard\\AppData\\Roaming\\npm\\node_modules\\node-gyp\\gyp\\pylib\\gyp\\__init__.py\", line 532, in gyp_main
    generator.GenerateOutput(flat_list, targets, data, params)
  File \"C:\\Users\\ricard\\AppData\\Roaming\\npm\\node_modules\\node-gyp\\gyp\\pylib\\gyp\\generator\\msvs.py\", line 2030, in GenerateOutput
    version=msvs_version)
  File \"C:\\Users\\ricard\\AppData\\Roaming\\npm\\node_modules\\node-gyp\\gyp\\pylib\\gyp\\MSVSNew.py\", line 208, in __init__
    self.Write()
  File \"C:\\Users\\ricard\\AppData\\Roaming\\npm\\node_modules\\node-gyp\\gyp\\pylib\\gyp\\MSVSNew.py\", line 335, in Write
    f.close()
  File \"C:\\Users\\ricard\\AppData\\Roaming\\npm\\node_modules\\node-gyp\\gyp\\pylib\\gyp\\common.py\", line 391, in close
    os.rename(self.tmp_path, filename)
WindowsError: [Error 183] Cannot create a file when that file already exists
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\" \"configure\" \"--fallback-to-build\" \"--module=C:\\\\Users\\\\ricard\\\\Desktop\\\\path\\\\path2\\\\appName-2\\\\appName\\\\node_modules\\\\node-zopfli\\\\lib\\\\binding\\\\node-v64-win32-x64\\\\zopfli.node\" \"--module_name=zopfli\" \"--module_path=C:\\\\Users\\\\ricard\\\\Desktop\\\\path\\\\path2\\\\appName-2\\\\appName\\\\node_modules\\\\node-zopfli\\\\lib\\\\binding\\\\node-v64-win32-x64\" \"--python=python2.7\"
gyp ERR! cwd C:\\Users\\ricard\\Desktop\\path\\path2\\appName-2\\appName\\node_modules\\node-zopfli
gyp ERR! node -v v10.15.3
gyp ERR! node-gyp -v v5.0.3
gyp ERR! not ok 
node-pre-gyp ERR! build error 
node-pre-gyp ERR! stack Error: Failed to execute 'C:\\Program Files\\nodejs\\node.exe C:/Users/ricard/AppData/Roaming/npm/node_modules/node-gyp/bin/node-gyp.js configure --fallback-to-build --module=C:\\Users\\ricard\\Desktop\\path\\path2\\appName-2\\appName\\node_modules\\node-zopfli\\lib\\binding\\node-v64-win32-x64\\zopfli.node --module_name=zopfli --module_path=C:\\Users\\ricard\\Desktop\\path\\path2\\appName-2\\appName\\node_modules\\node-zopfli\\lib\\binding\\node-v64-win32-x64 --python=python2.7' (1)
node-pre-gyp ERR! stack     at ChildProcess.<anonymous> (C:\\Users\\ricard\\Desktop\\path\\path2\\appName-2\\appName\\node_modules\\node-pre-gyp\\lib\\util\\compile.js:83:29)
node-pre-gyp ERR! stack     at ChildProcess.emit (events.js:189:13)
node-pre-gyp ERR! stack     at maybeClose (internal/child_process.js:970:16)
node-pre-gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:259:5)
node-pre-gyp ERR! System Windows_NT 10.0.17763
node-pre-gyp ERR! command \"C:\\\\Program Files\\\\nodejs\\\\node.exe\" \"C:\\\\Users\\\\ricard\\\\Desktop\\\\path\\\\path2\\\\appName-2\\\\appName\\\\node_modules\\\\node-pre-gyp\\\\bin\\\\node-pre-gyp\" \"install\" \"--fallback-to-build\"
node-pre-gyp ERR! cwd C:\\Users\\ricard\\Desktop\\path\\path2\\appName-2\\appName\\node_modules\\node-zopfli
node-pre-gyp ERR! node -v v10.15.3
node-pre-gyp ERR! node-pre-gyp -v v0.6.39
node-pre-gyp ERR! not ok 
Failed to execute 'C:\\Program Files\\nodejs\\node.exe C:/Users/ricard/AppData/Roaming/npm/node_modules/node-gyp/bin/node-gyp.js configure --fallback-to-build --module=C:\\Users\\ricard\\Desktop\\path\\path2\\appName-2\\appName\\node_modules\\node-zopfli\\lib\\binding\\node-v64-win32-x64\\zopfli.node --module_name=zopfli --module_path=C:\\Users\\ricard\\Desktop\\path\\path2\\appName-2\\appName\\node_modules\\node-zopfli\\lib\\binding\\node-v64-win32-x64 --python=python2.7' (1)"
info This module is OPTIONAL, you can safely ignore this error
error C:\Users\ricard\Desktop\path\path2\appName-2\appName\node_modules\iltorb: Command failed.
Exit code: 1
Command: node-pre-gyp install --fallback-to-build
Arguments: 
Directory: C:\Users\ricard\Desktop\path\path2\appName-2\appName\node_modules\iltorb
Output:
node-pre-gyp info it worked if it ends with ok
node-pre-gyp info using [email protected]
node-pre-gyp info using [email protected] | win32 | x64
node-pre-gyp info check checked for "C:\Users\ricard\Desktop\path\path2\appName-2\appName\node_modules\iltorb\build\bindings\encode.node" (not found)
node-pre-gyp http GET https://node-iltorb.s3.amazonaws.com/iltorb/v1.3.4/node-v64-win32-x64.tar.gz
node-pre-gyp http 404 https://node-iltorb.s3.amazonaws.com/iltorb/v1.3.4/node-v64-win32-x64.tar.gz
node-pre-gyp ERR! Tried to download(404): https://node-iltorb.s3.amazonaws.com/iltorb/v1.3.4/node-v64-win32-x64.tar.gz 
node-pre-gyp ERR! Pre-built binaries not found for [email protected] and [email protected] (node-v64 ABI, unknown) (falling back to source compile with node-gyp) 
node-pre-gyp http 404 status code downloading tarball https://node-iltorb.s3.amazonaws.com/iltorb/v1.3.4/node-v64-win32-x64.tar.gz 
node-pre-gyp ERR! Tried to download(undefined): https://node-iltorb.s3.amazonaws.com/iltorb/v1.3.4/node-v64-win32-x64.tar.gz 
node-pre-gyp ERR! Pre-built binaries not found for [email protected] and [email protected] (node-v64 ABI, unknown) (falling back to source compile with node-gyp) 
node-pre-gyp http Connection closed while downloading tarball file 
gyp info it worked if it ends with ok
gyp info using [email protected]
gyp info using [email protected] | win32 | x64
gyp info ok 
gyp info it worked if it ends with ok
gyp info using [email protected]
gyp info using [email protected] | win32 | x64
gyp info ok 
gyp info it worked if it ends with ok
gyp info using [email protected]
gyp info using [email protected] | win32 | x64
gyp info it worked if it ends with ok
gyp info using [email protected]
gyp info using [email protected] | win32 | x64
gyp info find Python using Python version 2.7.16 found at "C:\Python27\python.exe"
gyp info find Python using Python version 2.7.16 found at "C:\Python27\python.exe"
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 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\\Desktop\\path\\path2\\appName-2\\appName\\node_modules\\iltorb\\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\\Desktop\\path\\path2\\appName-2\\appName\\node_modules\\iltorb',
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\\Desktop\\path\\path2\\appName-2\\appName\\node_modules\\iltorb\\build',
gyp info spawn args   '-Goutput_dir=.' ]
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 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\\Desktop\\path\\path2\\appName-2\\appName\\node_modules\\iltorb\\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\\Desktop\\path\\path2\\appName-2\\appName\\node_modules\\iltorb',
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\\Desktop\\path\\path2\\appName-2\\appName\\node_modules\\iltorb\\build',
gyp info spawn args   '-Goutput_dir=.' ]
gyp info ok 
gyp info ok 
gyp info it worked if it ends with ok
gyp info using [email protected]
gyp info using [email protected] | win32 | x64
gyp info it worked if it ends with ok
gyp info using [email protected]
gyp info using [email protected] | win32 | x64
gyp info spawn C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Current\Bin\MSBuild.exe
gyp info spawn args [ 'build/binding.sln',
gyp info spawn args   '/clp:Verbosity=minimal',
gyp info spawn args   '/nologo',
gyp info spawn args   '/p:Configuration=Release;Platform=x64' ]
gyp info spawn C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Current\Bin\MSBuild.exe
gyp info spawn args [ 'build/binding.sln',
gyp info spawn args   '/clp:Verbosity=minimal',
gyp info spawn args   '/nologo',
gyp info spawn args   '/p:Configuration=Release;Platform=x64' ]
Building the projects in this solution one at a time. To enable parallel build, please add the "-m" switch.
Building the projects in this solution one at a time. To enable parallel build, please add the "-m" switch.
  dictionary.c
  backward_references.c
  backward_references_hq.c
  bit_cost.c
  block_splitter.c
  brotli_bit_stream.c
  cluster.c
  compress_fragment.c
  dictionary.c
  backward_references.c
  backward_references_hq.c
  bit_cost.c
  block_splitter.c
  brotli_bit_stream.c
  cluster.c
  compress_fragment.c
  C:\Users\ricard\Desktop\path\path2\appName-2\appName\node_modules\iltorb\brotli\enc\brotli_bit_stream.c : fatal error C1083: Cannot open compiler generated file: 'C:\Users\ricard\Desktop\path\path2\appName-2\appName\node_modules\iltorb\build\Release\obj\encode\brotli_bit_stream.obj': Permission denied
  compress_fragment_two_pass.c
  C:\Users\ricard\Desktop\path\path2\appName-2\appName\node_modules\iltorb\brotli\enc\cluster.c : fatal error C1083: Cannot open compiler generated file: 'C:\Users\ricard\Desktop\path\path2\appName-2\appName\node_modules\iltorb\build\Release\obj\encode\cluster.obj': Permission denied
  compress_fragment_two_pass.c
  C:\Users\ricard\Desktop\path\path2\appName-2\appName\node_modules\iltorb\brotli\common\dictionary.c : fatal error C1083: Cannot open compiler generated file: 'C:\Users\ricard\Desktop\path\path2\appName-2\appName\node_modules\iltorb\build\Release\obj\encode\dictionary.obj': Permission denied
  dictionary_hash.c
  encode.c
  dictionary_hash.c
  encode.c
  entropy_encode.c
  C:\Users\ricard\Desktop\path\path2\appName-2\appName\node_modules\iltorb\brotli\enc\encode.c : fatal error C1083: Cannot open compiler generated file: 'C:\Users\ricard\Desktop\path\path2\appName-2\appName\node_modules\iltorb\build\Release\obj\encode\encode.obj': Permission denied
  cl : Command line error D8040 : error creating or communicating with child process
  cl : Command line error D8040 : error creating or communicating with child process
C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\Microsoft.CppCommon.targets(429,5): error MSB6003: The specified task executable "CL.exe" could not be run. System.IO.IOException: The process cannot access the file 'C:\Users\ricard\Desktop\path\path2\appName-2\appName\node_modules\iltorb\build\Release\obj\encode\encode.tlog\CL.read.1.tlog' because it is being used by another process. [C:\Users\ricard\Desktop\path\path2\appName-2\appName\node_modules\iltorb\build\encode.vcxproj]
C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\Microsoft.CppCommon.targets(429,5): error MSB6003:    at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath) [C:\Users\ricard\Desktop\path\path2\appName-2\appName\node_modules\iltorb\build\encode.vcxproj]
C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\Microsoft.CppCommon.targets(429,5): error MSB6003:    at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost) [C:\Users\ricard\Desktop\path\path2\appName-2\appName\node_modules\iltorb\build\encode.vcxproj]
C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\Microsoft.CppCommon.targets(429,5): error MSB6003:    at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options) [C:\Users\ricard\Desktop\path\path2\appName-2\appName\node_modules\iltorb\build\encode.vcxproj]
C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\Microsoft.CppCommon.targets(429,5): error MSB6003:    at Microsoft.Build.Shared.FileUtilities.OpenWrite(String path, Boolean append, Encoding encoding) [C:\Users\ricard\Desktop\path\path2\appName-2\appName\node_modules\iltorb\build\encode.vcxproj]
C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\Microsoft.CppCommon.targets(429,5): error MSB6003:    at Microsoft.Build.Utilities.CanonicalTrackedInputFiles.SaveTlog(DependencyFilter includeInTLog) [C:\Users\ricard\Desktop\path\path2\appName-2\appName\node_modules\iltorb\build\encode.vcxproj]
C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\Microsoft.CppCommon.targets(429,5): error MSB6003:    at Microsoft.Build.CPPTasks.CL.PostExecuteTool(Int32 exitCode) [C:\Users\ricard\Desktop\path\path2\appName-2\appName\node_modules\iltorb\build\encode.vcxproj]
C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\Microsoft.CppCommon.targets(429,5): error MSB6003:    at Microsoft.Build.CPPTasks.TrackedVCToolTask.ExecuteTool(String pathToTool, String responseFileCommands, String commandLineCommands) [C:\Users\ricard\Desktop\path\path2\appName-2\appName\node_modules\iltorb\build\encode.vcxproj]
C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\Microsoft.CppCommon.targets(429,5): error MSB6003:    at Microsoft.Build.Utilities.ToolTask.Execute() [C:\Users\ricard\Desktop\path\path2\appName-2\appName\node_modules\iltorb\build\encode.vcxproj]
C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\Microsoft.CppCommon.targets(429,5): error MSB6006: "CL.exe" exited with code 2. [C:\Users\ricard\Desktop\path\path2\appName-2\appName\node_modules\iltorb\build\encode.vcxproj]
  dictionary.c
  bit_reader.c
  dictionary.c
  decode.c
  huffman.c
  bit_reader.c
  decode.c
  huffman.c
  state.c
  state.c
  C:\Users\ricard\Desktop\path\path2\appName-2\appName\node_modules\iltorb\brotli\dec\state.c : fatal error C1083: Cannot open compiler generated file: 'C:\Users\ricard\Desktop\path\path2\appName-2\appName\node_modules\iltorb\build\Release\obj\decode\state.obj': Permission denied
  cl : Command line error D8040 : error creating or communicating with child process
C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\Microsoft.CppCommon.targets(429,5): error MSB6003: The specified task executable "CL.exe" could not be run. System.IO.IOException: The process cannot access the file 'C:\Users\ricard\Desktop\path\path2\appName-2\appName\node_modules\iltorb\build\Release\obj\decode\decode.tlog\CL.9700.read.1.tlog' because it is being used by another process. [C:\Users\ricard\Desktop\path\path2\appName-2\appName\node_modules\iltorb\build\decode.vcxproj]
C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\Microsoft.CppCommon.targets(429,5): error MSB6003:    at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath) [C:\Users\ricard\Desktop\path\path2\appName-2\appName\node_modules\iltorb\build\decode.vcxproj]
C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\Microsoft.CppCommon.targets(429,5): error MSB6003:    at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost) [C:\Users\ricard\Desktop\path\path2\appName-2\appName\node_modules\iltorb\build\decode.vcxproj]
C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\Microsoft.CppCommon.targets(429,5): error MSB6003:    at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost) [C:\Users\ricard\Desktop\path\path2\appName-2\appName\node_modules\iltorb\build\decode.vcxproj]
C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\Microsoft.CppCommon.targets(429,5): error MSB6003:    at System.IO.StreamWriter.CreateFile(String path, Boolean append, Boolean checkHost) [C:\Users\ricard\Desktop\path\path2\appName-2\appName\node_modules\iltorb\build\decode.vcxproj]
C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\Microsoft.CppCommon.targets(429,5): error MSB6003:    at System.IO.StreamWriter..ctor(String path, Boolean append, Encoding encoding, Int32 bufferSize, Boolean checkHost) [C:\Users\ricard\Desktop\path\path2\appName-2\appName\node_modules\iltorb\build\decode.vcxproj]
C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\Microsoft.CppCommon.targets(429,5): error MSB6003:    at System.IO.File.InternalWriteAllText(String path, String contents, Encoding encoding, Boolean checkHost) [C:\Users\ricard\Desktop\path\path2\appName-2\appName\node_modules\iltorb\build\decode.vcxproj]
C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\Microsoft.CppCommon.targets(429,5): error MSB6003:    at System.IO.File.WriteAllText(String path, String contents, Encoding encoding) [C:\Users\ricard\Desktop\path\path2\appName-2\appName\node_modules\iltorb\build\decode.vcxproj]
C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\Microsoft.CppCommon.targets(429,5): error MSB6003:    at Microsoft.Build.Utilities.CanonicalTrackedInputFiles.SaveTlog(DependencyFilter includeInTLog) [C:\Users\ricard\Desktop\path\path2\appName-2\appName\node_modules\iltorb\build\decode.vcxproj]
C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\Microsoft.CppCommon.targets(429,5): error MSB6003:    at Microsoft.Build.CPPTasks.CL.PostExecuteTool(Int32 exitCode) [C:\Users\ricard\Desktop\path\path2\appName-2\appName\node_modules\iltorb\build\decode.vcxproj]
C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\Microsoft.CppCommon.targets(429,5): error MSB6003:    at Microsoft.Build.CPPTasks.TrackedVCToolTask.ExecuteTool(String pathToTool, String responseFileCommands, String commandLineCommands) [C:\Users\ricard\Desktop\path\path2\appName-2\appName\node_modules\iltorb\build\decode.vcxproj]
C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\Microsoft.CppCommon.targets(429,5): error MSB6003:    at Microsoft.Build.Utilities.ToolTask.Execute() [C:\Users\ricard\Desktop\path\path2\appName-2\appName\node_modules\iltorb\build\decode.vcxproj]
C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\Microsoft.CppCommon.targets(429,5): error MSB6006: "CL.exe" exited with code 2. [C:\Users\ricard\Desktop\path\path2\appName-2\appName\node_modules\iltorb\build\decode.vcxproj]
gyp ERR! build error 
gyp ERR! stack Error: `C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Current\Bin\MSBuild.exe` failed with exit code: 1
gyp ERR! stack     at ChildProcess.onExit (C:\Users\ricard\AppData\Roaming\npm\node_modules\node-gyp\lib\build.js:196:23)
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" "build" "--fallback-to-build" "--module=C:\\Users\\ricard\\Desktop\\path\\path2\\appName-2\\appName\\node_modules\\iltorb\\build\\bindings\\encode.node" "--module_name=encode" "--module_path=C:\\Users\\ricard\\Desktop\\path\\path2\\appName-2\\appName\\node_modules\\iltorb\\build\\bindings"
gyp ERR! cwd C:\Users\ricard\Desktop\path\path2\appName-2\appName\node_modules\iltorb
gyp ERR! node -v v10.15.3
gyp ERR! node-gyp -v v5.0.3
gyp ERR! not ok 
node-pre-gyp ERR! build error 
node-pre-gyp ERR! stack Error: Failed to execute 'C:\Program Files\nodejs\node.exe C:/Users/ricard/AppData/Roaming/npm/node_modules/node-gyp/bin/node-gyp.js build --fallback-to-build --module=C:\Users\ricard\Desktop\path\path2\appName-2\appName\node_modules\iltorb\build\bindings\encode.node --module_name=encode --module_path=C:\Users\ricard\Desktop\path\path2\appName-2\appName\node_modules\iltorb\build\bindings' (1)
node-pre-gyp ERR! stack     at ChildProcess.<anonymous> (C:\Users\ricard\Desktop\path\path2\appName-2\appName\node_modules\node-pre-gyp\lib\util\compile.js:83:29)
node-pre-gyp ERR! stack     at ChildProcess.emit (events.js:189:13)
node-pre-gyp ERR! stack     at maybeClose (internal/child_process.js:970:16)
node-pre-gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:259:5)
node-pre-gyp ERR! System Windows_NT 10.0.17763
node-pre-gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "C:\\Users\\ricard\\Desktop\\path\\path2\\appName-2\\appName\\node_modules\\node-pre-gyp\\bin\\node-pre-gyp" "install" "--fallback-to-build"
node-pre-gyp ERR! cwd C:\Users\ricard\Desktop\path\path2\appName-2\appName\node_modules\iltorb
node-pre-gyp ERR! node -v v10.15.3
node-pre-gyp ERR! node-pre-gyp -v v0.6.39
node-pre-gyp gyp ERR! not okERR! 
 build error 
gyp ERR! stack Error: `C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Current\Bin\MSBuild.exe` failed with exit code: 1
gyp ERR! stackFailed to execute 'C:\Program Files\nodejs\node.exe C:/Users/ricard/AppData/Roaming/npm/node_modules/node-gyp/bin/node-gyp.js build --fallback-to-build --module=C:\Users\ricard\Desktop\path\path2\appName-2\appName\node_modules\iltorb\build\bindings\encode.node --module_name=encode --module_path=C:\Users\ricard\Desktop\path\path2\appName-2\appName\node_modules\iltorb\build\bindings' (1)
     at ChildProcess.onExit (C:\Users\ricard\AppData\Roaming\npm\node_modules\node-gyp\lib\build.js:196:23)
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" "build" "--fallback-to-build" "--module=C:\\Users\\ricard\\Desktop\\path\\path2\\appName-2\\appName\\node_modules\\iltorb\\build\\bindings\\encode.node" "--module_name=encode" "--module_path=C:\\Users\\ricard\\Desktop\\path\\path2\\appName-2\\appName\\node_modules\\iltorb\\build\\bindings"
gyp ERR! cwd C:\Users\ricard\Desktop\path\path2\appName-2\appName\node_modules\iltorb
gyp ERR! node -v v10.15.3
gyp ERR! node-gyp -v v5.0.3
gyp ERR! not ok
info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.

@rvagg
Copy link
Member

rvagg commented Aug 20, 2019

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 npm install might be worth a try.

@Dirken
Copy link
Author

Dirken commented Aug 20, 2019

@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**
> [email protected] install C:\Users\ricard\Desktop\path\path2\app-2\app\node_modules\iltorb
> node-pre-gyp install --fallback-to-build

node-pre-gyp ERR! Tried to download(404): https://node-iltorb.s3.amazonaws.com/iltorb/v1.3.4/node-v64-win32-x64.tar.gz 
node-pre-gyp ERR! Pre-built binaries not found for [email protected] and [email protected] (node-v64 ABI) (falling back to source compile with node-gyp) 
node-pre-gyp ERR! Tried to download(undefined): https://node-iltorb.s3.amazonaws.com/iltorb/v1.3.4/node-v64-win32-x64.tar.gz 
node-pre-gyp ERR! Pre-built binaries not found for [email protected] and [email protected] (node-v64 ABI) (falling back to source compile with node-gyp) 
Building the projects in this solution one at a time. To enable parallel build, please add the "-m" switch.
Building the projects in this solution one at a time. To enable parallel build, please add the "-m" switch.
  dictionary.c
  backward_references.c
  backward_references_hq.c
  bit_cost.c
  dictionary.c
  block_splitter.c
  backward_references.c
  backward_references_hq.c
  bit_cost.c
  block_splitter.c
  brotli_bit_stream.c
  brotli_bit_stream.c
  cluster.c
  compress_fragment.c
  cluster.c
  compress_fragment.c
  C:\Users\ricard\Desktop\path\path2\app-2\app\node_modules\iltorb\brotli\enc\cluster.c : fatal error C1083: Cannot open compiler generated file: 'C:\Users\ricard\Desktop\path\path2\app-2\app\node_modules\iltorb\build\Release\obj\encode\cluster.obj': Permission denied
  compress_fragment_two_pass.c
  C:\Users\ricard\Desktop\path\path2\app-2\app\node_modules\iltorb\brotli\enc\brotli_bit_stream.c : fatal error C1083: Cannot open compiler generated file: 'C:\Users\ricard\Desktop\path\path2\app-2\app\node_modules\iltorb\build\Release\obj\encode\brotli_bit_stream.obj': Permission denied
  compress_fragment_two_pass.c
  C:\Users\ricard\Desktop\path\path2\app-2\app\node_modules\iltorb\brotli\common\dictionary.c : fatal error C1083: Cannot open compiler generated file: 'C:\Users\ricard\Desktop\path\path2\app-2\app\node_modules\iltorb\build\Release\obj\encode\dictionary.obj': Permission denied
  dictionary_hash.c
  dictionary_hash.c
  C:\Users\ricard\Desktop\path\path2\app-2\app\node_modules\iltorb\brotli\enc\block_splitter.c : fatal error C1083: Cannot open compiler generated file: 'C:\Users\ricard\Desktop\path\path2\app-2\app\node_modules\iltorb\build\Release\obj\encode\block_splitter.obj': Permission denied
  encode.c
  C:\Users\ricard\Desktop\path\path2\app-2\app\node_modules\iltorb\brotli\enc\bit_cost.c : fatal error C1083: Cannot open compiler generated file: 'C:\Users\ricard\Desktop\path\path2\app-2\app\node_modules\iltorb\build\Release\obj\encode\bit_cost.obj': Permission denied
  C:\Users\ricard\Desktop\path\path2\app-2\app\node_modules\iltorb\brotli\enc\dictionary_hash.c : fatal error C1083: Cannot open compiler generated file: 'C:\Users\ricard\Desktop\path\path2\app-2\app\node_modules\iltorb\build\Release\obj\encode\dictionary_hash.obj': Permission denied
  cl : Command line error D8040 : error creating or communicating with child process
  cl : Command line error D8040 : error creating or communicating with child process
C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\Microsoft.CppCommon.targets(429,5): error MSB6006: "CL.exe" exited with code 2. [C:\Users\ricard\Desktop\path\path2\app-2\app\node_modules\iltorb\build\encode.vcxproj]
C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\Microsoft.CppCommon.targets(429,5): error MSB6006: "CL.exe" exited with code 2. [C:\Users\ricard\Desktop\path\path2\app-2\app\node_modules\iltorb\build\encode.vcxproj]
  dictionary.c
  bit_reader.c
  decode.c
  huffman.c
  dictionary.c
  state.c
  bit_reader.c
  decode.c
  huffman.c
  state.c
  FileTracker : error FTK1011: could not create the new file tracking log file: C:\Users\ricard\Desktop\path\path2\app-2\app\node_modules\iltorb\build\Release\obj\decode\decode.tlog\CL.read.1.tlog. The file exists.
C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\Microsoft.CppCommon.targets(429,5): error MSB6003: The specified task executable "CL.exe" could not be run. System.IO.IOException: The process cannot access the file 'C:\Users\ricard\Desktop\path\path2\app-2\app\node_modules\iltorb\build\Release\obj\decode\decode.tlog\CL.36684.write.1.tlog' because it is being used by another process. [C:\Users\ricard\Desktop\path\path2\app-2\app\node_modules\iltorb\build\decode.vcxproj]
C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\Microsoft.CppCommon.targets(429,5): error MSB6003:    at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath) [C:\Users\ricard\Desktop\path\path2\app-2\app\node_modules\iltorb\build\decode.vcxproj]
C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\Microsoft.CppCommon.targets(429,5): error MSB6003:    at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost) [C:\Users\ricard\Desktop\path\path2\app-2\app\node_modules\iltorb\build\decode.vcxproj]
C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\Microsoft.CppCommon.targets(429,5): error MSB6003:    at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost) [C:\Users\ricard\Desktop\path\path2\app-2\app\node_modules\iltorb\build\decode.vcxproj]
C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\Microsoft.CppCommon.targets(429,5): error MSB6003:    at System.IO.StreamWriter.CreateFile(String path, Boolean append, Boolean checkHost) [C:\Users\ricard\Desktop\path\path2\app-2\app\node_modules\iltorb\build\decode.vcxproj]
C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\Microsoft.CppCommon.targets(429,5): error MSB6003:    at System.IO.StreamWriter..ctor(String path, Boolean append, Encoding encoding, Int32 bufferSize, Boolean checkHost) [C:\Users\ricard\Desktop\path\path2\app-2\app\node_modules\iltorb\build\decode.vcxproj]
C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\Microsoft.CppCommon.targets(429,5): error MSB6003:    at System.IO.File.InternalWriteAllText(String path, String contents, Encoding encoding, Boolean checkHost) [C:\Users\ricard\Desktop\path\path2\app-2\app\node_modules\iltorb\build\decode.vcxproj]
C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\Microsoft.CppCommon.targets(429,5): error MSB6003:    at System.IO.File.WriteAllText(String path, String contents, Encoding encoding) [C:\Users\ricard\Desktop\path\path2\app-2\app\node_modules\iltorb\build\decode.vcxproj]
C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\Microsoft.CppCommon.targets(429,5): error MSB6003:    at Microsoft.Build.Utilities.CanonicalTrackedOutputFiles.SaveTlog(DependencyFilter includeInTLog) [C:\Users\ricard\Desktop\path\path2\app-2\app\node_modules\iltorb\build\decode.vcxproj]
C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\Microsoft.CppCommon.targets(429,5): error MSB6003:    at Microsoft.Build.CPPTasks.CL.PostExecuteTool(Int32 exitCode) [C:\Users\ricard\Desktop\path\path2\app-2\app\node_modules\iltorb\build\decode.vcxproj]
C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\Microsoft.CppCommon.targets(429,5): error MSB6003:    at Microsoft.Build.CPPTasks.TrackedVCToolTask.ExecuteTool(String pathToTool, String responseFileCommands, String commandLineCommands) [C:\Users\ricard\Desktop\path\path2\app-2\app\node_modules\iltorb\build\decode.vcxproj]
C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\Microsoft.CppCommon.targets(429,5): error MSB6003:    at Microsoft.Build.Utilities.ToolTask.Execute() [C:\Users\ricard\Desktop\path\path2\app-2\app\node_modules\iltorb\build\decode.vcxproj]
gyp ERR! build error 
gyp ERR! stack Error: `C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Current\Bin\MSBuild.exe` failed with exit code: 1
gyp ERR! stack     at ChildProcess.onExit (C:\Users\ricard\AppData\Roaming\npm\node_modules\node-gyp\lib\build.js:196:23)
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" "build" "--fallback-to-build" "--module=C:\\Users\\ricard\\Desktop\\path\\path2\\app-2\\app\\node_modules\\iltorb\\build\\bindings\\encode.node" "--module_name=encode" "--module_path=C:\\Users\\ricard\\Desktop\\path\\path2\\app-2\\app\\node_modules\\iltorb\\build\\bindings"
gyp ERR! cwd C:\Users\ricard\Desktop\path\path2\app-2\app\node_modules\iltorb
gyp ERR! node -v v10.15.3
gyp ERR! node-gyp -v v5.0.3
gyp ERR! not ok 
node-pre-gyp ERR! build error 
node-pre-gyp ERR! stack Error: Failed to execute 'C:\Program Files\nodejs\node.exe C:/Users/ricard/AppData/Roaming/npm/node_modules/node-gyp/bin/node-gyp.js build --fallback-to-build --module=C:\Users\ricard\Desktop\path\path2\app-2\app\node_modules\iltorb\build\bindings\encode.node --module_name=encode --module_path=C:\Users\ricard\Desktop\path\path2\app-2\app\node_modules\iltorb\build\bindings' (1)
node-pre-gyp ERR! stack     at ChildProcess.<anonymous> (C:\Users\ricard\Desktop\path\path2\app-2\app\node_modules\iltorb\node_modules\node-pre-gyp\lib\util\compile.js:83:29)
node-pre-gyp ERR! stack     at ChildProcess.emit (events.js:189:13)
node-pre-gyp ERR! stack     at maybeClose (internal/child_process.js:970:16)
node-pre-gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:259:5)
node-pre-gyp ERR! System Windows_NT 10.0.17763
node-pre-gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "C:\\Users\\ricard\\Desktop\\path\\path2\\app-2\\app\\node_modules\\iltorb\\node_modules\\node-pre-gyp\\bin\\node-pre-gyp" "install" "--fallback-to-build"
node-pre-gyp ERR! cwd C:\Users\ricard\Desktop\path\path2\app-2\app\node_modules\iltorb
node-pre-gyp ERR! node -v v10.15.3
node-pre-gyp ERR! node-pre-gyp -v v0.6.36
node-pre-gyp ERR! not ok 
Failed to execute 'C:\Program Files\nodejs\node.exe C:/Users/ricard/AppData/Roaming/npm/node_modules/node-gyp/bin/node-gyp.js build --fallback-to-build --module=C:\Users\ricard\Desktop\path\path2\app-2\app\node_modules\iltorb\build\bindings\encode.node --module_name=encode --module_path=C:\Users\ricard\Desktop\path\path2\app-2\app\node_modules\iltorb\build\bindings' (1)
npm WARN enoent ENOENT: no such file or directory, open 'C:\Users\ricard\Desktop\path\path2\app-2\app\node_modules\@babel\plugin-proposal-decorators\node_modules\@babel\traverse\package.json'
npm WARN enoent ENOENT: no such file or directory, open 'C:\Users\ricard\Desktop\path\path2\app-2\app\node_modules\@babel\plugin-transform-object-super\node_modules\@babel\generator\package.json'
npm WARN enoent ENOENT: no such file or directory, open 'C:\Users\ricard\Desktop\path\path2\app-2\app\node_modules\@babel\plugin-transform-object-super\node_modules\@babel\traverse\package.json'
npm WARN enoent ENOENT: no such file or directory, open 'C:\Users\ricard\Desktop\path\path2\app-2\app\node_modules\@babel\preset-env\node_modules\@babel\generator\package.json'
npm WARN enoent ENOENT: no such file or directory, open 'C:\Users\ricard\Desktop\path\path2\app-2\app\node_modules\@babel\preset-env\node_modules\@babel\template\package.json'
npm WARN enoent ENOENT: no such file or directory, open 'C:\Users\ricard\Desktop\path\path2\app-2\app\node_modules\@babel\preset-env\node_modules\@babel\traverse\package.json'
npm WARN enoent ENOENT: no such file or directory, open 'C:\Users\ricard\Desktop\path\path2\app-2\app\node_modules\babel-preset-expo\node_modules\@babel\helper-module-transforms\package.json'
npm WARN enoent ENOENT: no such file or directory, open 'C:\Users\ricard\Desktop\path\path2\app-2\app\node_modules\exp\node_modules\@expo\ngrok\package.json'
npm WARN enoent ENOENT: no such file or directory, open 'C:\Users\ricard\Desktop\path\path2\app-2\app\node_modules\exp\node_modules\react\package.json'
npm WARN enoent ENOENT: no such file or directory, open 'C:\Users\ricard\Desktop\path\path2\app-2\app\node_modules\exp\node_modules\react-redux\package.json'
npm WARN enoent ENOENT: no such file or directory, open 'C:\Users\ricard\Desktop\path\path2\app-2\app\node_modules\react-native-scripts\node_modules\react\package.json'
npm WARN enoent ENOENT: no such file or directory, open 'C:\Users\ricard\Desktop\path\path2\app-2\app\node_modules\react-native-scripts\node_modules\react-redux\package.json'
npm WARN enoent ENOENT: no such file or directory, open 'C:\Users\ricard\Desktop\path\path2\app-2\app\node_modules\babel-preset-expo\node_modules\@babel\helper-module-transforms\node_modules\@babel\template\package.json'
npm WARN @expo/[email protected] requires a peer of xdl@>=50.5.0 but none is installed. You must install peer dependencies yourself.
npm WARN [email protected] requires a peer of expo-react-native-adapter@~1.2.0 but none is installed. You must install peer dependencies yourself.
npm WARN [email protected] requires a peer of react-native-svg@^6.2.1 but none is installed. You must install peer dependencies yourself.
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: @expo/[email protected] (node_modules\@expo\ngrok-bin-darwin-ia32):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for @expo/[email protected]: wanted {"os":"darwin","arch":"ia32"} (current: {"os":"win32","arch":"x64"})
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: @expo/[email protected] (node_modules\@expo\ngrok-bin-linux-ia32):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for @expo/[email protected]: wanted {"os":"linux","arch":"ia32"} (current: {"os":"win32","arch":"x64"})
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: @expo/[email protected] (node_modules\@expo\ngrok-bin-freebsd-ia32):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for @expo/[email protected]: wanted {"os":"freebsd","arch":"ia32"} (current: {"os":"win32","arch":"x64"})
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: @expo/[email protected] (node_modules\@expo\ngrok-bin-darwin-x64):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for @expo/[email protected]: wanted {"os":"darwin","arch":"x64"} (current: {"os":"win32","arch":"x64"})
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: @expo/[email protected] (node_modules\@expo\ngrok-bin-freebsd-x64):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for @expo/[email protected]: wanted {"os":"freebsd","arch":"x64"} (current: {"os":"win32","arch":"x64"})
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: @expo/[email protected] (node_modules\@expo\ngrok-bin-linux-arm):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for @expo/[email protected]: wanted {"os":"linux","arch":"arm"} (current: {"os":"win32","arch":"x64"})
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: @expo/[email protected] (node_modules\@expo\ngrok-bin-linux-x64):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for @expo/[email protected]: wanted {"os":"linux","arch":"x64"} (current: {"os":"win32","arch":"x64"})
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: @expo/[email protected] (node_modules\@expo\ngrok-bin-linux-arm64):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for @expo/[email protected]: wanted {"os":"linux","arch":"arm64"} (current: {"os":"win32","arch":"x64"})
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: @expo/[email protected] (node_modules\@expo\ngrok-bin-sunos-x64):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for @expo/[email protected]: wanted {"os":"sunos","arch":"x64"} (current: {"os":"win32","arch":"x64"})
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: @expo/[email protected] (node_modules\@expo\ngrok-bin-win32-ia32):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for @expo/[email protected]: wanted {"os":"win32","arch":"ia32"} (current: {"os":"win32","arch":"x64"})
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: @expo/[email protected] (node_modules\expo-cli\node_modules\@expo\traveling-fastlane-darwin):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for @expo/[email protected]: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: @expo/[email protected] (node_modules\@expo\traveling-fastlane-darwin):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for @expo/[email protected]: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})

npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] install: `node-pre-gyp install --fallback-to-build`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the [email protected] install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\ricard\AppData\Roaming\npm-cache\_logs\2019-08-20T12_09_00_738Z-debug.log

@joaocgreis
Copy link
Member

@Dirken [email protected] was published in 2017. The latest under that semver-minor is [email protected] which I can compile without issues. You should investigate what is making you install such an old version, there might be a package-lock.json specifying that version somewhere. If it's actually a module you use, you should ask the module's author to update.

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.

@joaocgreis
Copy link
Member

This seems to work with yarn: #1864 (comment)

@Dirken
Copy link
Author

Dirken commented Aug 28, 2019

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.

@Dirken
Copy link
Author

Dirken commented Sep 12, 2019

Forgot to provide some status. I finally decided just to update the Expo version and create a new project from scratch and build my project there and it worked so... I was not an issue related to the package.
Thanks for all your help.

@Roms1383
Copy link

I ran into the same issue with :

  • MacOS Catalina (10.15.2)
  • Node LTS (12.16.1)
  • NPM 6.13.4
  • Yarn 1.22.4
  • bcrypt 4.0.1
    and there's a workaround quite drastic for those who wants to stick to Yarn :
rm -rf node_modules/ yarn.lock package-lock.json && npm i && yarn import && rm -f package-lock.json && yarn

So first it does a tabula rasa of whatever installed dependencies and lock files you get, then it uses NPM to install everything (as strangely enough NPM behave much better at the time I write this when it comes to install native dependencies / related to node-pre-gyp), then turns your NPM lock file into a Yarn lock file, then remove NPM lock file and proceed the rest of the install with Yarn. From that on you theorically can keep going everything with Yarn fine.

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 ❤️

@Roms1383
Copy link

Of course best solution is probably the one already stated here in issue #1779.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants