I Googled and asked the community in the discord server but could not find a solution.
Relevant log output
PS C:\Users\USER\Documents\Crypto Generator 3\create-10k-nft-collection-0.1.0-alpha> npm run generate
> 10k-collection-video@0.1.0 generate
> node index.js
node:internal/modules/cjs/loader:1183
return process.dlopen(module, path.toNamespacedPath(filename));
^
Error: \\?\C:\Users\USER\Documents\Crypto Generator 3\create-10k-nft-collection-0.1.0-alpha\node_modules\canvas\build\Release\canvas.node is not a valid Win32 application.
\\?\C:\Users\USER\Documents\Crypto Generator 3\create-10k-nft-collection-0.1.0-alpha\node_modules\canvas\build\Release\canvas.node
at Object.Module._extensions..node (node:internal/modules/cjs/loader:1183:18)
at Module.load (node:internal/modules/cjs/loader:975:32)
at Function.Module._load (node:internal/modules/cjs/loader:822:12)
at Module.require (node:internal/modules/cjs/loader:999:19)
at require (node:internal/modules/cjs/helpers:102:18)
at Object.<anonymous> (C:\Users\USER\Documents\Crypto Generator 3\create-10k-nft-collection-0.1.0-alpha\node_modules\canvas\lib\bindings.js:3:18)
at Module._compile (node:internal/modules/cjs/loader:1099:14)
at Object.Module._extensions..js (node:internal/modules/cjs/loader:1153:10)
at Module.load (node:internal/modules/cjs/loader:975:32)
at Function.Module._load (node:internal/modules/cjs/loader:822:12) {
code: 'ERR_DLOPEN_FAILED'
}
Node.js v17.7.1
i have tried Reinstalling code, rebooting, moving to public folder, checking all .png files, deleting package-lock file and reinstalling, The file points to the right path.
Version
General Question
What happened?
A bug happened!
What have you tried?
I Googled and asked the community in the discord server but could not find a solution.
Relevant log output
Protect your information