Closed chigau-cloud closed 2 years ago
The output for the global installation is ok, those are just warnings. What's the output for canvas-sketch -v
?
zsh: command not found: canvas-sketch
And for these commands: npm config get prefix
and echo $PATH
?
/Users/nunoneves/.npm-global
/opt/homebrew/bin:/opt/homebrew/sbin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Users/nunoneves/.rvm/bin
Try this: export PATH=~/.npm-global/bin:$PATH
. Then test canvas-sketch -v
again.
Thank you so much! All sorted!
Actually, this solution is not permanent, once I close the terminal I need to reinstall canvas-sketch through use of xport PATH=~/.npm-global/bin:$PATH
You should add this export PATH=~/.npm-global/bin:$PATH
to your shell config file to make it permanent. It seems that you're using Zsh, so this config should be on your ~/.zshrc
.
You can open your .zshrc file in your text editor and make this change or you can use this command to append the given text to your config file:
echo 'export PATH=~/.npm-global/bin:$PATH' >> ~/.zshrc
Please see this comment about installation, if errors persist let me know.
https://github.com/mattdesl/canvas-sketch/issues/96#issuecomment-1231548822
Closing this for now.
Installing through npx I get this:
npm ERR! could not determine executable to run
and through npm I get this: