ERR_DLOPEN_FAILED

See original GitHub issue

Hello, I have very little knowledge about coding, can you help me? I did my npm install wanted to test run it, when I ran npm run generate it shows this error.

Node Js: v16.14.0

PS C:\Users\weiho\Desktop\hashlips_art_engine-main> npm run generate

hashlips_art_engine@1.1.1 generate node index.js

node:internal/modules/cjs/loader:1185 return process.dlopen(module, path.toNamespacedPath(filename)); ^

Error: The module ‘\?\C:\Users\weiho\Desktop\hashlips_art_engine-main\node_modules\canvas\build\Release\canvas.node’ was compiled against a different Node.js version using NODE_MODULE_VERSION 83. This version of Node.js requires NODE_MODULE_VERSION 93. Please try re-compiling or re-installing the module (for instance, using npm rebuild or npm install). at Object.Module._extensions…node (node:internal/modules/cjs/loader:1185:18) at Module.load (node:internal/modules/cjs/loader:981:32) at Function.Module._load (node:internal/modules/cjs/loader:822:12) at Module.require (node:internal/modules/cjs/loader:1005:19) at require (node:internal/modules/cjs/helpers:102:18) at Object.<anonymous> (C:\Users\weiho\Desktop\hashlips_art_engine-main\node_modules\canvas\lib\bindings.js:3:18) at Module._compile (node:internal/modules/cjs/loader:1103:14) at Object.Module._extensions…js (node:internal/modules/cjs/loader:1155:10) at Module.load (node:internal/modules/cjs/loader:981:32) at Function.Module._load (node:internal/modules/cjs/loader:822:12) { code: ‘ERR_DLOPEN_FAILED’ } PS C:\Users\weiho\Desktop\hashlips_art_engine-main>

I also tried ‘npm rebuildandnpm install’

Issue Analytics

  • State:open
  • Created 2 years ago
  • Comments:6

github_iconTop GitHub Comments

2reactions
shivani1406commented, Feb 28, 2022

You can check what version of node you are using nvm ls (to list out the node versions)

try changing the node version to check and run the command again nvm use version_number (to change the version)

I changed the node version to 12.22.7 , thus worked for me. Hope this helps

1reaction
ReliableNFTcommented, Apr 1, 2022

I had the same issue and managed to get around it by deleting the folder NODE MODULES, and then using npm i to install the repo again. After that, npm run generate worked again. Using Node.js v17.8.0

Read more comments on GitHub >

github_iconTop Results From Across the Web

Error: dlopen failed: cannot locate symbol ... - GitHub
New error is that there is an old version of gradle, but the gradle distribution urls were edited. What can overwrite these and...
Read more >
Fixing the error in node nodemon start app.js code - YouTube
Fixing the error in node nodemon start app.js code: ERR DLOPEN FAILED. 2.3K views 6 months ago. PROGRAMMER. PROGRAMMER. 6 subscribers.
Read more >
How can I figure out the cause of this DLOPEN error while ...
dlopen is a library in C and C++ that is used to load other libraries. Your error say a module/library couldn't be found,...
Read more >
Dlopen fails after the app is sign… | Apple Developer Forums
Now we have a problem. After signing with the codesign command, dlopen will fail, and the output error message is "image not found"....
Read more >
Errors | Node.js v19.3.0 Documentation
Errors. Error propagation and interception. Error-first callbacks. Class: Error ... Added in: v15.0.0. A call to process.dlopen() failed.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found