HashLips / hashlips_art_engine

HashLips Art Engine is a tool used to create multiple different instances of artworks based on provided layers.
MIT License
7.17k stars 4.3k forks source link

node index.js not working #1271

Open cool4556 opened 2 years ago

cool4556 commented 2 years ago

PS C:\Users\hudson\Desktop\hashlips_art_engine-main\hashlips_art_engine-main\src> node index.js node:internal/modules/cjs/loader:936 throw err; ^

Error: Cannot find module 'C:\Users\hudson\Desktop\hashlips_art_engine-main\hashlips_art_engine-main\src\index.js' at Function.Module._resolveFilename (node:internal/modules/cjs/loader:933:15) at Function.Module._load (node:internal/modules/cjs/loader:778:27) at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:81:12) at node:internal/main/run_main_module:17:47 { code: 'MODULE_NOT_FOUND', requireStack: []

bolshoytoster commented 2 years ago

@cool4556 run cd .. then you can run node index.js.

cool4556 commented 2 years ago

still does not work

bolshoytoster commented 2 years ago

@cool4556 can you paste the error please

cool4556 commented 2 years ago

Error: Cannot find module 'C:\Users\hudson\index.js' at Function.Module._resolveFilename (node:internal/modules/cjs/loader:933:15) at Function.Module._load (node:internal/modules/cjs/loader:778:27) at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:81:12) at node:internal/main/run_main_module:17:47 { code: 'MODULE_NOT_FOUND', requireStack: []

bolshoytoster commented 2 years ago

@cool4556 cd is relative to your current path, opening a new terminal resets your path.

Just run cd C:\Users\hudson\Desktop\hashlips_art_engine-main\hashlips_art_engine-main to go to the correct place.

cool4556 commented 2 years ago

it still isn't working

cool4556 commented 2 years ago

Error: EACCES, Permission denied 'C:\Users\hudson\Desktop\hashlips_art_engine-main\hashlips_art_engine-main/layers/body/legendary' at setSource (C:\Users\hudson\Desktop\hashlips_art_engine-main\hashlips_art_engine-main\node_modules\canvas\lib\image.js:91:13)
at Image.set (C:\Users\hudson\Desktop\hashlips_art_engine-main\hashlips_art_engine-main\node_modules\canvas\lib\image.js:62:9) at C:\Users\hudson\Desktop\hashlips_art_engine-main\hashlips_art_engine-main\node_modules\canvas\index.js:34:15 at new Promise () at loadImage (C:\Users\hudson\Desktop\hashlips_art_engine-main\hashlips_art_engine-main\node_modules\canvas\index.js:23:10) at C:\Users\hudson\Desktop\hashlips_art_engine-main\hashlips_art_engine-main\src\main.js:181:25 at new Promise () at loadLayerImg (C:\Users\hudson\Desktop\hashlips_art_engine-main\hashlips_art_engine-main\src\main.js:180:10) at C:\Users\hudson\Desktop\hashlips_art_engine-main\hashlips_art_engine-main\src\main.js:361:31 at Array.forEach () { errno: 13, code: 'EACCES', path: 'C:\Users\hudson\Desktop\hashlips_art_engine-main\hashlips_art_engine-main/layers/body/legendary', syscall: 'fopen'

bolshoytoster commented 2 years ago

@cool4556 it doesn't have permission to access layers/body/legendary; try running this in an admin powershell.

cool4556 commented 2 years ago

how do I do that ?

bolshoytoster commented 2 years ago

@cool4556 https://www.howtogeek.com/742916/how-to-open-windows-powershell-as-an-admin-in-windows-10/

cool4556 commented 2 years ago

still does not work

bolshoytoster commented 2 years ago

@cool4556 can you paste the error from running it in the admin powershell please.