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

Error: Module not found #1603

Closed
AndySharez opened this issue Aug 17, 2024 · 1 comment
Closed

Error: Module not found #1603

AndySharez opened this issue Aug 17, 2024 · 1 comment

Comments

@AndySharez
Copy link

AndySharez commented Aug 17, 2024

Hi,

I have installed npm as well as yarn on my system,
and if I run the command
npm run build
or
node index.js

I get the following error:

node: internal/modules/cjs/loader:1148
throw err;
^

Error: Cannot find module '../build/Release/canvas.node'
Require stack:

  • C:\Users\Andy\Desktop\hashlips_art_engine-main(2)\hashlips_art_engine-main\node_modules\canvas\lib\bindings.js
  • C:\Users\Andy\Desktop\hashlips_art_engine-main(2)\hashlips_art_engine-main\node_modules\canvas\lib\canvas.js
  • C:\Users\Andy\Desktop\hashlips_art_engine-main(2)\hashlips_art_engine-main\node_modules\canvas\index.js
  • C:\Users\Andy\Desktop\hashlips_art_engine-main(2)\hashlips_art_engine-main\src\main.js
  • C:\Users\Andy\Desktop\hashlips_art_engine-main(2)\hashlips_art_engine-main\index.js

and it tells me:

code: 'MODULE_NOT_FOUND',
requireStack: [
'C:\Users\Andy\hashlips_art_engine-main(2)\hashlips_art_engine-main\node_modules\canvas\lib\bindings.js',
'C:\Users\Andy\Desktop\hashlips_art_engine-main(2)\hashlips_art_engine-main\node_modules\canvas\lib\canvas.js',
'C:\Users\Andy\Desktop\hashlips_art_engine-main(2)\hashlips_art_engine-main\node_modules\canvas\index.js',
'C:\Users\Andy\Desktop\hashlips_art_engine-main(2)\hashlips_art_engine-main\src\main.js',
'C:\Users\Andy\Desktop\hashlips_art_engine-main(2)\hashlips_art_engine-main\index.js'

What exactly shall I do here,

has anyone had the same problem?

@AndySharez
Copy link
Author

Alright, found the issue.

#1586 (comment)

Thanks

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