Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Node 23, Windows 11, Canvas Error #2489

Open
AliAryanTech opened this issue Feb 15, 2025 · 0 comments
Open

Node 23, Windows 11, Canvas Error #2489

AliAryanTech opened this issue Feb 15, 2025 · 0 comments

Comments

@AliAryanTech
Copy link

AliAryanTech commented Feb 15, 2025

I'd try to install using bun, npm, yarn
same error tho, I can't downgrade my node version coz of other modules.

"canvas": "^3.1.0"

Terminal logs:

📦 Installing [879/844] node-pre-gyp info it worked if it ends with ok
node-pre-gyp info using [email protected]
node-pre-gyp info using [email protected] | win32 | x64
node-pre-gyp ERR! UNCAUGHT EXCEPTION
node-pre-gyp ERR! stack TypeError: Class extends value #<Object> is not a constructor or null
node-pre-gyp ERR! stack     at Object.<anonymous> (C:\Users\Dell\Documents\GitHub\App\node_modules\minizlib\index.js:192:4)      
node-pre-gyp ERR! stack     at Module._compile (node:internal/modules/cjs/loader:1723:14)
node-pre-gyp ERR! stack     at Object..js (node:internal/modules/cjs/loader:1888:10)
node-pre-gyp ERR! stack     at Module.load (node:internal/modules/cjs/loader:1458:32)
node-pre-gyp ERR! stack     at Function._load (node:internal/modules/cjs/loader:1275:12)
node-pre-gyp ERR! stack     at TracingChannel.traceSync (node:diagnostics_channel:322:14)
node-pre-gyp ERR! stack     at wrapModuleLoad (node:internal/modules/cjs/loader:234:24)
node-pre-gyp ERR! stack     at Module.require (node:internal/modules/cjs/loader:1480:12)
node-pre-gyp ERR! stack     at require (node:internal/modules/helpers:135:16)
node-pre-gyp ERR! stack     at Object.<anonymous> (C:\Users\Dell\Documents\GitHub\App\node_modules\tar\lib\pack.js:26:14)        
node-pre-gyp ERR! stack     at Object.<anonymous> (C:\Users\Dell\Documents\GitHub\App\node_modules\minizlib\index.js:192:4)      
node-pre-gyp ERR! stack     at Module._compile (node:internal/modules/cjs/loader:1723:14)
node-pre-gyp ERR! stack     at Object..js (node:internal/modules/cjs/loader:1888:10)
node-pre-gyp ERR! stack     at Module.load (node:internal/modules/cjs/loader:1458:32)
node-pre-gyp ERR! stack     at Function._load (node:internal/modules/cjs/loader:1275:12)
node-pre-gyp ERR! stack     at TracingChannel.traceSync (node:diagnostics_channel:322:14)
node-pre-gyp ERR! stack     at wrapModuleLoad (node:internal/modules/cjs/loader:234:24)
node-pre-gyp ERR! stack     at Module.require (node:internal/modules/cjs/loader:1480:12)
node-pre-gyp ERR! stack     at require (node:internal/modules/helpers:135:16)
node-pre-gyp ERR! stack     at Object.<anonymous> (C:\Users\Dell\Documents\GitHub\App\node_modules\tar\lib\pack.js:26:14)        
node-pre-gyp ERR! stack     at Module._compile (node:internal/modules/cjs/loader:1723:14)
node-pre-gyp ERR! stack     at Object..js (node:internal/modules/cjs/loader:1888:10)
node-pre-gyp ERR! stack     at Module.load (node:internal/modules/cjs/loader:1458:32)
node-pre-gyp ERR! stack     at Function._load (node:internal/modules/cjs/loader:1275:12)
node-pre-gyp ERR! stack     at TracingChannel.traceSync (node:diagnostics_channel:322:14)
node-pre-gyp ERR! stack     at wrapModuleLoad (node:internal/modules/cjs/loader:234:24)
node-pre-gyp ERR! stack     at Module.require (node:internal/modules/cjs/loader:1480:12)
node-pre-gyp ERR! stack     at require (node:internal/modules/helpers:135:16)
node-pre-gyp ERR! stack     at Object.<anonymous> (C:\Users\Dell\Documents\GitHub\App\node_modules\tar\lib\pack.js:26:14)        
node-pre-gyp ERR! stack     at Object..js (node:internal/modules/cjs/loader:1888:10)
node-pre-gyp ERR! stack     at Module.load (node:internal/modules/cjs/loader:1458:32)
node-pre-gyp ERR! stack     at Function._load (node:internal/modules/cjs/loader:1275:12)
node-pre-gyp ERR! stack     at TracingChannel.traceSync (node:diagnostics_channel:322:14)
node-pre-gyp ERR! stack     at wrapModuleLoad (node:internal/modules/cjs/loader:234:24)
node-pre-gyp ERR! stack     at Module.require (node:internal/modules/cjs/loader:1480:12)
node-pre-gyp ERR! stack     at require (node:internal/modules/helpers:135:16)
node-pre-gyp ERR! stack     at Object.<anonymous> (C:\Users\Dell\Documents\GitHub\App\node_modules\tar\lib\pack.js:26:14)        
node-pre-gyp ERR! stack     at Function._load (node:internal/modules/cjs/loader:1275:12)
node-pre-gyp ERR! stack     at TracingChannel.traceSync (node:diagnostics_channel:322:14)
node-pre-gyp ERR! stack     at wrapModuleLoad (node:internal/modules/cjs/loader:234:24)
node-pre-gyp ERR! stack     at Module.require (node:internal/modules/cjs/loader:1480:12)
node-pre-gyp ERR! stack     at require (node:internal/modules/helpers:135:16)
node-pre-gyp ERR! stack     at Object.<anonymous> (C:\Users\Dell\Documents\GitHub\App\node_modules\tar\lib\pack.js:26:14)        
node-pre-gyp ERR! stack     at Module.require (node:internal/modules/cjs/loader:1480:12)
node-pre-gyp ERR! stack     at require (node:internal/modules/helpers:135:16)
node-pre-gyp ERR! stack     at Object.<anonymous> (C:\Users\Dell\Documents\GitHub\App\node_modules\tar\lib\pack.js:26:14)        
node-pre-gyp ERR! stack     at require (node:internal/modules/helpers:135:16)
node-pre-gyp ERR! stack     at Object.<anonymous> (C:\Users\Dell\Documents\GitHub\App\node_modules\tar\lib\pack.js:26:14)        
node-pre-gyp ERR! stack     at Object.<anonymous> (C:\Users\Dell\Documents\GitHub\App\node_modules\tar\lib\pack.js:26:14)        
node-pre-gyp ERR! System Windows_NT 10.0.26120
node-pre-gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "C:\\Users\\Dell\\Documents\\GitHub\\App\\node_modules\\@mapbox\\node-pre-gyp\\bin\\node-pre-gyp" "install" "--fallback-to-build" "--update-binary"
node-pre-gyp ERR! cwd C:\Users\Dell\Documents\GitHub\App\node_modules\canvas-chan\node_modules\canvas
node-pre-gyp ERR! node -v v23.7.0
node-pre-gyp ERR! node-pre-gyp -v v1.0.11

error: install script from "canvas" exited with 7
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant