尝试将canvacord部署到herkou时出错

时间:2020-08-01 15:50:36

标签: javascript

sh:1:node-pre-gyp:权限被拒绝

该应用程序可以在本地编译并正常运行,因此,我敢肯定它与部署设置有关。

这是完整的错误:

   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.PnhI1/_logs/2020-08-01T15_10_47_770Z-debug.log

1 个答案:

答案 0 :(得分:0)

您可以按照此维基https://github.com/Automattic/node-canvas/wiki/Installation:-Heroku在Heroku上进行node-canvas / canvacord安装。