Was trying to setup a github repo locally (owid/owid-grapher) but keep running into this clang error issue which leads to node-gyp and node-pre-gyp errors
I call it using npm_config_build_from_source=true yarn install and then everything works up until the node-pre-gyp shows up with fallback to build. There is a clang error mentioned in the output and seems to be the reason.
Can't figure out why it's showing up.
`
error /Users/yaboi/Desktop/coder coder/opensource/owid-grapher/node_modules/duckdb: Command failed.
Exit code: 1
Command: node-pre-gyp install --fallback-to-build
Arguments:
Directory: /Users/yaboi/Desktop/coder coder/opensource/owid-grapher/node_modules/duckdb
Output:
node-pre-gyp info it worked if it ends with ok
node-pre-gyp info using node-pre-gyp#1.0.10
node-pre-gyp info using node#16.13.2 | darwin | arm64
node-pre-gyp info check checked for "/Users/yaboi/Desktop/coder coder/opensource/owid-grapher/node_modules/duckdb/lib/binding/duckdb.node" (not found)
node-pre-gyp http GET https://duckdb-node.s3.amazonaws.com/duckdb-v0.5.1-node-v93-darwin-arm64.tar.gz
node-pre-gyp ERR! install response status 403 Forbidden on https://duckdb-node.s3.amazonaws.com/duckdb-v0.5.1-node-v93-darwin-arm64.tar.gz
node-pre-gyp WARN Pre-built binaries not installable for duckdb#0.5.1 and node#16.13.2 (node-v93 ABI, unknown) (falling back to source compile with node-gyp)
node-pre-gyp WARN Hit error response status 403 Forbidden on https://duckdb-node.s3.amazonaws.com/duckdb-v0.5.1-node-v93-darwin-arm64.tar.gz
gyp info it worked if it ends with ok
gyp info using node-gyp#7.1.2
gyp info using node#16.13.2 | darwin | arm64
gyp info ok
gyp info it worked if it ends with ok
gyp info using node-gyp#7.1.2
gyp info using node#16.13.2 | darwin | arm64
gyp info find Python using Python version 3.9.10 found at "/Users/yaboi/miniforge3/bin/python3"
(node:98425) [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 /Users/yaboi/miniforge3/bin/python3
gyp info spawn args [
gyp info spawn args '/Users/yaboi/Desktop/coder coder/opensource/owid-grapher/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/yaboi/Desktop/coder coder/opensource/owid-grapher/node_modules/duckdb/build/config.gypi',
gyp info spawn args '-I',
gyp info spawn args '/Users/yaboi/Desktop/coder coder/opensource/owid-grapher/node_modules/node-gyp/addon.gypi',
gyp info spawn args '-I',
gyp info spawn args '/Users/yaboi/Library/Caches/node-gyp/16.13.2/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/yaboi/Library/Caches/node-gyp/16.13.2',
gyp info spawn args '-Dnode_gyp_dir=/Users/yaboi/Desktop/coder coder/opensource/owid-grapher/node_modules/node-gyp',
gyp info spawn args '-Dnode_lib_file=/Users/yaboi/Library/Caches/node-gyp/16.13.2/<(target_arch)/node.lib',
gyp info spawn args '-Dmodule_root_dir=/Users/yaboi/Desktop/coder coder/opensource/owid-grapher/node_modules/duckdb',
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#7.1.2
gyp info using node#16.13.2 | darwin | arm64
gyp info spawn make
gyp info spawn args [ 'BUILDTYPE=Release', '-C', 'build' ]
CXX(target) Release/obj.target/duckdb/src/duckdb_node.o
clang: error: no such file or directory: 'coder/opensource/owid-grapher/node_modules/duckdb/node_modules/node-addon-api'
make[1]: *** [Release/obj.target/duckdb/src/duckdb_node.o] Error 1
gyp ERR! build error
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack at ChildProcess.onExit (/Users/yaboi/Desktop/coder coder/opensource/owid-grapher/node_modules/node-gyp/lib/build.js:194:23)
gyp ERR! stack at ChildProcess.emit (node:events:390:28)
gyp ERR! stack at Process.ChildProcess._handle.onexit (node:internal/child_process:290:12)
gyp ERR! System Darwin 22.1.0
gyp ERR! command "/Users/yaboi/.nvm/versions/node/v16.13.2/bin/node" "/Users/yaboi/Desktop/coder coder/opensource/owid-grapher/node_modules/node-gyp/bin/node-gyp.js" "build" "--fallback-to-build" "--module=/Users/yaboi/Desktop/coder coder/opensource/owid-grapher/node_modules/duckdb/lib/binding/duckdb.node" "--module_name=duckdb" "--module_path=/Users/yaboi/Desktop/coder coder/opensource/owid-grapher/node_modules/duckdb/lib/binding" "--napi_version=8" "--node_abi_napi=napi" "--napi_build_version=0" "--node_napi_label=node-v93"
gyp ERR! cwd /Users/yaboi/Desktop/coder coder/opensource/owid-grapher/node_modules/duckdb
gyp ERR! node -v v16.13.2
gyp ERR! node-gyp -v v7.1.2
gyp ERR! not ok
node-pre-gyp ERR! build error
node-pre-gyp ERR! stack Error: Failed to execute '/Users/yaboi/.nvm/versions/node/v16.13.2/bin/node /Users/yaboi/Desktop/coder coder/opensource/owid-grapher/node_modules/node-gyp/bin/node-gyp.js build --fallback-to-build --module=/Users/yaboi/Desktop/coder coder/opensource/owid-grapher/node_modules/duckdb/lib/binding/duckdb.node --module_name=duckdb --module_path=/Users/yaboi/Desktop/coder coder/opensource/owid-grapher/node_modules/duckdb/lib/binding --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> (/Users/yaboi/Desktop/coder coder/opensource/owid-grapher/node_modules/#mapbox/node-pre-gyp/lib/util/compile.js:89:23)
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 Darwin 22.1.0
node-pre-gyp ERR! command "/Users/yaboi/.nvm/versions/node/v16.13.2/bin/node" "/Users/yaboi/Desktop/coder coder/opensource/owid-grapher/node_modules/duckdb/node_modules/.bin/node-pre-gyp" "install" "--fallback-to-build"
node-pre-gyp ERR! cwd /Users/yaboi/Desktop/coder coder/opensource/owid-grapher/node_modules/duckdb
node-pre-gyp ERR! node -v v16.13.2
node-pre-gyp ERR! node-pre-gyp -v v1.0.10
node-pre-gyp ERR! not ok
Failed to execute '/Users/yaboi/.nvm/versions/node/v16.13.2/bin/node /Users/yaboi/Desktop/coder coder/opensource/owid-grapher/node_modules/node-gyp/bin/node-gyp.js build --fallback-to-build --module=/Users/yaboi/Desktop/coder coder/opensource/owid-grapher/node_modules/duckdb/lib/bi
`
Tried reinstalling xcode build tools, node, nvm, etc everything.
Related
We have this issue for a couple of days.
nodejs version is12.16.1
we are using yarn and not npm
SHARP_DIST_BASE_URL is referring to https://s3.us-east-2.amazonaws.com/folder
where the libvips-8.7.4-linux-x64.tar.gz is saved
in the config.yml was defined:
working_directory: /home/faul/dev/bot-engine-ci
we didn't change anything on the versions/installations/aws
[5/5] Building fresh packages...
error /home/faul/dev/bot-engine-ci/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: /home/faul/dev/bot-engine-ci/node_modules/sharp
Output:
info sharp Downloading ***************************************************libvips-8.7.4-linux-x64.tar.gz
/home/faul/dev/bot-engine-ci/node_modules/sharp/install/libvips.js:86
throw new Error(`Status ${response.statusCode}`);
^
Error: Status 403
at /home/faul/dev/bot-engine-ci/node_modules/sharp/install/libvips.js:86:17
at f (/home/faul/dev/bot-engine-ci/node_modules/once/once.js:25:25)
at ClientRequest.<anonymous> (/home/faul/dev/bot-engine-ci/node_modules/simple-get/index.js:63:5)
at Object.onceWrapper (events.js:418:26)
at ClientRequest.emit (events.js:311:20)
at HTTPParser.parserOnIncomingClient [as onIncoming] (_http_client.js:603:27)
at HTTPParser.parserOnHeadersComplete (_http_common.js:119:17)
at TLSSocket.socketOnData (_http_client.js:476:22)
at TLSSocket.emit (events.js:311:20)
at addChunk (_stream_readable.js:294:12)
gyp info it worked if it ends with ok
gyp info using node-gyp#5.0.5
gyp info using node#12.16.1 | linux | x64
gyp info find Python using Python version 2.7.13 found at "/usr/bin/python"
gyp http GET https://nodejs.org/download/release/v12.16.1/node-v12.16.1-headers.tar.gz
gyp http 200 https://nodejs.org/download/release/v12.16.1/node-v12.16.1-headers.tar.gz
gyp http GET https://nodejs.org/download/release/v12.16.1/SHASUMS256.txt
gyp http 200 https://nodejs.org/download/release/v12.16.1/SHASUMS256.txt
gyp info spawn /usr/bin/python
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 '/home/faul/dev/bot-engine-ci/node_modules/sharp/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 '/root/.cache/node-gyp/12.16.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=/root/.cache/node-gyp/12.16.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=/root/.cache/node-gyp/12.16.1/<(target_arch)/node.lib',
gyp info spawn args '-Dmodule_root_dir=/home/faul/dev/bot-engine-ci/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 args ]
gyp info spawn make
gyp info spawn args [ 'BUILDTYPE=Release', '-C', 'build' ]
make: Entering directory '/home/faul/dev/bot-engine-ci/node_modules/sharp/build'
TOUCH Release/obj.target/libvips-cpp.stamp
CXX(target) Release/obj.target/sharp/src/common.o
../src/common.cc:25:22: fatal error: vips/vips8: No such file or directory
#include <vips/vips8>
^
compilation terminated.
sharp.target.mk:138: recipe for target 'Release/obj.target/sharp/src/common.o' failed
make: *** [Release/obj.target/sharp/src/common.o] Error 1
make: Leaving directory '/home/faul/dev/bot-engine-ci/node_modules/sharp/build'
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:194:23)
gyp ERR! stack at ChildProcess.emit (events.js:311:20)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:275:12)
gyp ERR! System Linux 5.13.0-1023-aws
gyp ERR! command "/usr/local/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /home/faul/dev/bot-engine-ci/node_modules/sharp
gyp ERR! node -v v12.16.1
gyp ERR! node-gyp -v v5.0.5
gyp ERR! not ok
info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.
Exited with code exit status 1
CircleCI received exit code 1
All the issues I saw about this were from 2019, I didn't find any new post about that.
Please assist!
Thanks
Solution:
in .circleci/config.yml file
we added under "Install all Dependencies":
environment:
SHARP_DIST_BASE_URL: our CDN link
I use:https://github.com/saltyshiomix/nextron
I want to install canvas. Via yarn add canvas. Unfortunately it gives an error. Any sure information on what I should do?
I have tried in truth, in every way. I am using the first help, on stackoverflow. I am hoping that someone has been through the same thing. There is not one specific error so that I can do it myself. Thank you for your help. :)
PS C:\Users\KULTI\Desktop\PROJEKTY\selectVideoTiktok_electron> yarn add canvas
yarn add v1.22.17
warning ..\package.json: No license field
warning package-lock.json found. Your project contains lock files generated by tools other than Yarn. It is advised not to mix package managers in order to avoid resolution inconsistencies caused by unsynchronized lock files. To clear this warning, remove package-lock.json.
[1/4] Resolving packages...
warning electron-builder > dmg-builder > dmg-license#1.0.11: Disk image license agreements are deprecated by Apple and will probably be removed in a future macOS release. Discussion at: https://github.com/argv-minus-one/dmg-license/issues/11
[2/4] Fetching packages...
[3/4] Linking dependencies...
[4/4] Building fresh packages...
success Saved lockfile.
success Saved 1 new dependency.
info Direct dependencies
└─ canvas#2.9.1
info All dependencies
└─ canvas#2.9.1
$ electron-builder install-app-deps
• electron-builder version=23.0.3
• loaded configuration file=C:\Users\KULTI\Desktop\PROJEKTY\selectVideoTiktok_electron\electron-builder.yml
• rebuilding native dependencies dependencies=canvas#2.9.1, canvas#2.9.1 platform=win32 arch=x64
• rebuilding native dependency name=canvas version=2.9.1
• rebuilding native dependency name=canvas version=2.9.1
⨯ cannot execute cause=exit status 1
yarn run v1.22.17
$ node-pre-gyp install --fallback-to-build
Projekty w tym rozwi�zaniu s� kompilowane pojedynczo. Aby umo�liwi� kompilacj� r�wnoleg��, dodaj prze��cznik "-m".
Backend.cc
c:\users\kulti\.electron-gyp\18.2.2\include\node\v8-traced-handle.h(240): error C2061: b��d sk�adniowy: identyfikator "TracedGlobal<`template-type-parameter-1'>" [C:\Users\KULTI\Desktop\PROJEKTY\selectVideoTiktok_electron\node_modules\tiktok-scraper\node_modules\canvas\build\canvas.vcxproj]
c:\users\kulti\.electron-gyp\18.2.2\include\node\v8-traced-handle.h(335): note: zobacz odwo�anie do klasy klasa szablon; wyst�pienie "v8::TracedGlobal<T>" jest kompilowane
c:\users\kulti\.electron-gyp\18.2.2\include\node\v8-traced-handle.h(240): error C2334: nieoczekiwany(e) token(y) poprzedzaj�ce ":"; pomijanie tre�ci widocznych funkcji [C:\Users\KULTI\Desktop\PROJEKTY\selectVideoTiktok_electron\node_modules\tiktok-scraper\node_modules\canvas\build\canvas.vcxproj]
c:\users\kulti\.electron-gyp\18.2.2\include\node\v8-traced-handle.h(22): fatal error C1075: "{": nie znaleziono zgodnego tokenu [C:\Users\KULTI\Desktop\PROJEKTY\selectVideoTiktok_electron\node_modules\tiktok-scraper\node_modules\canvas\build\canvas.vcxproj]
Failed to execute 'C:\Program Files\nodejs\node.exe C:\Users\KULTI\AppData\Roaming\npm\node_modules\node-gyp\bin\node-gyp.js build --fallback-to-build --module=C:\Users\KULTI\Desktop\PROJEKTY\selectVideoTiktok_electron\node_modules\tiktok-scraper\node_modules\canvas\build\Release\canvas.node --module_name=canvas --module_path=C:\Users\KULTI\Desktop\PROJEKTY\selectVideoTiktok_electron\node_modules\tiktok-scraper\node_modules\canvas\build\Release --napi_version=8 --node_abi_napi=napi --napi_build_version=0 --node_napi_label=electron-v18.2' (1)
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
warning ..\..\..\..\..\package.json: No license field
node-pre-gyp info it worked if it ends with ok
node-pre-gyp info using node-pre-gyp#1.0.9
node-pre-gyp info using node#16.15.0 | win32 | x64
node-pre-gyp http GET https://github.com/Automattic/node-canvas/releases/download/v2.9.1/canvas-v2.9.1-electron-v18.2-win32-unknown-x64.tar.gz
node-pre-gyp ERR! install response status 404 Not Found on https://github.com/Automattic/node-canvas/releases/download/v2.9.1/canvas-v2.9.1-electron-v18.2-win32-unknown-x64.tar.gz
node-pre-gyp WARN Pre-built binaries not installable for canvas#2.9.1 and electron#18.2.2 (electron-v18.2 ABI, unknown) (falling back to source compile with node-gyp)
node-pre-gyp WARN Hit error response status 404 Not Found on https://github.com/Automattic/node-canvas/releases/download/v2.9.1/canvas-v2.9.1-electron-v18.2-win32-unknown-x64.tar.gz
gyp info it worked if it ends with ok
gyp info using node-gyp#9.0.0
gyp info using node#16.15.0 | win32 | x64
gyp info ok
gyp info it worked if it ends with ok
gyp info using node-gyp#9.0.0
gyp info using node#16.15.0 | win32 | x64
gyp info find Python using Python version 3.8.3 found at "C:\Python38\python.exe"
gyp info find VS using VS2017 (15.9.28307.1093) found at:
gyp info find VS "C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools"
gyp info find VS run with --verbose for detailed information
gyp info spawn C:\Python38\python.exe
gyp info spawn args [
gyp info spawn args 'C:\\Users\\KULTI\\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\\KULTI\\Desktop\\PROJEKTY\\selectVideoTiktok_electron\\node_modules\\tiktok-scraper\\node_modules\\canvas\\build\\config.gypi',
gyp info spawn args '-I',
gyp info spawn args 'C:\\Users\\KULTI\\AppData\\Roaming\\npm\\node_modules\\node-gyp\\addon.gypi',
gyp info spawn args '-I',
gyp info spawn args 'C:\\Users\\KULTI\\.electron-gyp\\18.2.2\\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\\KULTI\\.electron-gyp\\18.2.2',
gyp info spawn args '-Dnode_gyp_dir=C:\\Users\\KULTI\\AppData\\Roaming\\npm\\node_modules\\node-gyp',
gyp info spawn args '-Dnode_lib_file=C:\\\\Users\\\\KULTI\\\\.electron-gyp\\\\18.2.2\\\\<(target_arch)\\\\node.lib',
gyp info spawn args '-Dmodule_root_dir=C:\\Users\\KULTI\\Desktop\\PROJEKTY\\selectVideoTiktok_electron\\node_modules\\tiktok-scraper\\node_modules\\canvas',
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\\KULTI\\Desktop\\PROJEKTY\\selectVideoTiktok_electron\\node_modules\\tiktok-scraper\\node_modules\\canvas\\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.0.0
gyp info using node#16.15.0 | win32 | x64
gyp info spawn C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Current\Bin\MSBuild.exe
gyp info spawn args [
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 args ]
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\KULTI\AppData\Roaming\npm\node_modules\node-gyp\lib\build.js:194:23)
gyp ERR! stack at ChildProcess.emit (node:events:527:28)
gyp ERR! stack at Process.ChildProcess._handle.onexit (node:internal/child_process:291:12)
gyp ERR! System Windows_NT 10.0.19044
gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "C:\\Users\\KULTI\\AppData\\Roaming\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js" "build" "--fallback-to-build" "--module=C:\\Users\\KULTI\\Desktop\\PROJEKTY\\selectVideoTiktok_electron\\node_modules\\tiktok-scraper\\node_modules\\canvas\\build\\Release\\canvas.node" "--module_name=canvas" "--module_path=C:\\Users\\KULTI\\Desktop\\PROJEKTY\\selectVideoTiktok_electron\\node_modules\\tiktok-scraper\\node_modules\\canvas\\build\\Release" "--napi_version=8" "--node_abi_napi=napi" "--napi_build_version=0" "--node_napi_label=electron-v18.2"
gyp ERR! cwd C:\Users\KULTI\Desktop\PROJEKTY\selectVideoTiktok_electron\node_modules\tiktok-scraper\node_modules\canvas
gyp ERR! node -v v16.15.0
gyp ERR! node-gyp -v v9.0.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\KULTI\AppData\Roaming\npm\node_modules\node-gyp\bin\node-gyp.js build --fallback-to-build --module=C:\Users\KULTI\Desktop\PROJEKTY\selectVideoTiktok_electron\node_modules\tiktok-scraper\node_modules\canvas\build\Release\canvas.node --module_name=canvas --module_path=C:\Users\KULTI\Desktop\PROJEKTY\selectVideoTiktok_electron\node_modules\tiktok-scraper\node_modules\canvas\build\Release --napi_version=8 --node_abi_napi=napi --napi_build_version=0 --node_napi_label=electron-v18.2' (1)
node-pre-gyp ERR! stack at ChildProcess.<anonymous> (C:\Users\KULTI\Desktop\PROJEKTY\selectVideoTiktok_electron\node_modules\#mapbox\node-pre-gyp\lib\util\compile.js:89:23)
node-pre-gyp ERR! stack at ChildProcess.emit (node:events:527:28)
node-pre-gyp ERR! stack at maybeClose (node:internal/child_process:1092:16)
node-pre-gyp ERR! stack at Process.ChildProcess._handle.onexit (node:internal/child_process:302:5)
node-pre-gyp ERR! System Windows_NT 10.0.19044
node-pre-gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "C:\\Users\\KULTI\\Desktop\\PROJEKTY\\selectVideoTiktok_electron\\node_modules\\#mapbox\\node-pre-gyp\\bin\\node-pre-gyp" "install" "--fallback-to-build"
node-pre-gyp ERR! cwd C:\Users\KULTI\Desktop\PROJEKTY\selectVideoTiktok_electron\node_modules\tiktok-scraper\node_modules\canvas
node-pre-gyp ERR! node -v v16.15.0
node-pre-gyp ERR! node-pre-gyp -v v1.0.9
node-pre-gyp ERR! not ok
error Command failed with exit code 1.
command='C:\Program Files\nodejs\node.exe' 'C:\Users\KULTI\AppData\Roaming\npm\node_modules\yarn\bin\yarn.js' run install
workingDir=C:\Users\KULTI\Desktop\PROJEKTY\selectVideoTiktok_electron\node_modules\tiktok-scraper\node_modules\canvas
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/add for documentation about this command.
Failed to execute 'node-gyp configure --fallback-to-build --module=
warning " > jest-expo#40.0.1" has incorrect peer dependency "react#16.13.1".
[4/4] 🔨 Building fresh packages...
[13/16] ⡀ postinstall-prepare
[-/16] ⡀ waiting...
[-/16] ⡀ waiting...
[11/16] ⡀ canvas
error /Users/jashan.pj/Documents/Projects/RN-Base-Architecture/node_modules/canvas: Command failed.
Exit code: 1
Command: node-pre-gyp install --fallback-to-build
Arguments:
Directory: /Users/jashan.pj/Documents/Projects/RN-Base-Architecture/node_modules/canvas
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.4.2 | darwin | x64
node-pre-gyp WARN Using request for node-pre-gyp https download
node-pre-gyp info check checked for "/Users/jashan.pj/Documents/Projects/RN-Base-Architecture/node_modules/canvas/build/Release/canvas.node" (not found)
node-pre-gyp http GET https://github.com/node-gfx/node-canvas-prebuilt/releases/download/v2.6.1/canvas-v2.6.1-node-v93-darwin-unknown-x64.tar.gz
node-pre-gyp http 404 https://github.com/node-gfx/node-canvas-prebuilt/releases/download/v2.6.1/canvas-v2.6.1-node-v93-darwin-unknown-x64.tar.gz
node-pre-gyp WARN Tried to download(404): https://github.com/node-gfx/node-canvas-prebuilt/releases/download/v2.6.1/canvas-v2.6.1-node-v93-darwin-unknown-x64.tar.gz
node-pre-gyp WARN Pre-built binaries not found for canvas#2.6.1 and node#16.4.2 (node-v93 ABI, unknown) (falling back to source compile with node-gyp)
node-pre-gyp http 404 status code downloading tarball https://github.com/node-gfx/node-canvas-prebuilt/releases/download/v2.6.1/canvas-v2.6.1-node-v93-darwin-unknown-x64.tar.gz
gyp info it worked if it ends with ok
gyp info using node-gyp#8.1.0
gyp info using node#16.4.2 | darwin | x64
gyp info ok
gyp info it worked if it ends with ok
gyp info using node-gyp#8.1.0
gyp info using node#16.4.2 | darwin | x64
gyp info find Python using Python version 3.9.6 found at "/usr/local/opt/python#3.9/bin/python3.9"
(node:10666) [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/local/opt/python#3.9/bin/python3.9
gyp info spawn args [
gyp info spawn args '/usr/local/lib/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/jashan.pj/Documents/Projects/RN-Base-Architecture/node_modules/canvas/build/config.gypi',
gyp info spawn args '-I',
gyp info spawn args '/usr/local/lib/node_modules/node-gyp/addon.gypi',
gyp info spawn args '-I',
gyp info spawn args '/Users/jashan.pj/Library/Caches/node-gyp/16.4.2/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/jashan.pj/Library/Caches/node-gyp/16.4.2',
gyp info spawn args '-Dnode_gyp_dir=/usr/local/lib/node_modules/node-gyp',
gyp info spawn args '-Dnode_lib_file=/Users/jashan.pj/Library/Caches/node-gyp/16.4.2/<(target_arch)/node.lib',
gyp info spawn args '-Dmodule_root_dir=/Users/jashan.pj/Documents/Projects/Naico-RN-Base-Architecture/node_modules/canvas',
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 ]
Package pixman-1 was not found in the pkg-config search path.
Perhaps you should add the directory containing pixman-1.pc' to the PKG_CONFIG_PATH environment variable No package 'pixman-1' found gyp: Call to 'pkg-config pixman-1 --libs' returned exit status 1 while in binding.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 (/usr/local/lib/node_modules/node-gyp/lib/configure.js:353:16)
gyp ERR! stack at ChildProcess.emit (node:events:394:28)
gyp ERR! stack at Process.ChildProcess._handle.onexit (node:internal/child_process:290:12)
gyp ERR! System Darwin 20.5.0
gyp ERR! command "/usr/local/Cellar/node/16.4.2/bin/node" "/usr/local/lib/node_modules/node-gyp/bin/node-gyp.js" "configure" "--fallback-to-build" "--module=/Users/jashan.pj/Documents/Projects/RN-Base-Architecture/node_modules/canvas/build/Release/canvas.node" "--module_name=canvas" "--module_path=/Users/jashan.pj/Documents/Projects/RN-Base-Architecture/node_modules/canvas/build/Release" "--napi_version=8" "--node_abi_napi=napi" "--napi_build_version=0" "--node_napi_label=node-v93"
gyp ERR! cwd /Users/jashan.pj/Documents/Projects/Naico-RN-Base-Architecture/node_modules/canvas
gyp ERR! node -v v16.4.2
gyp ERR! node-gyp -v v8.1.0
gyp ERR! not ok
node-pre-gyp ERR! build error
node-pre-gyp ERR! stack Error: Failed to execute '/usr/local/Cellar/node/16.4.2/bin/node /usr/local/lib/node_modules/node-gyp/bin/node-gyp.js configure --fallback-to-build --module=/Users/jashan.pj/Documents/Projects/RN-Base-Architecture/node_modules/canvas/build/Release/canvas.node --module_name=canvas --module_path=/Users/jashan.pj/Documents/Projects/RN-Base-Architecture/node_modules/canvas/build/Release --napi_version=8 --node_abi_napi=napi --napi_build_version=0 --node_napi_label=node-v93' (1)
node-pre-gyp ERR! stack at ChildProcess. (/Users/jashan.pj/Documents/Projects/RN-Base-Architecture/node_modules/node-pre-gyp/lib/util/compile.js:83:29)
node-pre-gyp ERR! stack at ChildProcess.emit (node:events:394:28)
node-pre-gyp ERR! stack at maybeClose (node:internal/child_process:1067:16)
node-pre-gyp ERR! stack at Process.ChildProcess._handle.onexit (node:internal/child_process:301:5)
node-pre-gyp ERR! System Darwin 20.5.0
node-pre-gyp ERR! command "/usr/local/Cellar/node/16.4.2/bin/node" "/Users/jashan.pj/Documents/Projects/RN-Base-Architecture/node_modules/canvas/node_modules/.bin/node-pre-gyp" "install" "--fallback-to-build"
node-pre-gyp ERR! cwd /Users/jashan.pj/Documents/Projects/RN-Base-Architecture/node_modules/canvas
node-pre-gyp ERR! node -v v16.4.2
node-pre-gyp ERR! node-pre-gyp -v v0.11.0
node-pre-gyp ERR! not ok
This one helped me to solve this issue after trying different ways.
brew install pkg-config cairo pango libpng jpeg giflib librsvg
note - if you don't have installed brew do it first. https://brew.sh/
I tried installing the ldap-client node module for nodejs on my local windows machine by running this command, npm install --save ldap-client.
It gives the error as attached
gyp ERR! build error
gyp ERR! stack Error: C:\Program Files (x86)\MSBuild\14.0\bin\msbuild.exe failed with exit code: 1
gyp ERR! stack at ChildProcess.onExit (C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\build.js:258:23)
gyp ERR! stack at emitTwo (events.js:126:13)
gyp ERR! stack at ChildProcess.emit (events.js:214:7)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:198:12)
gyp ERR! System Windows_NT 10.0.15063
gyp ERR! command "C:\Program Files\nodejs\node.exe" "C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js" "rebuild"
gyp ERR! cwd C:\workspace\AJNSDemoProject
gyp ERR! node -v v8.10.0
gyp ERR! node-gyp -v v3.6.2
gyp ERR! not ok
npm ERR! code ELIFECYCLE
npm ERR! errno 1
I installed the OpenLDAP client libraries from here (http://www.openldap.org/software/download/) as tgz and extracted that and put the folder in my project root folder.
I am using latest node version 8.10.0
Could you please advice whats wrong in my case?
Thanks
Debug log when run "node-gyp rebuild" command
C:\workspace\AJNSDemoProject>node-gyp rebuild
gyp info it worked if it ends with ok
gyp info using node-gyp#3.6.2
gyp info using node#8.10.0 | win32 | x64
gyp info spawn C:\Program Files (x86)\Python\python.exe
gyp info spawn args [ 'C:\\Users\\niyaza.fazlullah\\AppData\\Roaming\\npm\\node_modules\\node-gyp\\gyp\\gyp_main.py',
gyp info spawn args 'binding.gyp',
gyp info spawn args '-f',
gyp info spawn args 'msvs',
gyp info spawn args '-G',
gyp info spawn args 'msvs_version=auto',
gyp info spawn args '-I',
gyp info spawn args 'C:\\workspace\\AJNSDemoProject\\build\\config.gypi',
gyp info spawn args '-I',
gyp info spawn args 'C:\\Users\\niyaza.fazlullah\\AppData\\Roaming\\npm\\node_modules\\node-gyp\\addon.gypi',
gyp info spawn args '-I',
gyp info spawn args 'C:\\Users\\niyaza.fazlullah\\.node-gyp\\8.10.0\\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\\niyaza.fazlullah\\.node-gyp\\8.10.0',
gyp info spawn args '-Dnode_gyp_dir=C:\\Users\\niyaza.fazlullah\\AppData\\Roaming\\npm\\node_modules\\node-gyp',
gyp info spawn args '-Dnode_lib_file=C:\\Users\\niyaza.fazlullah\\.node-gyp\\8.10.0\\<(target_arch)\\node.lib',
gyp info spawn args '-Dmodule_root_dir=C:\\workspace\\AJNSDemoProject',
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:\\workspace\\AJNSDemoProject\\build',
gyp info spawn args '-Goutput_dir=.' ]
Warning: Missing input files:
C:\workspace\AJNSDemoProject\build\..\src\binding.cc
gyp info spawn C:\Program Files (x86)\MSBuild\14.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' ]
Building the projects in this solution one at a time. To enable parallel build, please add the "/m" switch.
binding.cc
c1xx : fatal error C1083: Cannot open source file: '..\src\binding.cc': No such file or directory [C:\workspace\AJNSDem
oProject\build\binding.vcxproj]
win_delay_load_hook.cc
gyp ERR! build error
gyp ERR! stack Error: `C:\Program Files (x86)\MSBuild\14.0\bin\msbuild.exe` failed with exit code: 1
gyp ERR! stack at ChildProcess.onExit (C:\Users\niyaza.fazlullah\AppData\Roaming\npm\node_modules\node-gyp\lib\build.js:258:23)
gyp ERR! stack at emitTwo (events.js:126:13)
gyp ERR! stack at ChildProcess.emit (events.js:214:7)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:198:12)
gyp ERR! System Windows_NT 10.0.15063
gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "C:\\Users\\niyaza.fazlullah\\AppData\\Roaming\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js" "rebuild"
gyp ERR! cwd C:\workspace\AJNSDemoProject
gyp ERR! node -v v8.10.0
gyp ERR! node-gyp -v v3.6.2
gyp ERR! not ok
Good day for everyone!
My OS: WINDOWS 8
Installed software: VS2012 expess, Python 2.7.5, Windows8SDK, node 0.10.17, npm 1.3.8
I got error:
C:\Users\sapa\worksapce\node-sqlite3\build\Release\obj\global_intermediate\sqlite-autoconf-3071700\sqlite3.c(606):
fatal error C1083: Cannot open include file: 'stdarg.h': No such file
or directory
[C:\Users\sapa\worksapce\node-sqlite3\build\deps\sqlite3.vcxproj]
when I installed module node-sqlite3 on my OS.
For installing I used command npm install node-sqlite3 and got this error. After that I used installing from source:
I cloned source from github https://github.com/developmentseed/node-sqlite3
then I used command node-gyp configure and got
C:\Users\sapa\worksapce\node-sqlite3>node-gyp configure
gyp info it worked if it ends with ok
gyp info using node-gyp#0.10.9
gyp info using node#0.10.17 | win32 | x64
gyp http GET http://nodejs.org/dist/v0.10.17/node-v0.10.17.tar.gz
gyp http 200 http://nodejs.org/dist/v0.10.17/node-v0.10.17.tar.gz
gyp http GET http://nodejs.org/dist/v0.10.17/node.lib
gyp http GET http://nodejs.org/dist/v0.10.17/x64/node.lib
gyp http 200 http://nodejs.org/dist/v0.10.17/node.lib
gyp http 200 http://nodejs.org/dist/v0.10.17/x64/node.lib
gyp info spawn python
gyp info spawn args [ 'C:\\Users\\sapa\\AppData\\Roaming\\npm\\node_modules\\nod
e-gyp\\gyp\\gyp',
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=auto',
gyp info spawn args '-I',
gyp info spawn args 'C:\\Users\\sapa\\worksapce\\node-sqlite3\\build\\config.g
ypi',
gyp info spawn args '-I',
gyp info spawn args 'C:\\Users\\sapa\\AppData\\Roaming\\npm\\node_modules\\nod
e-gyp\\addon.gypi',
gyp info spawn args '-I',
gyp info spawn args 'C:\\Users\\sapa\\.node-gyp\\0.10.17\\common.gypi',
gyp info spawn args '-Dlibrary=shared_library',
gyp info spawn args '-Dvisibility=default',
gyp info spawn args '-Dnode_root_dir=C:\\Users\\sapa\\.node-gyp\\0.10.17',
gyp info spawn args '-Dmodule_root_dir=C:\\Users\\sapa\\worksapce\\node-sqlite
3',
gyp info spawn args '--depth=.',
gyp info spawn args '--generator-output',
gyp info spawn args 'C:\\Users\\sapa\\worksapce\\node-sqlite3\\build',
gyp info spawn args '-Goutput_dir=.' ]
gyp info ok
then node-gyp build and got:
C:\Users\sapa\worksapce\node-sqlite3>node-gyp build
gyp info it worked if it ends with ok
gyp info using node-gyp#0.10.9
gyp info using node#0.10.17 | win32 | x64
gyp info spawn msbuild
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.
unpack_sqlite_dep
sqlite3.c
C:\Users\sapa\worksapce\node-sqlite3\build\Release\obj\global_intermediate\sqli
te-autoconf-3071700\sqlite3.c(606): fatal error C1083: Cannot open include file
: 'stdarg.h': No such file or directory [C:\Users\sapa\worksapce\node-sqlite3\b
uild\deps\sqlite3.vcxproj]
gyp ERR! build error
gyp ERR! stack Error: `msbuild` failed with exit code: 1
gyp ERR! stack at ChildProcess.onExit (C:\Users\sapa\AppData\Roaming\npm\nod
e_modules\node-gyp\lib\build.js:267:23)
gyp ERR! stack at ChildProcess.EventEmitter.emit (events.js:98:17)
gyp ERR! stack at Process.ChildProcess._handle.onexit (child_process.js:789:
12)
gyp ERR! System Windows_NT 6.2.9200
gyp ERR! command "node" "C:\\Users\\sapa\\AppData\\Roaming\\npm\\node_modules\\n
ode-gyp\\bin\\node-gyp.js" "build"
gyp ERR! cwd C:\Users\sapa\worksapce\node-sqlite3
gyp ERR! node -v v0.10.17
gyp ERR! node-gyp -v v0.10.9
gyp ERR! not ok
Cloud you help me in this problem?
It seems like you are trying to build a 64 bit installation (Platform=x64).
A 32 bit node v0.10.22 with npm install sqlite3 works for me on windows 7
set like this, and then have a try:
npm config set msvs_version 2012
npm config set python c:/python/python.exe