Closed uxwellbeing closed 2 years ago
The output of your canvas-sketch installation is fine—those warning are not errors. You must have a problem with your npm installation.
Can you try to run this command npm config set prefix /usr/local
?
I've suggested this fix to another user here and it solved its issue. The explanation for the fix is here.
@fturcheti Thank you. This does work!
Following this thread since I have the same issues. After verifying npm cofig is set to /usr/local
, I am still getting canvas-sketch is not recognized
after running command to create new file canvas-sketch sketch-01.js --new
. Any ideas what's going wrong? Npm is v8.5.5 and node is v16.15.0
Hi, I tried to install with
npm install canvas-sketch-cli -g
for many times becausecanvas-sketch -v
shows:I tried to search on stackoverflow and npm pages, but there is no similar case. I also installed npm for many times with
npm install -g npm
This is what I got:
So far, I still got these error messages with
npm install canvas-sketch-cli -g
. You can see the result as below: Any recommendation before I jump into the sudo solution? Thank you!I also tried to update npm with
npm update -g
, but got similar results: