Automattic / Automattic/node-canvas

Failed at the canvas@2.6.1 install script. - Heroku

Open
#1,727 2 comments 0 reactions 0 assignees View on GitHub
Installation help
Dominant language
JavaScript
Stars
10.7k
Forks
1.2k
Avg merge
4d 8h
Merged PRs (30d)
1

Description

-----> Node.js app detected

-----> Creating runtime environment

NPM_CONFIG_LOGLEVEL=error
NODE_ENV=production
NODE_MODULES_CACHE=true
NODE_VERBOSE=false

-----> Installing binaries
engines.node (package.json): unspecified
engines.npm (package.json): unspecified (use default)

Resolving node version 12.x...
Downloading and installing node 12.20.1...
Using default npm version: 6.14.10

-----> Restoring cache
Cached directories were not restored due to a change in version of node, npm, yarn or stack
Module installation may take longer for this build

-----> Installing dependencies
Prebuild detected (node_modules already exists)
Rebuilding any native modules

> canvas@2.6.1 install /tmp/build_16b697e8_/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.Wra6d/_logs/2021-01-06T21_49_44_800Z-debug.log
-----> Build failed

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

canvas version: 2.6.1
node.js version: 15.0.1
This only happens when I try to push heroku, in my normal windows it works without problems.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.