We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
npm error node-pre-gyp WARN Pre-built binaries not installable for [email protected] and [email protected]
npm install canvas or npm install canvas@next
npm error code 1 npm error path C:\Dev\pdf-visual-diff\node_modules\canvas npm error command failed npm error command C:\Windows\system32\cmd.exe /d /s /c node-pre-gyp install --fallback-to-build --update-binary npm error Failed to execute 'C:\Program Files\nodejs\node.exe C:\Users\UXXXXXX\AppData\Roaming\npm\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js configure --fallback-to-build --update-binary --module=C:\Dev\pdf-visual-diff\node_modules\canvas\build\Release\canvas.node --module_name=canvas --module_path=C:\Dev\pdf-visual-diff\node_modules\canvas\build\Release --napi_version=9 --node_abi_napi=napi --napi_build_version=0 --node_napi_label=node-v115' (1) npm error node-pre-gyp info it worked if it ends with ok npm error node-pre-gyp info using [email protected] npm error node-pre-gyp info using [email protected] | win32 | x64 npm error node-pre-gyp http GET https://github.com/Automattic/node-canvas/releases/download/v2.11.2/canvas-v2.11.2-node-v115-win32-unknown-x64.tar.gz npm error node-pre-gyp ERR! install request to https://github.com/Automattic/node-canvas/releases/download/v2.11.2/canvas-v2.11.2-node-v115-win32-unknown-x64.tar.gz failed, reason: getaddrinfo ENOTFOUND github.com npm error node-pre-gyp WARN Pre-built binaries not installable for [email protected] and [email protected] (node-v115 ABI, unknown) (falling back to source compile with node-gyp) npm error node-pre-gyp WARN Hit error request to https://github.com/Automattic/node-canvas/releases/download/v2.11.2/canvas-v2.11.2-node-v115-win32-unknown-x64.tar.gz failed, reason: getaddrinfo ENOTFOUND github.com npm error gyp info it worked if it ends with ok npm error gyp info using [email protected] npm error gyp info using [email protected] | win32 | x64 npm error gyp info ok npm error gyp info it worked if it ends with ok npm error gyp info using [email protected] npm error gyp info using [email protected] | win32 | x64 npm error gyp info find Python using Python version 3.11.4 found at "C:\Users\UXXXXXX\AppData\Local\Programs\Python\Python311\python.exe" npm error gyp http GET https://nodejs.org/download/release/v20.16.0/node-v20.16.0-headers.tar.gz npm error gyp http fetch GET https://nodejs.org/download/release/v20.16.0/node-v20.16.0-headers.tar.gz attempt 1 failed with ENOTFOUND npm error gyp WARN install got an error, rolling back install npm error gyp ERR! configure error npm error gyp ERR! stack Error: This is most likely not a problem with node-gyp or the package itself and npm error gyp ERR! stack is related to network connectivity. In most cases you are behind a proxy or have bad npm error gyp ERR! stack network settings. npm error gyp ERR! stack at go (C:\Users\UXXXXXX\AppData\Roaming\npm\node_modules\npm\node_modules\node-gyp\lib\install.js:244:21) npm error gyp ERR! stack at process.processTicksAndRejections (node:internal/process/task_queues:95:5) npm error gyp ERR! stack at async install (C:\Users\UXXXXXX\AppData\Roaming\npm\node_modules\npm\node_modules\node-gyp\lib\install.js:63:18) npm error gyp ERR! stack at async getNodeDir (C:\Users\UXXXXXX\AppData\Roaming\npm\node_modules\npm\node_modules\node-gyp\lib\configure.js:79:7) npm error gyp ERR! stack at async run (C:\Users\UXXXXXX\AppData\Roaming\npm\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js:81:18) npm error gyp ERR! System Windows_NT 10.0.22621 npm error gyp ERR! command "C:\Program Files\nodejs\node.exe" "C:\Users\UXXXXXX\AppData\Roaming\npm\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js" "configure" "--fallback-to-build" "--update-binary" "--module=C:\Dev\pdf-visual-diff\node_modules\canvas\build\Release\canvas.node" "--module_name=canvas" "--module_path=C:\Dev\pdf-visual-diff\node_modules\canvas\build\Release" "--napi_version=9" "--node_abi_napi=napi" "--napi_build_version=0" "--node_napi_label=node-v115" npm error gyp ERR! cwd C:\Dev\pdf-visual-diff\node_modules\canvas npm error gyp ERR! node -v v20.16.0 npm error gyp ERR! node-gyp -v v10.1.0 npm error gyp ERR! not ok npm error node-pre-gyp ERR! build error npm error node-pre-gyp ERR! stack Error: Failed to execute 'C:\Program Files\nodejs\node.exe C:\Users\UXXXXXX\AppData\Roaming\npm\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js configure --fallback-to-build --update-binary --module=C:\Dev\pdf-visual-diff\node_modules\canvas\build\Release\canvas.node --module_name=canvas --module_path=C:\Dev\pdf-visual-diff\node_modules\canvas\build\Release --napi_version=9 --node_abi_napi=napi --napi_build_version=0 --node_napi_label=node-v115' (1) npm error node-pre-gyp ERR! stack at ChildProcess. (C:\Dev\pdf-visual-diff\node_modules@mapbox\node-pre-gyp\lib\util\compile.js:89:23) npm error node-pre-gyp ERR! stack at ChildProcess.emit (node:events:519:28) npm error node-pre-gyp ERR! stack at maybeClose (node:internal/child_process:1105:16) npm error node-pre-gyp ERR! stack at ChildProcess._handle.onexit (node:internal/child_process:305:5) npm error node-pre-gyp ERR! System Windows_NT 10.0.22621 npm error node-pre-gyp ERR! command "C:\Program Files\nodejs\node.exe" "C:\Dev\pdf-visual-diff\node_modules\@mapbox\node-pre-gyp\bin\node-pre-gyp" "install" "--fallback-to-build" "--update-binary" npm error node-pre-gyp ERR! cwd C:\Dev\pdf-visual-diff\node_modules\canvas npm error node-pre-gyp ERR! node -v v20.16.0 npm error node-pre-gyp ERR! node-pre-gyp -v v1.0.11 npm error node-pre-gyp ERR! not ok
The text was updated successfully, but these errors were encountered:
I have the same error, how did you fix it?
Sorry, something went wrong.
I have the same error, how did you fix it? @guidrop17
It hasn't been resolved yet, I'm still waiting for someone to provide a solution.
No branches or pull requests
Issue
npm error node-pre-gyp WARN Pre-built binaries not installable for [email protected] and [email protected]
Steps to Reproduce
npm install canvas or npm install canvas@next
Your Environment
System Details
Error Log
npm error code 1
npm error path C:\Dev\pdf-visual-diff\node_modules\canvas
npm error command failed
npm error command C:\Windows\system32\cmd.exe /d /s /c node-pre-gyp install --fallback-to-build --update-binary
npm error Failed to execute 'C:\Program Files\nodejs\node.exe C:\Users\UXXXXXX\AppData\Roaming\npm\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js configure --fallback-to-build --update-binary --module=C:\Dev\pdf-visual-diff\node_modules\canvas\build\Release\canvas.node --module_name=canvas --module_path=C:\Dev\pdf-visual-diff\node_modules\canvas\build\Release --napi_version=9 --node_abi_napi=napi --napi_build_version=0 --node_napi_label=node-v115' (1)
npm error node-pre-gyp info it worked if it ends with ok
npm error node-pre-gyp info using [email protected]
npm error node-pre-gyp info using [email protected] | win32 | x64
npm error node-pre-gyp http GET https://github.com/Automattic/node-canvas/releases/download/v2.11.2/canvas-v2.11.2-node-v115-win32-unknown-x64.tar.gz
npm error node-pre-gyp ERR! install request to https://github.com/Automattic/node-canvas/releases/download/v2.11.2/canvas-v2.11.2-node-v115-win32-unknown-x64.tar.gz failed, reason: getaddrinfo ENOTFOUND github.com
npm error node-pre-gyp WARN Pre-built binaries not installable for [email protected] and [email protected] (node-v115 ABI, unknown) (falling back to source compile with node-gyp)
npm error node-pre-gyp WARN Hit error request to https://github.com/Automattic/node-canvas/releases/download/v2.11.2/canvas-v2.11.2-node-v115-win32-unknown-x64.tar.gz failed, reason: getaddrinfo ENOTFOUND github.com
npm error gyp info it worked if it ends with ok
npm error gyp info using [email protected]
npm error gyp info using [email protected] | win32 | x64
npm error gyp info ok
npm error gyp info it worked if it ends with ok
npm error gyp info using [email protected]
npm error gyp info using [email protected] | win32 | x64
npm error gyp info find Python using Python version 3.11.4 found at "C:\Users\UXXXXXX\AppData\Local\Programs\Python\Python311\python.exe"
npm error gyp http GET https://nodejs.org/download/release/v20.16.0/node-v20.16.0-headers.tar.gz
npm error gyp http fetch GET https://nodejs.org/download/release/v20.16.0/node-v20.16.0-headers.tar.gz attempt 1 failed with ENOTFOUND
npm error gyp WARN install got an error, rolling back install
npm error gyp ERR! configure error
npm error gyp ERR! stack Error: This is most likely not a problem with node-gyp or the package itself and
npm error gyp ERR! stack is related to network connectivity. In most cases you are behind a proxy or have bad
npm error gyp ERR! stack network settings.
npm error gyp ERR! stack at go (C:\Users\UXXXXXX\AppData\Roaming\npm\node_modules\npm\node_modules\node-gyp\lib\install.js:244:21)
npm error gyp ERR! stack at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
npm error gyp ERR! stack at async install (C:\Users\UXXXXXX\AppData\Roaming\npm\node_modules\npm\node_modules\node-gyp\lib\install.js:63:18)
npm error gyp ERR! stack at async getNodeDir (C:\Users\UXXXXXX\AppData\Roaming\npm\node_modules\npm\node_modules\node-gyp\lib\configure.js:79:7)
npm error gyp ERR! stack at async run (C:\Users\UXXXXXX\AppData\Roaming\npm\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js:81:18)
npm error gyp ERR! System Windows_NT 10.0.22621
npm error gyp ERR! command "C:\Program Files\nodejs\node.exe" "C:\Users\UXXXXXX\AppData\Roaming\npm\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js" "configure" "--fallback-to-build" "--update-binary" "--module=C:\Dev\pdf-visual-diff\node_modules\canvas\build\Release\canvas.node" "--module_name=canvas" "--module_path=C:\Dev\pdf-visual-diff\node_modules\canvas\build\Release" "--napi_version=9" "--node_abi_napi=napi" "--napi_build_version=0" "--node_napi_label=node-v115"
npm error gyp ERR! cwd C:\Dev\pdf-visual-diff\node_modules\canvas
npm error gyp ERR! node -v v20.16.0
npm error gyp ERR! node-gyp -v v10.1.0
npm error gyp ERR! not ok
npm error node-pre-gyp ERR! build error
npm error node-pre-gyp ERR! stack Error: Failed to execute 'C:\Program Files\nodejs\node.exe C:\Users\UXXXXXX\AppData\Roaming\npm\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js configure --fallback-to-build --update-binary --module=C:\Dev\pdf-visual-diff\node_modules\canvas\build\Release\canvas.node --module_name=canvas --module_path=C:\Dev\pdf-visual-diff\node_modules\canvas\build\Release --napi_version=9 --node_abi_napi=napi --napi_build_version=0 --node_napi_label=node-v115' (1)
npm error node-pre-gyp ERR! stack at ChildProcess. (C:\Dev\pdf-visual-diff\node_modules@mapbox\node-pre-gyp\lib\util\compile.js:89:23)
npm error node-pre-gyp ERR! stack at ChildProcess.emit (node:events:519:28)
npm error node-pre-gyp ERR! stack at maybeClose (node:internal/child_process:1105:16)
npm error node-pre-gyp ERR! stack at ChildProcess._handle.onexit (node:internal/child_process:305:5)
npm error node-pre-gyp ERR! System Windows_NT 10.0.22621
npm error node-pre-gyp ERR! command "C:\Program Files\nodejs\node.exe" "C:\Dev\pdf-visual-diff\node_modules\@mapbox\node-pre-gyp\bin\node-pre-gyp" "install" "--fallback-to-build" "--update-binary"
npm error node-pre-gyp ERR! cwd C:\Dev\pdf-visual-diff\node_modules\canvas
npm error node-pre-gyp ERR! node -v v20.16.0
npm error node-pre-gyp ERR! node-pre-gyp -v v1.0.11
npm error node-pre-gyp ERR! not ok
The text was updated successfully, but these errors were encountered: