Describe the bug
-bash: /usr/local/bin/prisma: Permission denied
To Reproduce
Steps to reproduce the behavior:
brew tap prisma/prisma
brew install prisma
Expected behavior
prisma installed with homebrew should run as well as installed with npm
Screenshots

Versions (please complete the following information):
Same issue on High Sierra
Can you do chmod +x /usr/local/bin/prisma and then try to run the command? I am not able to reproduce it.
same issue for me
Can you do chmod +x /usr/local/bin/prisma and then try to run the command? I am not able to reproduce it.
➜ prisma-test prisma
zsh: permission denied: prisma
➜ prisma-test chmod +x /usr/local/bin/prisma
➜ prisma-test prisma
zsh: exec format error: prisma
im having the same issue
chmod also doesn't do the trick for me
➜ prisma-test prisma
zsh: permission denied: prisma
➜ prisma-test chmod +x /usr/local/bin/prisma
➜ prisma-test prisma
zsh: exec format error: prisma
➜ bin cat prisma
�Om7��7��'(%
(additionally im having issues with posting on GitHub, so excuse me if im posting doubly)
Can you do
chmod +x /usr/local/bin/prismaand then try to run the command? I am not able to reproduce it.
jack$ prisma
-bash: /usr/local/bin/prisma: Permission denied
jack$ chmod +x /usr/local/bin/prisma
jack$ prisma
-bash: /usr/local/bin/prisma: cannot execute binary file
fyi installing via npm did work for me
fyi installing via npm did work for me
That's what I was saying on top.
npm worked for me too
he said the issue If we brew, the npm one works, and this issue is about the brew installation working properly.
Yes I know the one from npm works but I prefer installing it from brew, like yarn.
@marktani Does this have the info you are looking for? Or do you need more?
I am having the same issue with OSX 10.13.6 (High Sierra).
☺ brew install prisma
==> Installing prisma from prisma/prisma
==> Downloading https://s3-eu-west-1.amazonaws.com/homebrew-prisma/prisma-1.18.0.tar.gz
Already downloaded: /Users/hays/Library/Caches/Homebrew/downloads/fd62b6dbd245b0e984d6e1e53b939e621f4422f6fb1181bb5cae1521678c3d77--prisma-1.18.0.tar.gz
🍺 /usr/local/Cellar/prisma/1.18.0: 3 files, 1.3KB, built in 5 seconds
☺ which prisma
prisma not found
☹ ls -la /usr/local/bin/prisma
lrwxr-xr-x 1 hays admin 34 Oct 23 12:26 /usr/local/bin/prisma -> ../Cellar/prisma/1.18.0/bin/prisma
☺ ls -la /usr/local/bin/../Cellar/prisma/1.18.0/bin/prisma
-r--r--r-- 1 hays admin 45 Oct 15 04:29 /usr/local/bin/../Cellar/prisma/1.18.0/bin/prisma
While the symlink has the correct permissions, the core _prisma_ executable in Cellar only had _read_ permissions, -r--r--r--, no one can execute it. I would expect the permission to be something like this (using _heroku_ client as an example).
☺ ls -la /usr/local/bin/../Cellar/heroku/7.16.1/bin/heroku
lrwxr-xr-x 1 hays admin 21 Oct 2 15:08 /usr/local/bin/../Cellar/heroku/7.16.1/bin/heroku -> ../libexec/bin/heroku
I too tried to edit the permissions of the binary, but it did not work.
☺ chmod +x /usr/local/bin/../Cellar/prisma/1.18.0/bin/prisma
☺ which prisma
/usr/local/bin/prisma
☹ prisma
zsh: exec format error: prisma
I too will be using _NPM_ as a work-around. :D
Please try the following steps and see if that works.
brew untap prisma/prisma
brew uninstall prisma
brew tap prisma/prisma
brew install prisma
Thanks!
Somehow the issue is gone after I reinstalled Homebrew and things, that's weird. I will close the issue now but anyone still concerns should re-open it.