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

I have been getting this error every time i try to run engine Very frustrating #1436

Closed
puppetofsmut opened this issue Nov 6, 2022 · 16 comments

Comments

@puppetofsmut
Copy link

t

[therooster_any_cock_L_doo@fedora hashlips_art_engine-1.1.2_patch_v6]$ npm run generate

hashlips_art_engine@1.1.1 generate
node index.js

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

Error: Cannot find module '/home/therooster_any_cock_L_doo/Downloads/hashlips_art_engine-1.1.2_patch_v6/node_modules/sha1'
Require stack:

  • /home/therooster_any_cock_L_doo/Downloads/hashlips_art_engine-1.1.2_patch_v6/src/main.js
  • /home/therooster_any_cock_L_doo/Downloads/hashlips_art_engine-1.1.2_patch_v6/index.js
    at Module._resolveFilename (node:internal/modules/cjs/loader:995:15)
    at Module._load (node:internal/modules/cjs/loader:841:27)
    at Module.require (node:internal/modules/cjs/loader:1061:19)
    at require (node:internal/modules/cjs/helpers:103:18)
    at Object. (/home/therooster_any_cock_L_doo/Downloads/hashlips_art_engine-1.1.2_patch_v6/src/main.js:4:14)
    at Module._compile (node:internal/modules/cjs/loader:1159:14)
    at Module._extensions..js (node:internal/modules/cjs/loader:1213:10)
    at Module.load (node:internal/modules/cjs/loader:1037:32)
    at Module._load (node:internal/modules/cjs/loader:878:12)
    at Module.require (node:internal/modules/cjs/loader:1061:19) {
    code: 'MODULE_NOT_FOUND',
    requireStack: [
    '/home/therooster_any_cock_L_doo/Downloads/hashlips_art_engine-1.1.2_patch_v6/src/main.js',
    '/home/therooster_any_cock_L_doo/Downloads/hashlips_art_engine-1.1.2_patch_v6/index.js'
    ]
    }

Node.js v19.0.1
[therooster_any_cock_L_doo@fedora hashlips_art_engine-1.1.2_patch_v6]$

@bolshoytoster
Copy link

@puppetofsmut you need to run npm install first.

@puppetofsmut
Copy link
Author

i have npm installed

@puppetofsmut
Copy link
Author

oh before i do anything?

@bolshoytoster
Copy link

@puppetofsmut

oh before i do anything?

yes, before you can generate.

@puppetofsmut
Copy link
Author

Node.js v19.0.1
[therooster_any_cock_L_doo@fedora hashlips_art_engine]$ npm -v
8.5.0
[therooster_any_cock_L_doo@fedora hashlips_art_engine]$ npm run generate

hashlips_art_engine@1.1.1 generate
node index.js

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

Error: The module '/home/therooster_any_cock_L_doo/hashlips_art_engine/node_modules/canvas/build/Release/canvas.node'
was compiled against a different Node.js version using
NODE_MODULE_VERSION 93. This version of Node.js requires
NODE_MODULE_VERSION 111. Please try re-compiling or re-installing
the module (for instance, using npm rebuild or npm install).
at Module._extensions..node (node:internal/modules/cjs/loader:1243:18)
at Module.load (node:internal/modules/cjs/loader:1037:32)
at Module._load (node:internal/modules/cjs/loader:878:12)
at Module.require (node:internal/modules/cjs/loader:1061:19)
at require (node:internal/modules/cjs/helpers:103:18)
at Object. (/home/therooster_any_cock_L_doo/hashlips_art_engine/node_modules/canvas/lib/bindings.js:3:18)
at Module._compile (node:internal/modules/cjs/loader:1159:14)
at Module._extensions..js (node:internal/modules/cjs/loader:1213:10)
at Module.load (node:internal/modules/cjs/loader:1037:32)
at Module._load (node:internal/modules/cjs/loader:878:12) {
code: 'ERR_DLOPEN_FAILED'
}

Node.js v19.0.1
[therooster_any_cock_L_doo@fedora hashlips_art_engine]$ npm -v

@puppetofsmut
Copy link
Author

i didnt have this trouble first time using this art engine i dont really no coding so im lost

@bolshoytoster
Copy link

@puppetofsmut did you change your node.js version between running npm install and now?

@puppetofsmut
Copy link
Author

yes a bunch of times

@bolshoytoster
Copy link

@puppetofsmut you need to stay with one version. Delete the node_modules/ folder and run npm install again.

@puppetofsmut
Copy link
Author

i thoiught i had too cause of the error

@puppetofsmut
Copy link
Author

oh ok thats it?

@puppetofsmut
Copy link
Author

Node.js v19.0.1
[therooster_any_cock_L_doo@fedora hashlips_art_engine]$ npm -v
8.5.0
[therooster_any_cock_L_doo@fedora hashlips_art_engine]$ npm run generate

hashlips_art_engine@1.1.1 generate
node index.js

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

Error: The module '/home/therooster_any_cock_L_doo/hashlips_art_engine/node_modules/canvas/build/Release/canvas.node'
was compiled against a different Node.js version using
NODE_MODULE_VERSION 93. This version of Node.js requires
NODE_MODULE_VERSION 111. Please try re-compiling or re-installing
the module (for instance, using npm rebuild or npm install).
at Module._extensions..node (node:internal/modules/cjs/loader:1243:18)
at Module.load (node:internal/modules/cjs/loader:1037:32)
at Module._load (node:internal/modules/cjs/loader:878:12)
at Module.require (node:internal/modules/cjs/loader:1061:19)
at require (node:internal/modules/cjs/helpers:103:18)
at Object. (/home/therooster_any_cock_L_doo/hashlips_art_engine/node_modules/canvas/lib/bindings.js:3:18)
at Module._compile (node:internal/modules/cjs/loader:1159:14)
at Module._extensions..js (node:internal/modules/cjs/loader:1213:10)
at Module.load (node:internal/modules/cjs/loader:1037:32)
at Module._load (node:internal/modules/cjs/loader:878:12) {
code: 'ERR_DLOPEN_FAILED'
}

Node.js v19.0.1
[therooster_any_cock_L_doo@fedora hashlips_art_engine]$ npm -v

@puppetofsmut
Copy link
Author

yah i deleted that folder and this came up
i have three different versions of art engine do ineed to delete folder from all of them ?

@bolshoytoster
Copy link

@puppetofsmut you could try deleting all of them.

@puppetofsmut
Copy link
Author

im giving up on this its boring and frustrating now thanks for trying to help though

@FuManchuBarber
Copy link

You are using the wrong version of node v14.17.0 works

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

3 participants