ERR_DLOPEN_FAILED
See original GitHub issueHello, 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:
- Created 2 years ago
- Comments:6
Top Related StackOverflow Question
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
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