我正在為 node.js 使用畫布包它在我的電腦上運(yùn)行良好,但每當(dāng)我將它部署到 heroku 時(shí),我總是會(huì)收到錯(cuò)誤消息,這就是我得到的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我試過(guò)這個(gè)教程,但它沒(méi)有用 https://github.com/Automattic/node-canvas/wiki/Installation%3A-Heroku
嘗試在 Heroku 上安裝 node.js 畫布時(shí)出現(xiàn)“權(quán)限被拒絕”
回首憶惘然
2022-12-22 11:55:33