如何解决无法使用画布?
有一个名为“ canvas” 的节点包。构建时出现此错误。
----->安装依赖项 检测到预构建(node_modules已经存在) 重建任何本机模块
> canvas@2.6.1 install /tmp/build_5b4bf101_/node_modules/canvas > node-pre-gyp install --fallback-to-build sh: 1: node-pre-gyp: Permission denied npm ERR! code ELIFECYCLE npm ERR! errno 126 npm ERR! canvas@2.6.1 install: `node-pre-gyp install --fallback-to-build` npm ERR! Exit status 126 npm ERR! npm ERR! Failed at the canvas@2.6.1 install script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above. npm ERR! A complete log of this run can be found in: npm ERR! /tmp/npmcache.A3UV0/_logs/2020-08-25T21_03_55_656Z-debug.log
----->构建失败
We're sorry this build is failing! You can troubleshoot common issues here: https://devcenter.heroku.com/articles/troubleshooting-node-deploys Some possible problems: - node_modules checked into source control https://devcenter.heroku.com/articles/node-best-practices#only-git-the-important-bits - Node version not specified in package.json https://devcenter.heroku.com/articles/nodejs-support#specifying-a-node-js-version Love,Heroku ! Push rejected,failed to compile Node.js app. ! Push failed
我认为,普通画布无权安装node-pre-gyp。我想知道是否有解决办法?我已经尝试安装它的软件包,但是没关系。
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。