我正在为 node.js 使用画布包它在我的电脑上运行良好,但每当我将它部署到 heroku 时,我总是会收到错误消息,这就是我得到的remote: -----> Installing dependenciesremote: Prebuild detected (node_modules already exists)remote: Rebuilding any native modulesremote:remote: > canvas@2.6.1 install /tmp/build_f373ac33/node_modules/canvasremote: > node-pre-gyp install --fallback-to-buildremote:remote: sh: 1: node-pre-gyp: Permission deniedremote: npm ERR! code ELIFECYCLEremote: npm ERR! errno 126remote: npm ERR! canvas@2.6.1 install: `node-pre-gyp install --fallback-to-build`remote: npm ERR! Exit status 126remote: npm ERR!remote: npm ERR! Failed at the canvas@2.6.1 install script.remote: npm ERR! This is probably not a problem with npm. There is likely additional logging output above.remote:remote: npm ERR! A complete log of this run can be found in:remote: npm ERR! /tmp/npmcache.bcUNy/_logs/2020-08-06T17_57_03_074Z-debug.logremote:remote: -----> Build failed我试过这个教程,但它没有用 https://github.com/Automattic/node-canvas/wiki/Installation%3A-Heroku
添加回答
举报
0/150
提交
取消
