Errors while installing react native packages using yarn - react-native

Can someone help me with these errors while installing the packages using yarn.
I am using react native in the frontend and Django in the backend and for the database Postgres. I am running on WSL2 too and using node v16.13.1.
What can be the problem causing all of these errors?
Here are the errors in WSL
Error running install script for optional dependency: "/mnt/e/myProjects/LastVersion/Project/node_modules/sqlite3: Command failed.
Exit code: 1
Command: node-pre-gyp install --fallback-to-build
Arguments:
Directory: /mnt/e/myProjects/LastVersion/Project/node_modules/sqlite3
Output:
node-pre-gyp info it worked if it ends with ok
node-pre-gyp info using node-pre-gyp#0.11.0
node-pre-gyp info using node#16.13.1 | linux | x64
node-pre-gyp WARN Using request for node-pre-gyp https download
node-pre-gyp info check checked for \"/mnt/e/myProjects/LastVersion/Project/node_modules/sqlite3/lib/binding/node-v93-linux-x64/node_sqlite3.node\" (not found)
node-pre-gyp http GET https://mapbox-node-binary.s3.amazonaws.com/sqlite3/v4.2.0/node-v93-linux-x64.tar.gz
node-pre-gyp http 403 https://mapbox-node-binary.s3.amazonaws.com/sqlite3/v4.2.0/node-v93-linux-x64.tar.gz
node-pre-gyp WARN Tried to download(403): https://mapbox-node-binary.s3.amazonaws.com/sqlite3/v4.2.0/node-v93-linux-x64.tar.gz
node-pre-gyp WARN Pre-built binaries not found for sqlite3#4.2.0 and node#16.13.1 (node-v93 ABI, glibc) (falling back to source compile with node-gyp)
node-pre-gyp http 403 status code downloading tarball https://mapbox-node-binary.s3.amazonaws.com/sqlite3/v4.2.0/node-v93-linux-x64.tar.gz
gyp info it worked if it ends with ok
gyp info using node-gyp#5.1.1
gyp info using node#16.13.1 | linux | x64
gyp info ok
gyp info it worked if it ends with ok
gyp info using node-gyp#5.1.1
gyp info using node#16.13.1 | linux | x64
gyp info find Python using Python version 3.8.10 found at \"/usr/bin/python3\"
(node:25437) [DEP0150] DeprecationWarning: Setting process.config is deprecated. In the future the property will be read-only.
(Use `node --trace-deprecation ...` to show where the warning was created)
gyp info spawn /usr/bin/python3
gyp info spawn args [
gyp info spawn args '/mnt/e/myProjects/LastVersion/Project/node_modules/node-gyp/gyp/gyp_main.py',
gyp info spawn args 'binding.gyp',
gyp info spawn args '-f',
gyp info spawn args 'make',
gyp info spawn args '-I',
gyp info spawn args '/mnt/e/myProjects/LastVersion/Project/node_modules/sqlite3/build/config.gypi',
gyp info spawn args '-I',
gyp info spawn args '/mnt/e/myProjects/LastVersion/Project/node_modules/node-gyp/addon.gypi',
gyp info spawn args '-I',
gyp info spawn args '/home/user/.cache/node-gyp/16.13.1/include/node/common.gypi',
gyp info spawn args '-Dlibrary=shared_library',
gyp info spawn args '-Dvisibility=default',
gyp info spawn args '-Dnode_root_dir=/home/user/.cache/node-gyp/16.13.1',
gyp info spawn args '-Dnode_gyp_dir=/mnt/e/myProjects/LastVersion/Project/node_modules/node-gyp',
gyp info spawn args '-Dnode_lib_file=/home/user/.cache/node-gyp/16.13.1/<(target_arch)/node.lib',
gyp info spawn args '-Dmodule_root_dir=/mnt/e/myProjects/LastVersion/Project/node_modules/sqlite3',
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 'build',
gyp info spawn args '-Goutput_dir=.'
gyp info spawn args ]
gyp info ok
gyp info it worked if it ends with ok
gyp info using node-gyp#5.1.1
gyp info using node#16.13.1 | linux | x64
gyp ERR! build error
gyp ERR! stack Error: not found: make
gyp ERR! stack at getNotFoundError (/mnt/e/myProjects/LastVersion/Project/node_modules/which/which.js:13:12)
gyp ERR! stack at F (/mnt/e/myProjects/LastVersion/Project/node_modules/which/which.js:68:19)
gyp ERR! stack at E (/mnt/e/myProjects/LastVersion/Project/node_modules/which/which.js:80:29)
gyp ERR! stack at /mnt/e/myProjects/LastVersion/Project/node_modules/which/which.js:89:16
gyp ERR! stack at /mnt/e/myProjects/LastVersion/Project/node_modules/isexe/index.js:42:5
gyp ERR! stack at /mnt/e/myProjects/LastVersion/Project/node_modules/isexe/mode.js:8:5
gyp ERR! stack at FSReqCallback.oncomplete (node:fs:198:21)
gyp ERR! System Linux 5.10.16.3-microsoft-standard-WSL2
gyp ERR! command \"/home/user/.nvm/versions/node/v16.13.1/bin/node\" \"/mnt/e/myProjects/LastVersion/Project/node_modules/node-gyp/bin/node-gyp.js\" \"build\" \"--fallback-to-build\" \"--module=/mnt/e/myProjects/LastVersion/Project/node_modules/sqlite3/lib/binding/node-v93-linux-x64/node_sqlite3.node\" \"--module_name=node_sqlite3\" \"--module_path=/mnt/e/myProjects/LastVersion/Project/node_modules/sqlite3/lib/binding/node-v93-linux-x64\" \"--napi_version=8\" \"--node_abi_napi=napi\" \"--napi_build_version=0\" \"--node_napi_label=node-v93\"
gyp ERR! cwd /mnt/e/myProjects/LastVersion/Project/node_modules/sqlite3
gyp ERR! node -v v16.13.1
gyp ERR! node-gyp -v v5.1.1
gyp ERR! not ok
node-pre-gyp ERR! build error
node-pre-gyp ERR! stack Error: Failed to execute '/home/user/.nvm/versions/node/v16.13.1/bin/node /mnt/e/myProjects/LastVersion/Project/node_modules/node-gyp/bin/node-gyp.js build --fallback-to-build --module=/mnt/e/myProjects/LastVersion/Project/node_modules/sqlite3/lib/binding/node-v93-linux-x64/node_sqlite3.node --module_name=node_sqlite3 --module_path=/mnt/e/myProjects/LastVersion/Project/node_modules/sqlite3/lib/binding/node-v93-linux-x64 --napi_version=8 --node_abi_napi=napi --napi_build_version=0 --node_napi_label=node-v93' (1)
node-pre-gyp ERR! stack at ChildProcess.<anonymous> (/mnt/e/myProjects/LastVersion/Project/node_modules/node-pre-gyp/lib/util/compile.js:83:29)
node-pre-gyp ERR! stack at ChildProcess.emit (node:events:390:28)
node-pre-gyp ERR! stack at maybeClose (node:internal/child_process:1064:16)
node-pre-gyp ERR! stack at Process.ChildProcess._handle.onexit (node:internal/child_process:301:5)
node-pre-gyp ERR! System Linux 5.10.16.3-microsoft-standard-WSL2
node-pre-gyp ERR! command \"/home/user/.nvm/versions/node/v16.13.1/bin/node\" \"/mnt/e/myProjects/LastVersion/Project/node_modules/sqlite3/node_modules/.bin/node-pre-gyp\" \"install\" \"--fallback-to-build\"
node-pre-gyp ERR! cwd /mnt/e/myProjects/LastVersion/Project/node_modules/sqlite3
node-pre-gyp ERR! node -v v16.13.1
node-pre-gyp ERR! node-pre-gyp -v v0.11.0
node-pre-gyp ERR! not ok
Failed to execute '/home/user/.nvm/versions/node/v16.13.1/bin/node /mnt/e/myProjects/LastVersion/Project/node_modules/node-gyp/bin/node-gyp.js build --fallback-to-build --module=/mnt/e/myProjects/LastVersion/Project/node_modules/sqlite3/

