-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Installation Issue #1573
Comments
Hello! Did you fix this error? I am having the same issue and haven't found a solution yet. |
Could you please explain how you fixed this issue? I am also having the same issue. |
I'm getting the same error. It seems like it can't find the prebuilt binary for I went back to node v12.13.1 and it installed without problems. |
@ShinobisSneaky can you fill us in on how you fixed the problem? thanks! |
This seems to be this issue tracked in needle: tomas/needle#312 |
sorry everyone for not responding, my problem was I had a version of node that just released that day so canvas packages were not updated for this version. One thing I found that helps if you have this problem when you are building your app is add the package "cairo" in the package.json file. I am not 100% how it fixed it but once I added the build would succeed. @PilHliP211 @DeemoHarlos @Uninvited6766 @daviddavid |
'cairo' added in package.json:
However, npm i canvas still got error:
|
node-pre-gyp (the package that is attempting to download prebuilds) will use request instead of needle if it's installed, so you could install that first to work around the bug in needle that I linked to above.
I don't think that will help. It looks like something to do with React. https://www.npmjs.com/package/cairo |
Yeah I did not believe cairo would help but it is kind of weird, when I was deploying my app to Heroku, Canvas would constantly fail to build, than I added cairo I do not remember my reasoning behind it, but after I did that the build deployed successfully. I am not very knowledgeable in this stuff. |
Installing the cairo package did not work for me. Could this issue be investigated further? |
For me, what worked was downgrading node to an earlier version. This issue
seems to only occur on the up to date versions of node.
marcosflick <[email protected]> (šajā datumā: trešd., 2020. gada 20.
maijs 12:26) rakstīja:
… Installing the cairo package did not work for me.
Could this issue be investigated further?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#1573 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ALRA6BZZU3SSGYQA5MEIT4DRSOO43ANCNFSM4M2DOK4A>
.
|
@marcosflick @Uninvited6766 see the top entry in #1511 or my comments above: Installation fails with Node.js v12.16.3 and laterThis is due to an upstream issue in the module that downloads prebuilds: tomas/needle#312. That issue will hopefully be fixed today, 20-May. Workarounds:
|
This was helpful ^ PSA: the problem is still happening today. I'm on node 14.5 and the install was failing until I added |
I have been attempting for a while now with no success, I was able to install canvas perfectly fine before I reset my pc due to some issues, now whenever I attempt to Install Canvas I get this error.
Issue or Feature
A Little More Info
I never used to go through an install process like this before either, it would just install like any other package.
Before this error started happening though. It essentially said it could not find visual studio code. So I installed the launcher than installed the build pack than I started getting this issue.
All in all I have become very confused because before I reset my pc I did not have to go through all this process to install canvas.
Your Environment
npm version 6.14.4
Visual Studio Code (just the one from their website, it really has no year)
Windows 10 Home
The text was updated successfully, but these errors were encountered: