Closed Kayxue closed 2 years ago
Is the canvas
module also a dependency? If so, please see https://sharp.pixelplumbing.com/install#known-conflicts
@Kayxue Have you been able to fix it? and how? Thanks.
@Kayxue Have you been able to fix it? and how? Thanks.
Yes, I fixed this by usinstalling chartjs-node-canvas module
I have the same issue and don't have canvas installed
Hi,friend,did you fix it yet?
Did you see the documentation relating to installation?
Have you ensured the architecture and platform of Node.js used for
npm install
is the same as the architecture and platform of Node.js used at runtime? Idk, but I think the answer is yesAre you using the latest version? Is the version currently in use as reported by
npm ls sharp
the same as the latest version as reported bynpm view sharp dist-tags.latest
? Yes.If you are using npm v6 or earlier and installing as a
root
orsudo
user, have you tried with thenpm install --unsafe-perm
flag? My npm version is 8.1.3 and I tried this command but didn't help me solving this problem.If you are using npm v7, does the user running
npm install
own the directory it is run in? YesIf you are using the
ignore-scripts
feature ofnpm
, have you tried with thenpm install --ignore-scripts=false
flag? I tried but didn't help me solving this problem.What is the complete output of running
npm install --verbose sharp
? Have you checked this output for useful error messages? I tried but didn't see any error message.What is the output of running
npx envinfo --binaries --system
?Description: The module was installed successfully, but when I was running the code I wrote, and the console outputed this:
And I checked whether the file was exist...... The file was exist