Related

Yarn install is failing

I know i shouldn't just throw a question like this and wish i can provide more information, but i am really no idea what it is and it also my first time encounter such issue (after change to new laptop), i think currently i can only provide the error message until someone ask me to provide further info..
When I run the command yarn install at last I am getting below error, tried to install grpc also
error /Users/vishalkumar/Documents/Prudential/one-pulse-app/node_modules/grpc: Command failed.
Exit code: 1
Command: node-pre-gyp install --fallback-to-build --library=static_library
Arguments:
Directory: /Users/vishalkumar/Documents/Prudential/one-pulse-app/node_modules/grpc
Output:
node-pre-gyp info it worked if it ends with ok
node-pre-gyp info using node-pre-gyp#0.13.0
node-pre-gyp info using node#18.12.1 | darwin | x64
node-pre-gyp WARN Using needle for node-pre-gyp https download
node-pre-gyp info check checked for "/Users/vishalkumar/Documents/Prudential/one-pulse-app/node_modules/grpc/src/node/extension_binary/node-v108-darwin-x64-unknown/grpc_node.node" (not found)
node-pre-gyp http GET https://node-precompiled-binaries.grpc.io/grpc/v1.23.3/node-v108-darwin-x64-unknown.tar.gz
node-pre-gyp http 404 https://node-precompiled-binaries.grpc.io/grpc/v1.23.3/node-v108-darwin-x64-unknown.tar.gz
node-pre-gyp WARN Tried to download(404): https://node-precompiled-binaries.grpc.io/grpc/v1.23.3/node-v108-darwin-x64-unknown.tar.gz
node-pre-gyp WARN Pre-built binaries not found for grpc#1.23.3 and node#18.12.1 (node-v108 ABI, unknown) (falling back to source compile with node-gyp)
node-pre-gyp http 404 status code downloading tarball https://node-precompiled-binaries.grpc.io/grpc/v1.23.3/node-v108-darwin-x64-unknown.tar.gz
gyp info it worked if it ends with ok
gyp info using node-gyp#9.1.0
gyp info using node#18.12.1 | darwin | x64
gyp info ok
gyp info it worked if it ends with ok
gyp info using node-gyp#9.1.0
gyp info using node#18.12.1 | darwin | x64
gyp info find Python using Python version 3.9.6 found at "/Applications/Xcode.app/Contents/Developer/usr/bin/python3"
gyp info spawn /Applications/Xcode.app/Contents/Developer/usr/bin/python3
gyp info spawn args \[
gyp info spawn args '/usr/local/lib/node_modules/npm/node_modules/node-gyp/gyp/gyp_main.py',
gyp info spawn args 'binding.gyp',
gyp info spawn args '-f',
gyp info spawn args 'make',
gyp info spawn args '-I',
gyp info spawn args '/Users/vishalkumar/Documents/Prudential/one-pulse-app/node_modules/grpc/build/config.gypi',
gyp info spawn args '-I',
gyp info spawn args '/usr/local/lib/node_modules/npm/node_modules/node-gyp/addon.gypi',
gyp info spawn args '-I',
gyp info spawn args '/Users/vishalkumar/Library/Caches/node-gyp/18.12.1/include/node/common.gypi',
gyp info spawn args '-Dlibrary=shared_library',
gyp info spawn args '-Dvisibility=default',
gyp info spawn args '-Dnode_root_dir=/Users/vishalkumar/Library/Caches/node-gyp/18.12.1',
gyp info spawn args '-Dnode_gyp_dir=/usr/local/lib/node_modules/npm/node_modules/node-gyp',
gyp info spawn args '-Dnode_lib_file=/Users/vishalkumar/Library/Caches/node-gyp/18.12.1/\<(target_arch)/node.lib',
gyp info spawn args '-Dmodule_root_dir=/Users/vishalkumar/Documents/Prudential/one-pulse-app/node_modules/grpc',
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 'build',
gyp info spawn args '-Goutput_dir=.'
gyp info spawn args \]
gyp info ok
gyp info it worked if it ends with ok
gyp info using node-gyp#9.1.0
gyp info using node#18.12.1 | darwin | x64
gyp info spawn make
gyp info spawn args \[ 'BUILDTYPE=Release', '-C', 'build' \]
CXX(target) Release/obj.target/grpc/deps/grpc/src/core/lib/surface/init.o
clang: warning: using sysroot for 'iPhoneSimulator' but targeting 'MacOSX' \[-Wincompatible-sysroot\]
In file included from ../deps/grpc/src/core/lib/surface/init.cc:19:
In file included from ../deps/grpc/include/grpc/support/port_platform.h:22:
../deps/grpc/include/grpc/impl/codegen/port_platform.h:201:9: warning: 'GRPC_ARES' macro redefined \[-Wmacro-redefined\]
\#define GRPC_ARES 0
^
\<command line\>:3:9: note: previous definition is here
\#define GRPC_ARES 1
^
In file included from ../deps/grpc/src/core/lib/surface/init.cc:32:
In file included from ../deps/grpc/src/core/lib/channel/handshaker_registry.h:26:
In file included from ../deps/grpc/src/core/lib/channel/handshaker_factory.h:26:
In file included from ../deps/grpc/src/core/lib/channel/handshaker.h:35:
In file included from ../deps/grpc/src/core/lib/iomgr/tcp_server.h:30:
In file included from ../deps/grpc/src/core/lib/iomgr/resolve_address.h:26:
../deps/grpc/src/core/lib/iomgr/port.h:211:2: error: "Must define exactly one of GRPC_POSIX_SOCKET, GRPC_WINSOCK_SOCKET, GRPC_CUSTOM_SOCKET"
\#error \
^
1 warning and 1 error generated.
make: \*\*\* \[Release/obj.target/grpc/deps/grpc/src/core/lib/surface/init.o\] Error 1
gyp ERR! build error
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack at ChildProcess.onExit (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:201:23)
gyp ERR! stack at ChildProcess.emit (node:events:513:28)
gyp ERR! stack at ChildProcess.\_handle.onexit (node:internal/child_process:291:12)
gyp ERR! System Darwin 22.1.0
gyp ERR! command "/usr/local/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "build" "--fallback-to-build" "--library=static_library" "--module=/Users/vishalkumar/Documents/Prudential/one-pulse-app/node_modules/grpc/src/node/extension_binary/node-v108-darwin-x64-unknown/grpc_node.node" "--module_name=grpc_node" "--module_path=/Users/vishalkumar/Documents/Prudential/one-pulse-app/node_modules/grpc/src/node/extension_binary/node-v108-darwin-x64-unknown" "--napi_version=8" "--node_abi_napi=napi" "--napi_build_version=0" "--node_napi_label=node-v108"
gyp ERR! cwd /Users/vishalkumar/Documents/Prudential/one-pulse-app/node_modules/grpc
gyp ERR! node -v v18.12.1
gyp ERR! node-gyp -v v9.1.0
gyp ERR! not ok
node-pre-gyp ERR! build error
node-pre-gyp ERR! stack Error: Failed to execute '/usr/local/bin/node /usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js build --fallback-to-build --library=static_library --module=/Users/vishalkumar/Documents/Prudential/one-pulse-app/node_modules/grpc/src/node/extension_binary/node-v108-darwin-x64-unknown/grpc_node.node --module_name=grpc_node --module_path=/Users/vishalkumar/Documents/Prudential/one-pulse-app/node_modules/grpc/src/node/extension_binary/node-v108-darwin-x64-unknown --napi_version=8 --node_abi_napi=napi --napi_build_version=0 --node_napi_label=node-v108' (1)
node-pre-gyp ERR! stack at ChildProcess.\<anonymous\> (/Users/vishalkumar/Documents/Prudential/one-pulse-app/node_modules/node-pre-gyp/lib/util/compile.js:83:29)
node-pre-gyp ERR! stack at ChildProcess.emit (node:events:513:28)
node-pre-gyp ERR! stack at maybeClose (node:internal/child_process:1091:16)
node-pre-gyp ERR! stack at ChildProcess.\_handle.onexit (node:internal/child_process:302:5)
node-pre-gyp ERR! System Darwin 22.1.0
node-pre-gyp ERR! command "/usr/local/bin/node" "/Users/vishalkumar/Documents/Prudential/one-pulse-app/node_modules/grpc/node_modules/.bin/node-pre-gyp" "install" "--fallback-to-build" "--library=static_library"
node-pre-gyp ERR! cwd /Users/vishalkumar/Documents/Prudential/one-pulse-app/node_modules/grpc
node-pre-gyp ERR! node -v v18.12.1
node-pre-gyp ERR! node-pre-gyp -v v0.13.0
node-pre-gyp ERR! not ok
Failed to execute '/usr/local/bin/node /usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js build --fallback-to-build --library=static_library --module=/Users/vishalkumar/Documents/Prudential/one-pulse-app/node_modules/grpc/src/node/extension_binary/node-v108-d
tried yarn install command
You are using Node 18 and you are trying to install the grpc package, which was deprecated two years ago and does not support any version of Node greater than 14. The replacement for that package is #grpc/grpc-js.

npm install try but gyp ERR

I tried to install npm to convert gltf to 3d tiles, but the following error occurs.
This is the github -> https://github.com/dreamergz/gltf-to-3d-tiles
An error also occurs when using the command after running vscode as an administrator.
I am not able to solve mysql3 and gyp errors.
npm install --global --production windows-build-tools
There was a phenomenon that stopped during installation, so this also cannot be installed.
I used node 16.17
npm ERR! code 1
npm ERR! path D:\3dtile\3d-tiles-validator-main\tools\node_modules\sqlite3
npm ERR! command failed
npm ERR! command C:\WINDOWS\system32\cmd.exe /d /s /c C:\Users\userA\AppData\Local\Temp\install-6df9eb3f.cmd
npm ERR! �� �ַ���� ������Ʈ�� �� ���� �ϳ��� �����մϴ�. ���� ���带 ����Ϸ��� "/m" ����ġ�� �߰��ϼ���.
npm ERR! unpack_sqlite_dep
npm ERR! ������ ��θ� ã�� �� �����ϴ�.
npm ERR! C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\Common7\IDE\VC\VCTargets\Microsoft.CppCommon.targets(209,5): error MSB6006: "cmd.exe"��(��) ����Ǿ����ϴ�(�ڵ�: 1). [D:\3dtile\3d-tiles-validator-main\tools\node_modules\sqlite3\build\deps\action_before_build.vcxproj]
npm ERR! Failed to execute 'C:\Program Files\nodejs\node.exe C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js build --fallback-to-build --module=D:\3dtile\3d-tiles-validator-main\tools\node_modules\sqlite3\lib\binding\node-v93-win32-x64\node_sqlite3.node --module_name=node_sqlite3 --module_path=D:\3dtile\3d-tiles-validator-main\tools\node_modules\sqlite3\lib\binding\node-v93-win32-x64 --napi_version=8 --node_abi_napi=napi --napi_build_version=0 --node_napi_label=node-v93' (1)
npm ERR! node-pre-gyp info it worked if it ends with ok
npm ERR! node-pre-gyp info using node-pre-gyp#0.11.0
npm ERR! node-pre-gyp info using node#16.17.1 | win32 | x64
npm ERR! node-pre-gyp WARN Using request for node-pre-gyp https download
npm ERR! node-pre-gyp info check checked for "D:\3dtile\3d-tiles-validator-main\tools\node_modules\sqlite3\lib\binding\node-v93-win32-x64\node_sqlite3.node" (not found)
npm ERR! node-pre-gyp http GET https://mapbox-node-binary.s3.amazonaws.com/sqlite3/v4.2.0/node-v93-win32-x64.tar.gz
npm ERR! node-pre-gyp http 403 https://mapbox-node-binary.s3.amazonaws.com/sqlite3/v4.2.0/node-v93-win32-x64.tar.gz
npm ERR! node-pre-gyp WARN Tried to download(403): https://mapbox-node-binary.s3.amazonaws.com/sqlite3/v4.2.0/node-v93-win32-x64.tar.gz
npm ERR! node-pre-gyp WARN Pre-built binaries not found for sqlite3#4.2.0 and node#16.17.1 (node-v93 ABI, unknown) (falling back to source compile with node-gyp)
npm ERR! node-pre-gyp http 403 status code downloading tarball https://mapbox-node-binary.s3.amazonaws.com/sqlite3/v4.2.0/node-v93-win32-x64.tar.gz
npm ERR! gyp info it worked if it ends with ok
npm ERR! gyp info using node-gyp#9.0.0
npm ERR! gyp info using node#16.17.1 | win32 | x64
npm ERR! gyp info ok
npm ERR! gyp info it worked if it ends with ok
npm ERR! gyp info using node-gyp#9.0.0
npm ERR! gyp info using node#16.17.1 | win32 | x64
npm ERR! gyp info find Python using Python version 3.10.2 found at "C:\Users\userA\AppData\Local\Programs\Python\Python310\python.exe"
npm ERR! gyp info find VS using VS2017 (15.9.28307.2094) found at:
npm ERR! gyp info find VS "C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools"
npm ERR! gyp info find VS run with --verbose for detailed information
npm ERR! gyp info spawn C:\Users\userA\AppData\Local\Programs\Python\Python310\python.exe
npm ERR! gyp info spawn args [
npm ERR! gyp info spawn args 'C:\\Program Files\\nodejs\\node_modules\\npm\\node_modules\\node-gyp\\gyp\\gyp_main.py',
npm ERR! gyp info spawn args 'binding.gyp',
npm ERR! gyp info spawn args '-f',
npm ERR! gyp info spawn args 'msvs',
npm ERR! gyp info spawn args '-I',
npm ERR! gyp info spawn args 'D:\\3dtile\\3d-tiles-validator-main\\tools\\node_modules\\sqlite3\\build\\config.gypi',
npm ERR! gyp info spawn args '-I',
npm ERR! gyp info spawn args 'C:\\Program Files\\nodejs\\node_modules\\npm\\node_modules\\node-gyp\\addon.gypi',
npm ERR! gyp info spawn args '-I',
npm ERR! gyp info spawn args 'C:\\Users\\userA\\AppData\\Local\\node-gyp\\Cache\\16.17.1\\include\\node\\common.gypi',
npm ERR! gyp info spawn args '-Dlibrary=shared_library',
npm ERR! gyp info spawn args '-Dvisibility=default',
npm ERR! gyp info spawn args '-Dnode_root_dir=C:\\Users\\userA\\AppData\\Local\\node-gyp\\Cache\\16.17.1',
npm ERR! gyp info spawn args '-Dnode_gyp_dir=C:\\Program Files\\nodejs\\node_modules\\npm\\node_modules\\node-gyp',
npm ERR! gyp info spawn args '-Dnode_lib_file=C:\\\\Users\\\\userA\\\\AppData\\\\Local\\\\node-gyp\\\\Cache\\\\16.17.1\\\\<(target_arch)\\\\node.lib',
npm ERR! gyp info spawn args '-Dmodule_root_dir=D:\\3dtile\\3d-tiles-validator-main\\tools\\node_modules\\sqlite3',
npm ERR! gyp info spawn args '-Dnode_engine=v8',
npm ERR! gyp info spawn args '--depth=.',
npm ERR! gyp info spawn args '--no-parallel',
npm ERR! gyp info spawn args '--generator-output',
npm ERR! gyp info spawn args 'D:\\3dtile\\3d-tiles-validator-main\\tools\\node_modules\\sqlite3\\build',
npm ERR! gyp info spawn args '-Goutput_dir=.'
npm ERR! gyp info spawn args ]
npm ERR! gyp info ok
npm ERR! gyp info it worked if it ends with ok
npm ERR! gyp info using node-gyp#9.0.0
npm ERR! gyp info using node#16.17.1 | win32 | x64
npm ERR! gyp info spawn C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\MSBuild\15.0\Bin\MSBuild.exe
npm ERR! gyp info spawn args [
npm ERR! gyp info spawn args 'build/binding.sln',
npm ERR! gyp info spawn args '/clp:Verbosity=minimal',
npm ERR! gyp info spawn args '/nologo',
npm ERR! gyp info spawn args '/p:Configuration=Release;Platform=x64'
npm ERR! gyp info spawn args ]
npm ERR! gyp ERR! build error
npm ERR! gyp ERR! stack Error: `C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\MSBuild\15.0\Bin\MSBuild.exe` failed with exit code: 1
npm ERR! gyp ERR! stack at ChildProcess.onExit (C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\build.js:194:23)
npm ERR! gyp ERR! stack at ChildProcess.emit (node:events:513:28)
npm ERR! gyp ERR! stack at Process.ChildProcess._handle.onexit (node:internal/child_process:291:12)
npm ERR! gyp ERR! System Windows_NT 10.0.19043
npm ERR! gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js" "build" "--fallback-to-build" "--module=D:\\3dtile\\3d-tiles-validator-main\\tools\\node_modules\\sqlite3\\lib\\binding\\node-v93-win32-x64\\node_sqlite3.node" "--module_name=node_sqlite3" "--module_path=D:\\3dtile\\3d-tiles-validator-main\\tools\\node_modules\\sqlite3\\lib\\binding\\node-v93-win32-x64" "--napi_version=8" "--node_abi_napi=napi" "--napi_build_version=0" "--node_napi_label=node-v93"
npm ERR! gyp ERR! cwd D:\3dtile\3d-tiles-validator-main\tools\node_modules\sqlite3
npm ERR! gyp ERR! node -v v16.17.1
npm ERR! gyp ERR! node-gyp -v v9.0.0
npm ERR! gyp ERR! not ok
npm ERR! node-pre-gyp ERR! build error
npm ERR! node-pre-gyp ERR! stack Error: Failed to execute 'C:\Program Files\nodejs\node.exe C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js build --fallback-to-build --module=D:\3dtile\3d-tiles-validator-main\tools\node_modules\sqlite3\lib\binding\node-v93-win32-x64\node_sqlite3.node --module_name=node_sqlite3 --module_path=D:\3dtile\3d-tiles-validator-main\tools\node_modules\sqlite3\lib\binding\node-v93-win32-x64 --napi_version=8 --node_abi_napi=napi --napi_build_version=0 --node_napi_label=node-v93' (1)
npm ERR! node-pre-gyp ERR! stack at ChildProcess.<anonymous> (D:\3dtile\3d-tiles-validator-main\tools\node_modules\node-pre-gyp\lib\util\compile.js:83:29)
npm ERR! node-pre-gyp ERR! stack at ChildProcess.emit (node:events:513:28)
npm ERR! node-pre-gyp ERR! stack at maybeClose (node:internal/child_process:1093:16)
npm ERR! node-pre-gyp ERR! stack at Process.ChildProcess._handle.onexit (node:internal/child_process:302:5)
npm ERR! node-pre-gyp ERR! System Windows_NT 10.0.19043
npm ERR! node-pre-gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "D:\\3dtile\\3d-tiles-validator-main\\tools\\node_modules\\node-pre-gyp\\bin\\node-pre-gyp" "install" "--fallback-to-build"
npm ERR! node-pre-gyp ERR! cwd D:\3dtile\3d-tiles-validator-main\tools\node_modules\sqlite3
npm ERR! node-pre-gyp ERR! node -v v16.17.1
npm ERR! node-pre-gyp ERR! node-pre-gyp -v v0.11.0
npm ERR! node-pre-gyp ERR! not ok
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\userA\AppData\Local\npm-cache\_logs\2022-09-30T01_45_55_140Z-debug-0.log

Getting yarn install gyp error with #vscode/sqlite3

Computer : MacBook Pro (16-inch, 2019) - Intel I7
OS : Monterey 12.3.1
Python Version : 3.8.0
Node Version : v14.17.6
Node-gyp : v7.1.2
I was able to run yarn install from this project before, but after an update I am having this issue. I have tried:
Deleting node_modules folder and cloning the repo again: Did not work.
Cleaning npm cache : Did not work.
Deleting yarn.lock and package.json.lock files and re-running everything : Did not work.
Deleting the ~/.node-gyp folder : Did not work.
Deleting ~/.npmrc file : Did not work.
[5/5] 🔨 Building fresh packages...
[-/13] ⠐ waiting...
[-/13] ⠐ waiting...
[10/13] ⠐ #vscode/sqlite3
[11/13] ⠐ nodegit
error /Users/matspeda/Documents/GitHub/hm-backstage/node_modules/#vscode/sqlite3: Command failed.
Exit code: 1
Command: node-gyp rebuild
Arguments:
Directory: /Users/matspeda/Documents/GitHub/hm-backstage/node_modules/#vscode/sqlite3
Output:
gyp info it worked if it ends with ok
gyp info using node-gyp#7.1.2
gyp info using node#14.17.6 | darwin | x64
gyp info find Python using Python version 3.8.0 found at "/Library/Frameworks/Python.framework/Versions/3.8/bin/python3"
gyp info spawn /Library/Frameworks/Python.framework/Versions/3.8/bin/python3
gyp info spawn args [
gyp info spawn args '/Users/matspeda/Documents/GitHub/hm-backstage/node_modules/#npmcli/run-script/node_modules/node-gyp/gyp/gyp_main.py',
gyp info spawn args 'binding.gyp',
gyp info spawn args '-f',
gyp info spawn args 'make',
gyp info spawn args '-I',
gyp info spawn args '/Users/matspeda/Documents/GitHub/hm-backstage/node_modules/#vscode/sqlite3/build/config.gypi',
gyp info spawn args '-I',
gyp info spawn args '/Users/matspeda/Documents/GitHub/hm-backstage/node_modules/#npmcli/run-script/node_modules/node-gyp/addon.gypi',
gyp info spawn args '-I',
gyp info spawn args '/Users/matspeda/Library/Caches/node-gyp/14.17.6/include/node/common.gypi',
gyp info spawn args '-Dlibrary=shared_library',
gyp info spawn args '-Dvisibility=default',
gyp info spawn args '-Dnode_root_dir=/Users/matspeda/Library/Caches/node-gyp/14.17.6',
gyp info spawn args '-Dnode_gyp_dir=/Users/matspeda/Documents/GitHub/hm-backstage/node_modules/#npmcli/run-script/node_modules/node-gyp',
gyp info spawn args '-Dnode_lib_file=/Users/matspeda/Library/Caches/node-gyp/14.17.6/<(target_arch)/node.lib',
gyp info spawn args '-Dmodule_root_dir=/Users/matspeda/Documents/GitHub/hm-backstage/node_modules/#vscode/sqlite3',
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 'build',
gyp info spawn args '-Goutput_dir=.'
gyp info spawn args ]
gyp info spawn make
gyp info spawn args [ 'BUILDTYPE=Release', '-C', 'build' ]
CC(target) Release/obj.target/nothing/../../node-addon-api/nothing.o
LIBTOOL-STATIC Release/nothing.a
env: python: No such file or directory
make: *** [Release/nothing.a] Error 127
gyp ERR! build error
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack at ChildProcess.onExit (/Users/matspeda/Documents/GitHub/hm-backstage/node_modules/#npmcli/run-script/node_modules/node-gyp/lib/build.js:194:23)
gyp ERR! stack at ChildProcess.emit (events.js:400:28)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:277:12)
gyp ERR! System Darwin 21.4.0
gyp ERR! command "/Users/matspeda/.nvm/versions/node/v14.17.6/bin/node" "/Users/matspeda/Documents/GitHub/hm-backstage/node_modules/.bin/node-gyp" "rebuild"
gyp ERR! cwd /Users/matspeda/Documents/GitHub/hm-backstage/node_modules/#vscode/sqlite3
gyp ERR! node -v v14.17.6
warning Error running install script for optional dependency: "/Users/matspeda/Documents/GitHub/hm-backstage/node_modules/cpu-features: Command failed.
Exit code: 1
Command: node buildcheck.js > buildcheck.gypi && node-gyp rebuild
Arguments:
Directory: /Users/matspeda/Documents/GitHub/hm-backstage/node_modules/cpu-features
Output:
gyp info it worked if it ends with ok
gyp info using node-gyp#7.1.2
gyp info using node#14.17.6 | darwin | x64
gyp info find Python using Python version 3.8.0 found at \"/Library/Frameworks/Python.framework/Versions/3.8/bin/python3\"
gyp info spawn /Library/Frameworks/Python.framework/Versions/3.8/bin/python3
gyp info spawn args [
gyp info spawn args '/Users/matspeda/Documents/GitHub/hm-backstage/node_modules/#npmcli/run-script/node_modules/node-gyp/gyp/gyp_main.py',
gyp info spawn args 'binding.gyp',
gyp info spawn args '-f',
gyp info spawn args 'make',
gyp info spawn args '-I',
gyp info spawn args '/Users/matspeda/Documents/GitHub/hm-backstage/node_modules/cpu-features/build/config.gypi',
gyp info spawn args '-I',
gyp info spawn args '/Users/matspeda/Documents/GitHub/hm-backstage/node_modules/#npmcli/run-script/node_modules/node-gyp/addon.gypi',
gyp info spawn args '-I',
gyp info spawn args '/Users/matspeda/Library/Caches/node-gyp/14.17.6/include/node/common.gypi',
gyp info spawn args '-Dlibrary=shared_library',
gyp info spawn args '-Dvisibility=default',
gyp info spawn args '-Dnode_root_dir=/Users/matspeda/Library/Caches/node-gyp/14.17.6',
gyp info spawn args '-Dnode_gyp_dir=/Users/matspeda/Documents/GitHub/hm-backstage/node_modules/#npmcli/run-script/node_modules/node-gyp',
gyp info spawn args '-Dnode_lib_file=/Users/matspeda/Library/Caches/node-gyp/14.17.6/<(target_arch)/node.lib',
gyp info spawn args '-Dmodule_root_dir=/Users/matspeda/Documents/GitHub/hm-backstage/node_modules/cpu-features',
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 'build',
gyp info spawn args '-Goutput_dir=.'
gyp info spawn args ]
gyp info spawn make
gyp info spawn args [ 'BUILDTYPE=Release', '-C', 'build' ]
CC(target) Release/obj.target/cpu_features/deps/cpu_features/src/impl_aarch64_linux_or_android.o
CC(target) Release/obj.target/cpu_features/deps/cpu_features/src/impl_arm_linux_or_android.o
CC(target) Release/obj.target/cpu_features/deps/cpu_features/src/impl_mips_linux_or_android.o
CC(target) Release/obj.target/cpu_features/deps/cpu_features/src/impl_ppc_linux.o
CC(target) Release/obj.target/cpu_features/deps/cpu_features/src/impl_x86_freebsd.o
CC(target) Release/obj.target/cpu_features/deps/cpu_features/src/impl_x86_linux_or_android.o
CC(target) Release/obj.target/cpu_features/deps/cpu_features/src/impl_x86_macos.o
CC(target) Release/obj.target/cpu_features/deps/cpu_features/src/impl_x86_windows.o
CC(target) Release/obj.target/cpu_features/deps/cpu_features/src/filesystem.o
CC(target) Release/obj.target/cpu_features/deps/cpu_features/src/stack_line_reader.o
CC(target) Release/obj.target/cpu_features/deps/cpu_features/src/string_view.o
LIBTOOL-STATIC Release/cpu_features.a
env: python: No such file or directory
make: *** [Release/cpu_features.a] Error 127
gyp ERR! build error
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack at ChildProcess.onExit (/Users/matspeda/Documents/GitHub/hm-backstage/node_modules/#npmcli/run-script/node_modules/node-gyp/lib/build.js:194:23)
gyp ERR! stack at ChildProcess.emit (events.js:400:28)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:277:12)
gyp ERR! System Darwin 21.4.0
gyp ERR! command \"/Users/matspeda/.nvm/versions/node/v14.17.6/bin/node\" \"/Users/matspeda/Documents/GitHub/hm-backstage/node_modules/.bin/node-gyp\" \"rebuild\"
gyp ERR! cwd /Users/matspeda/Documents/GitHub/hm-backstage/node_modules/cpu-features
gyp ERR! node -v v14.17.6
gyp ERR! node-gyp -v v7.1.2
gyp ERR! not ok"
info This module is OPTIONAL, you can safely ignore this error
In case anyone stumbles with same/similar issue. There was one folder I did not see mentioned online to remove which I ended up removing , then restarting the system which finnally fixed my problem.
Delete the following folder. You can use Finder > Go to folder > Replace with your user below :
/Users/username/Library/Caches/node-gyp

MAC npm install issue with gyp

I was trying to install the npm, but I keep getting this error that I think is related to the hummus module:
npm WARN deprecated ini#1.3.5: Please update to ini >=1.3.6 to avoid a prototype pollution issue
npm ERR! code 1
npm ERR! path /Users/abcd/Desktop/project/project_l_api/node_modules/hummus
npm ERR! command failed
npm ERR! command sh -c node-gyp rebuild
npm ERR! gyp info it worked if it ends with ok
npm ERR! gyp info using node-gyp#7.1.2
npm ERR! gyp info using node#15.8.0 | darwin | x64
npm ERR! gyp info find Python using Python version 3.9.1 found at "/usr/local/opt/python#3.9/bin/python3.9"
npm ERR! gyp info spawn /usr/local/opt/python#3.9/bin/python3.9
npm ERR! gyp info spawn args [
npm ERR! gyp info spawn args '/usr/local/lib/node_modules/npm/node_modules/node-gyp/gyp/gyp_main.py',
npm ERR! gyp info spawn args 'binding.gyp',
npm ERR! gyp info spawn args '-f',
npm ERR! gyp info spawn args 'make',
npm ERR! gyp info spawn args '-I',
npm ERR! gyp info spawn args '/Users/abcd/Desktop/project/project_l_api/node_modules/hummus/build/config.gypi',
npm ERR! gyp info spawn args '-I',
npm ERR! gyp info spawn args '/usr/local/lib/node_modules/npm/node_modules/node-gyp/addon.gypi',
npm ERR! gyp info spawn args '-I',
npm ERR! gyp info spawn args '/Users/abcd/Library/Caches/node-gyp/15.8.0/include/node/common.gypi',
npm ERR! gyp info spawn args '-Dlibrary=shared_library',
npm ERR! gyp info spawn args '-Dvisibility=default',
npm ERR! gyp info spawn args '-Dnode_root_dir=/Users/abcd/Library/Caches/node-gyp/15.8.0',
npm ERR! gyp info spawn args '-Dnode_gyp_dir=/usr/local/lib/node_modules/npm/node_modules/node-gyp',
npm ERR! gyp info spawn args '-Dnode_lib_file=/Users/abcd/Library/Caches/node-gyp/15.8.0/<(target_arch)/node.lib',
npm ERR! gyp info spawn args '-Dmodule_root_dir=/Users/abcd/Desktop/project/project_l_api/node_modules/hummus',
npm ERR! gyp info spawn args '-Dnode_engine=v8',
npm ERR! gyp info spawn args '--depth=.',
npm ERR! gyp info spawn args '--no-parallel',
npm ERR! gyp info spawn args '--generator-output',
npm ERR! gyp info spawn args 'build',
npm ERR! gyp info spawn args '-Goutput_dir=.'
npm ERR! gyp info spawn args ]
npm ERR! gyp: Undefined variable module_name in binding.gyp while trying to load binding.gyp
npm ERR! gyp ERR! configure error
npm ERR! gyp ERR! stack Error: `gyp` failed with exit code: 1
npm ERR! gyp ERR! stack at ChildProcess.onCpExit (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/configure.js:351:16)
npm ERR! gyp ERR! stack at ChildProcess.emit (node:events:378:20)
npm ERR! gyp ERR! stack at Process.ChildProcess._handle.onexit (node:internal/child_process:290:12)
npm ERR! gyp ERR! System Darwin 19.6.0
npm ERR! gyp ERR! command "/usr/local/Cellar/node/15.8.0/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
npm ERR! gyp ERR! cwd /Users/abcd/Desktop/project/project_l_api/node_modules/hummus
npm ERR! gyp ERR! node -v v15.8.0
npm ERR! gyp ERR! node-gyp -v v7.1.2
npm ERR! gyp ERR! not ok
Also noticed that sometimes the error message indicates the issue with sqlite3 instead of hummus.
Could not get an exact clue to start, I tried to reinstall the npm and the gyp but the problem still persists.
run npm update and npm install after.
it worked for me.

Error when downloading expo with yarn - is there a problem with yarn or expo?

I am trying to setup my environment to start working on react-native but yarn doesn't seem to properly install expo-cli.
I tried installing with npm, but apparently npm is buggy today (i'm am in a class and all who work on IOS had problems installing with npm). now that we are using yarn, it has worked for everyone but me.
error /Users/nicolaspage/toto/node_modules/sharp: Command failed.
Exit code: 1
Command: (node install/libvips && node install/dll-copy && prebuild-install) || (node-gyp rebuild && node install/dll-copy)
Arguments:
Directory: /Users/nicolaspage/toto/node_modules/sharp
Output:
info sharp Using cached /Users/nicolaspage/.npm/_libvips/libvips-8.7.4-darwin-x64.tar.gz
ERR! sharp Please delete /Users/nicolaspage/.npm/_libvips/libvips-8.7.4-darwin-x64.tar.gz as it is not a valid tarball
ERR! sharp zlib: unexpected end of file
info sharp Attempting to build from source via node-gyp but this may fail due to the above error
info sharp Please see https://sharp.pixelplumbing.com/page/install for required dependencies
gyp info it worked if it ends with ok
gyp info using node-gyp#3.8.0
gyp info using node#11.10.1 | darwin | x64
gyp info spawn /usr/bin/python
gyp info spawn args [ '/usr/local/Cellar/node/11.10.1/libexec/lib/node_modules/npm/node_modules/node-gyp/gyp/gyp_main.py',
gyp info spawn args 'binding.gyp',
gyp info spawn args '-f',
gyp info spawn args 'make',
gyp info spawn args '-I',
gyp info spawn args '/Users/nicolaspage/toto/node_modules/sharp/build/config.gypi',
gyp info spawn args '-I',
gyp info spawn args '/usr/local/Cellar/node/11.10.1/libexec/lib/node_modules/npm/node_modules/node-gyp/addon.gypi',
gyp info spawn args '-I',
gyp info spawn args '/Users/nicolaspage/.node-gyp/11.10.1/include/node/common.gypi',
gyp info spawn args '-Dlibrary=shared_library',
gyp info spawn args '-Dvisibility=default',
gyp info spawn args '-Dnode_root_dir=/Users/nicolaspage/.node-gyp/11.10.1',
gyp info spawn args '-Dnode_gyp_dir=/usr/local/Cellar/node/11.10.1/libexec/lib/node_modules/npm/node_modules/node-gyp',
gyp info spawn args '-Dnode_lib_file=/Users/nicolaspage/.node-gyp/11.10.1/<(target_arch)/node.lib',
gyp info spawn args '-Dmodule_root_dir=/Users/nicolaspage/toto/node_modules/sharp',
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 'build',
gyp info spawn args '-Goutput_dir=.' ]
gyp info spawn make
gyp info spawn args [ 'BUILDTYPE=Release', '-C', 'build' ]
TOUCH Release/obj.target/libvips-cpp.stamp
CXX(target) Release/obj.target/sharp/src/common.o
../src/common.cc:25:10: fatal error: 'vips/vips8' file not found
#include <vips/vips8>
^~~~~~~~~~~~
1 error generated.
make: *** [Release/obj.target/sharp/src/common.o] Error 1
gyp ERR! build error
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack at ChildProcess.onExit (/usr/local/Cellar/node/11.10.1/libexec/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:262:23)
gyp ERR! stack at ChildProcess.emit (events.js:197:13)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:254:12)
gyp ERR! System Darwin 18.5.0
gyp ERR! command "/usr/local/Cellar/node/11.10.1/bin/node" "/usr/local/Cellar/node/11.10.1/libexec/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /Users/nicolaspage/toto/node_modules/sharp
gyp ERR! node -v v11.10.1
i found this answer on medium and it worked for me... the error is ususally caused by libvips8.7.4 from the github repo
https://medium.com/#zameermfm/handling-libvip-sharp-errors-in-react-native-expo-installation-8eb592b6314b