Automattic / Automattic/node-canvas

Cannot find module '../build/Release/canvas.node'

Open
#2,425 4 comments 5 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

it's error for latest and prebuild

Axioo@MyBook11G MINGW64 ~/Downloads/coding/backup/Elaina-MD2 (main)
$ node -v
v22.5.1

Axioo@MyBook11G MINGW64 ~/Downloads/coding/backup/Elaina-MD2 (main)
$ npm i canvas@3.0.0-rc2~
npm error code ETARGET
npm error notarget No matching version found for canvas@3.0.0-rc2~.
npm error notarget In most cases you or one of your dependencies are requesting
npm error notarget a package version that doesn't exist.
npm error A complete log of this run can be found in: C:\Users\Axioo\AppData\Local\npm-cache\_logs\2024-08-27T12_54_31_732Z-debug-0.log

Axioo@MyBook11G MINGW64 ~/Downloads/coding/backup/Elaina-MD2 (main)
$ npm i canvas@3.0.0-rc2
npm warn deprecated inflight@1.0.6: This module is not supported, and leaks memory. Do not use it. Check out lru-cache if you want a good and tested way to coalesce async requests by a key value, which is much more comprehensive and powerful.
npm warn deprecated npmlog@5.0.1: This package is no longer supported.
npm warn deprecated rimraf@3.0.2: Rimraf versions prior to v4 are no longer supported
npm warn deprecated glob@7.2.3: Glob versions prior to v9 are no longer supported
npm warn deprecated are-we-there-yet@2.0.0: This package is no longer supported.
npm warn deprecated gauge@3.0.2: This package is no longer supported.

npm error code 2
npm error git dep preparation failed
npm error command C:\Program Files\nodejs\node.exe C:\Users\Axioo\AppData\Roaming\npm\node_modules\npm\bin\npm-cli.js install --force --cache=C:\Users\Axioo\AppData\Local\npm-cache --prefer-offline=false --prefer-online=false --offline=false --no-progress --no-save --no-audit --include=dev --include=peer --include=optional --no-package-lock-only --no-dry-run
npm error > @xct007/frieren-scraper@0.0.2 prepare
npm error > npm run build:all
npm error
npm error
npm error > @xct007/frieren-scraper@0.0.2 build:all
npm error > npm run clean && npm run build:esm && npm run build:cjs && npm run build:types && npm run fix && node scripts/write-package.js
npm error
npm error
npm error > @xct007/frieren-scraper@0.0.2 clean
npm error > rimraf ./dist
npm error
npm error
npm error > @xct007/frieren-scraper@0.0.2 build:esm
npm error > tsc -p tsconfig.esm.json
npm error
npm error node_modules/cheerio/dist/commonjs/index.d.ts(7,1): error TS1383: Only named exports may use 'export type'.
npm error node_modules/cheerio/dist/commonjs/slim.d.ts(9,1): error TS1383: Only named exports may use 'export type'.
npm error npm warn using --force Recommended protections disabled.
npm error npm warn deprecated inflight@1.0.6: This module is not supported, and leaks memory. Do not use it. Check out lru-cache if you want a good and tested way to coalesce async requests by a key value, which is much more comprehensive and powerful.
npm error npm warn deprecated @humanwhocodes/config-array@0.11.14: Use @eslint/config-array instead
npm error npm warn deprecated rimraf@3.0.2: Rimraf versions prior to v4 are no longer supported
npm error npm warn deprecated glob@7.2.3: Glob versions prior to v9 are no longer supported
npm error npm warn deprecated @humanwhocodes/object-schema@2.0.3: Use @eslint/object-schema instead
npm error npm warn using --force Recommended protections disabled.
npm error npm warn using --force Recommended protections disabled.
npm error npm warn using --force Recommended protections disabled.
npm error npm error code 2
npm error npm error path C:\Users\Axioo\AppData\Local\npm-cache\_cacache\tmp\git-cloneXXXXXXUg6ZOs
npm error npm error command failed
npm error npm error command C:\Windows\system32\cmd.exe /d /s /c npm run build:all
npm error npm error A complete log of this run can be found in: C:\Users\Axioo\AppData\Local\npm-cache\_logs\2024-08-27T12_56_00_832Z-debug-0.log
npm error A complete log of this run can be found in: C:\Users\Axioo\AppData\Local\npm-cache\_logs\2024-08-27T12_54_47_673Z-debug-0.log

Axioo@MyBook11G MINGW64 ~/Downloads/coding/backup/Elaina-MD2 (main)
$

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.