Hello guys, I just tried to install prisma globall...
# orm-help
g
Hello guys, I just tried to install prisma globally with both (yarn and npm) but when I try to use prisma I get: bash: prisma: command not found, asny ide what can I do?
f
Have you made sure your global install directory is in your path?
g
No, i'll take a look to it right now, what should it be?
I just found this path on system variables C:\Program Files (x86)\Yarn\bin\
f
I'm not familiar with ms systems but you should make sure the prisma binary is in your path (if it works like bash at all lol)
what does
echo $SHELL
and
echo $PATH
print?
g
echo $SHELL /usr/bin/bash $ echo $PATH /c/Users/gersonz/bin/mingw64/bin/usr/local/bin/usr/bin/bin/mingw64/bin/usr /bin/c/Users/gersonz/bin/c/oracle/product/10.2.0/client_1/bin:/c/app/oliver/pr oduct/11.2.0/client_1/bin/c/WINDOWS/system32/c/WINDOWS:/c/WINDOWS/System32/Wbe m/c/WINDOWS/System32/WindowsPowerShell/v1.0/c/WINDOWS/System32/OpenSSH:/c/Prog ramData/chocolatey/bin:/c/Program Files/nodejs:/c/Program Files (x86)/Yarn/bin:/ cmd/c/Users/gersonz/AppData/Local/Microsoft/WindowsApps/c/Users/gersonz/AppDat a/Local/Programs/Microsoft VS Code/bin:/c/Program Files/Docker Toolbox:/c/Progra m Files/Docker Toolbox:/c/Program Files/Docker Toolbox/usr/bin/vendor perl/usr /bin/core_perl
f
Sorry, I had my internet connection drop
Make sure your prisma executable is in the yrn/bin directory
g
no problem. I found prisma under C:\Users\gersonz\AppData\Local\Yarn\bin, this path is listed under PATH for user variabled but not for system variables,
I changed it inside system variables and it worked after a restart
Thank you for your help.
Actually, I had to add the path, not replace it (replacing it did work, but disable to posibility to install packages)
f
👍
Glad I helped
👍 1