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

Getting Invalid path for zip while Installing canvas package #1806

Closed
amitsaxen opened this issue May 19, 2021 · 10 comments
Closed

Getting Invalid path for zip while Installing canvas package #1806

amitsaxen opened this issue May 19, 2021 · 10 comments

Comments

@amitsaxen
Copy link

I am trying to install canvas using jenkins which executes command
[email protected] install /var/www/myapp/node_modules/canvas

I gives me an error saying:

�[91mnode-pre-gyp ERR! install response status 404 Not Found on https://github.com/Automattic/node-canvas/releases/download/v2.8.0/canvas-v2.8.0-node-v64-linux-glibc-x64.tar.gz
�[0m�[91mnode-pre-gyp WARN Pre-built binaries not installable for [email protected] and [email protected] (node-v64 ABI, glibc) (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.8.0/canvas-v2.8.0-node-v64-linux-glibc-x64.tar.gz

Actually the installation path is not valid anymore.

@apank
Copy link

apank commented May 19, 2021

Getting the same issue :(

@apank
Copy link

apank commented May 19, 2021

Was able to fix the issue temporally by the following updates to my package.json

"dependencies": {
"canvas": "2.7.0",
}

"resolutions": {
"chartjs-node-canvas/canvas": "2.7.0",
"canvas": "2.7.0"
}

@zbjornson
Copy link
Collaborator

You're using Node.js v10, which I didn't make prebuilds for because it is end of life. Are you able to upgrade?

@apank
Copy link

apank commented May 19, 2021

I was getting the error for - [email protected]

node-pre-gyp ERR! install response status 404 Not Found on https://github.com/Automattic/node-canvas/releases/download/v2.8.0/canvas-v2.8.0-node-v79-linux-glibc-x64.tar.gz
node-pre-gyp WARN Pre-built binaries not installable for [email protected] and [email protected] (node-v79 ABI, glibc) (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.8.0/canvas-v2.8.0-node-v79-linux-glibc-x64.tar.gz

@zbjornson
Copy link
Collaborator

I only made prebuilds for versions of Node.js that are currently supported (https://nodejs.org/en/about/releases/): 12, 14, 15, 16. Are you able to use a supported version?

@thomasaustin
Copy link

thomasaustin commented May 20, 2021

I'm also getting this error with Node 14.17.0. I tried changing the version in my package.json to 2.7.0 with no luck.

node-pre-gyp ERR! install response status 404 Not Found on https://github.com/Automattic/node-canvas/releases/download/v2.8.0/canvas-v2.8.0-node-v83-darwin-unknown-arm64.tar.gz
node-pre-gyp WARN Pre-built binaries not installable for [email protected] and [email protected] (node-v83 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.8.0/canvas-v2.8.0-node-v83-darwin-unknown-arm64.tar.gz

@amitsaxen
Copy link
Author

I only made prebuilds for versions of Node.js that are currently supported (https://nodejs.org/en/about/releases/): 12, 14, 15, 16. Are you able to use a supported version?

It was working fine with same version 2 days back...Suddenly it started failing.. Any specific reason for this?? Because nothing has been from our side in that duration

@amitsaxen
Copy link
Author

I only made prebuilds for versions of Node.js that are currently supported (https://nodejs.org/en/about/releases/): 12, 14, 15, 16. Are you able to use a supported version?

It was working fine with same version 2 days back...Suddenly it started failing.. Any specific reason for this?? Because nothing has been from our side in that duration

Can we have a fix for this as it is causing trouble to most of the users?

@zbjornson
Copy link
Collaborator

A new release was published two days ago, so if you're just installing canvas without specifying a version, you're picking up the new release. You can install 2.7.0 or use a supported version of node.

@thomasaustin your issue is different, we've never had arm prebuilds (see #1511).

@zbjornson
Copy link
Collaborator

I just made prebuilds for more versions of node (8 through 16).

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

No branches or pull requests

4 participants