Hello!
Today, I got a really weird problem with npm. For some reason, I can’t install canvas. It was working correctly, but glitch decided to compile everything again (libsodium, bufferutils, and canvas), and now, I can’t run my application because canvas is a dependency.
This is the error:
node 10.15.0, npm 6.4.1
Installing...
> canvas@2.3.1 install /app/node_modules/canvas
> node-pre-gyp install --fallback-to-build
node-pre-gyp WARN Using request for node-pre-gyp https download
node-pre-gyp ERR! Completion callback never invoked!
node-pre-gyp ERR! System Linux 4.4.0-1066-aws
node-pre-gyp ERR! command "/opt/nvm/versions/node/v10.15.0/bin/node" "/app/node_modules/canvas/node_modules/.bin/node-pre-gyp" "install" "--fallback-to-build"
node-pre-gyp ERR! cwd /app/node_modules/canvas
node-pre-gyp ERR! node -v v10.15.0
node-pre-gyp ERR! node-pre-gyp -v v0.11.0
node-pre-gyp ERR! This is a bug in `node-pre-gyp`.
node-pre-gyp ERR! Try to update node-pre-gyp and file an issue if it does not help:
node-pre-gyp ERR! <https://github.com/mapbox/node-pre-gyp/issues>
I updated node-pre-gyp, and… nothing. still can’t install canvas.