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.16k stars 4.3k forks source link

Am I just an Idiot? (NPM install issue) #381

Open Owil231 opened 2 years ago

Owil231 commented 2 years ago

When I run NPM install, sometimes it works, sometimes it doesn't.

Today I downloaded the latest update the generative art node, ran NPM install without any problems, generated several images with NPM run build, then saved and closed the project. when I reopened the project, attempting to run NPM run build produced several errors. Rather than spend hours troubleshooting, I reinstalled a fresh copy of the same version of the generative art node FROM THE SAME DAMN ZIP FILE I had used to successfully set up and run a project just minutes before, but when I ran NPM install, I got a long list of errors. Between the time I successfully ran NPM install and when I failed to run it, nothing about my setup changed — I didn't do anything else on my computer and I was using the exact same project files, just unzipped afresh.

I thought running NPM cache clean --force before rerunning NPM install might work, but it did not. I honestly have no idea what's happening here. Does anybody have any ideas?

The Errors I got after failing to run NPM run build were:

The Errors I got after failing to run NPM install were:

My setup:

Owil231 commented 2 years ago

Edit: npm (lowercase), not NPM

Update: as further proof of how inconsistent npm is for me, I just restarted my computer, repeated the whole process, and it worked. I have no doubt the problem will arise again, so any insight would still be much appreciated.

Thanks!

rrrroooorrrr commented 2 years ago

its a little tricky getting canvas installed. i had to use homebrew to install some additional libraries to support the node-pre-gyp stuff. I would check out the node-canvas README for the brew installation command. if you are on mac and using zshell you will also need to run a couple additional config commands to enable brew to work. after that you should be fine running npm i straight up.

uahmedio commented 2 years ago

Doesn't work for me. Did not do anything else?