Closed amyipdev closed 4 years ago
Try using a lower nodejs version; node-canvas installs fine for me on node v8.
I'm guessing this package isn't ready yet for node v10+
1898 verbose stack Error: canvas@2.6.1 install: `node-pre-gyp install --fallback-to-build` 1898 verbose stack Exit status 1 1898 verbose stack at EventEmitter.<anonymous> (/usr/share/npm/node_modules/npm-lifecycle/index.js:283:16)
Unfortunately that message isn't useful. I'd try
npm i canvas
.npm install
in this directory. You'll get more output from the actual build. (yarn might also give more info.)I'm guessing this package isn't ready yet for node v10+
node-canvas works with v8-v13.
@zbjornson I've figured out the problem. Node (recently updated to v13) is preventing me from installing libnode64 and libnode-dev, which is required for node-gyp, which is crashing the installer as there is no directory for node-gyp making it give a Permission denied
error. Basically I just need to find a way to tell Node's dependencies to shut up.
I'm not sure without more specifics, but that still sounds like it could be caused by using sudo
with npm i canvas
. Did you try without sudo?
If you're still hitting this issue after trying the suggestion from zbjornson, please leave a comment and I'll re-open.
I'm trying to install Canvas
Issue or Feature
https://paste.ubuntu.com/p/dYP7snvndx/
Steps to Reproduce
Your Environment
npm list canvas
oryarn list canvas
): This is the whole problem