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

404 Not Found on canvas-v2.11.2-node-v127-win32-unknown-x64.tar.gz #2430

Open
xalteropsx opened this issue Sep 19, 2024 · 4 comments
Open

404 Not Found on canvas-v2.11.2-node-v127-win32-unknown-x64.tar.gz #2430

xalteropsx opened this issue Sep 19, 2024 · 4 comments

Comments

@xalteropsx
Copy link

xalteropsx commented Sep 19, 2024

tried npm clean cache
also install node-pre-gyp fresh

window 11
latest node version

error X:\sad\practice\Ragna\node_modules\canvas: Command failed.
Exit code: 7
Command: node-pre-gyp install --fallback-to-build --update-binary
Arguments:
Directory: X:\sad\practice\Ragna\node_modules\canvas
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:14152) [DEP0040] DeprecationWarning: The punycode module is deprecated. Please use a userland alternative instead.
(Use node --trace-deprecation ... to show where the warning was created)
node-pre-gyp http GET https://github.com/Automattic/node-canvas/releases/download/v2.11.2/canvas-v2.11.2-node-v127-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.11.2/canvas-v2.11.2-node-v127-win32-unknown-x64.tar.gz
node-pre-gyp WARN Pre-built binaries not installable for [email protected] and [email protected] (node-v127 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.11.2/canvas-v2.11.2-node-v127-win32-unknown-x64.tar.gz
node-pre-gyp ERR! UNCAUGHT EXCEPTION
node-pre-gyp ERR! stack Error: spawn EINVAL
node-pre-gyp ERR! stack at ChildProcess.spawn (node:internal/child_process:420:11)
node-pre-gyp ERR! stack at Object.spawn (node:child_process:761:9)
node-pre-gyp ERR! stack at module.exports.run_gyp (X:\sad\practice\Ragna\node_modules@mapbox\node-pre-gyp\lib\util\compile.js:80:18)
node-pre-gyp ERR! stack at build (X:\sad\practice\Ragna\node_modules@mapbox\node-pre-gyp\lib\build.js:41:13)
node-pre-gyp ERR! stack at self.commands. [as build] (X:\sad\practice\Ragna\node_modules@mapbox\node-pre-gyp\lib\node-pre-gyp.js:86:37)
node-pre-gyp ERR! stack at run (X:\sad\practice\Ragna\node_modules@mapbox\node-pre-gyp\lib\main.js:81:30)
node-pre-gyp ERR! stack at process.processTicksAndRejections (node:internal/process/task_queues:85:11)
node-pre-gyp ERR! System Windows_NT 10.0.22631
node-pre-gyp ERR! command "X:\z\nodejs\node.exe" "X:\sad\practice\Ragna\node_modules\@mapbox\node-pre-gyp\bin\node-pre-gyp" "install" "--fallback-to-build" "--update-binary"

X:\sad\practice\Ragna>node-pre-gyp install --fallback-to-build --update-binary
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 WARN Using needle for node-pre-gyp https download
node-pre-gyp ERR! install error
node-pre-gyp ERR! stack Error: amd package.json is not node-pre-gyp ready:
node-pre-gyp ERR! stack package.json must declare these properties:
node-pre-gyp ERR! stack main
node-pre-gyp ERR! stack binary.module_name
node-pre-gyp ERR! stack binary.module_path
node-pre-gyp ERR! stack binary.host
node-pre-gyp ERR! stack at validate_config (C:\Users\haide\AppData\Roaming\npm\node_modules\node-pre-gyp\lib\util\versioning.js:220:15)
node-pre-gyp ERR! stack at module.exports.evaluate (C:\Users\haide\AppData\Roaming\npm\node_modules\node-pre-gyp\lib\util\versioning.js:279:5)
node-pre-gyp ERR! stack at install (C:\Users\haide\AppData\Roaming\npm\node_modules\node-pre-gyp\lib\install.js:241:31)
node-pre-gyp ERR! stack at self.commands. [as install] (C:\Users\haide\AppData\Roaming\npm\node_modules\node-pre-gyp\lib\node-pre-gyp.js:52:37)
node-pre-gyp ERR! stack at run (C:\Users\haide\AppData\Roaming\npm\node_modules\node-pre-gyp\bin\node-pre-gyp:82:30)
node-pre-gyp ERR! stack at Object. (C:\Users\haide\AppData\Roaming\npm\node_modules\node-pre-gyp\bin\node-pre-gyp:134:1)
node-pre-gyp ERR! stack at Module._compile (node:internal/modules/cjs/loader:1546:14)
node-pre-gyp ERR! stack at Module._extensions..js (node:internal/modules/cjs/loader:1691:10)
node-pre-gyp ERR! stack at Module.load (node:internal/modules/cjs/loader:1317:32)
node-pre-gyp ERR! stack at Module._load (node:internal/modules/cjs/loader:1127:12)
node-pre-gyp ERR! System Windows_NT 10.0.22631
node-pre-gyp ERR! command "X:\z\nodejs\node.exe" "C:\Users\haide\AppData\Roaming\npm\node_modules\node-pre-gyp\bin\node-pre-gyp" "install" "--fallback-to-build" "--update-binary"
node-pre-gyp ERR! cwd X:\sad\practice\Ragna
node-pre-gyp ERR! node -v v22.9.0
node-pre-gyp ERR! node-pre-gyp -v v0.17.0
node-pre-gyp ERR! not ok
amd package.json is not node-pre-gyp ready:
package.json must declare these properties:
main
binary.module_name
binary.module_path
binary.host

@Downchuck
Copy link

This is for node v22 which was released in 2024, where the canvas pre-built binaries were released a year prior.

Note that canvas@next has a more recent build.

@rynop
Copy link

rynop commented Sep 25, 2024

@Downchuck canvas v3/next is not prod ready (it is still RC).

Are there any plans for node v22 pre-built binaries as it is the current and soon to be active LTS? @see https://nodejs.org/en/about/previous-releases

@Downchuck
Copy link

@rynop I'm not a part of the maintainers - but you make a good argument for a node v22 pre build of the prior version. It would have made my life a bit easier last week to have that, as well as an available musl build for alpine images.

Hoping to get some time in shortly to see if I can put together a PR.

@mikhailbartashevich
Copy link

Same issue for Linux [email protected]
node-pre-gyp ERR! install response status 404 Not Found on https://github.com/Automattic/node-canvas/releases/download/v2.11.2/canvas-v2.11.2-node-v127-linux-glibc-x64.tar.gz

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

4 participants