Shashank3736 / captcha-canvas

A captcha generator by using skia-canvas.
https://captcha-canvas.js.org
Apache License 2.0
61 stars 11 forks source link

skia-canvas module not found #46

Closed Dreikam closed 1 year ago

Dreikam commented 2 years ago
\node_modules\captcha-canvas\node_modules\skia-canvas\lib\v6\index.node at Object.Module._extensions..node (node:internal/modules/cjs/loader:1210:18) at Module.load (node:internal/modules/cjs/loader:1004:32) at Function.Module._load (node:internal/modules/cjs/loader:839:12) at Module.require (node:internal/modules/cjs/loader:1028:19) at require (node:internal/modules/cjs/helpers:102:18) at Object. (\node_modules\captcha-canvas\node_modules\skia-canvas\lib\index.js:23:29) at Module._compile (node:internal/modules/cjs/loader:1126:14) at Object.Module._extensions..js (node:internal/modules/cjs/loader:1180:10) at Module.load (node:internal/modules/cjs/loader:1004:32) at Function.Module._load (node:internal/modules/cjs/loader:839:12) Emitted 'error' event on Client instance at: at emitUnhandledRejectionOrErr (node:events:394:10) at processTicksAndRejections (node:internal/process/task_queues:85:21) { code: 'ERR_DLOPEN_FAILED' i've already installed the module but the npm didnt found the dependecy. Its a version error or im doing something wrong? pd: is the same code that is in the documentation, I've tried to put captcha.async = true to test if this fixed but nope ![captcha code](https://user-images.githubusercontent.com/53442686/185837263-c84da9ab-14b6-4237-9a2f-c8cdb72326cc.png) ![canvas captcha](https://user-images.githubusercontent.com/53442686/185837029-29667f8d-7a86-4a2a-8b7f-7b4cad10ef7a.png)
Shashank3736 commented 2 years ago

Update captcha-canvas to latest version and see if the problem is still there