Open Owil231 opened 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!
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.
Doesn't work for me. Did not do anything else?
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 withNPM run build
, then saved and closed the project. when I reopened the project, attempting to runNPM 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 ranNPM install
, I got a long list of errors. Between the time I successfully ranNPM 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 rerunningNPM 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:node index.js
The Errors I got after failing to run
NPM install
were:node-pre-gyp install --fallback-to-build
My setup: