-
-
Notifications
You must be signed in to change notification settings - Fork 4.5k
Open
Labels
status:needs investigationIssues that need additional investigation, e.g. to understand whether the reported behavior is a bugIssues that need additional investigation, e.g. to understand whether the reported behavior is a bug
Description
Environments:
- Prettier Version: 3.0.0
- Running Prettier via: pnpm, npx, etc.. doesn't appear to matter.
- Runtime: pnpm 7.14.1, node 16.16.0
- Operating System: macOS
- Prettier plugins (if any):
Steps to reproduce:
Install prettier as per the docs (in my case pnpm)):
https://prettier.io/docs/en/install.html
Expected behavior:
npx prettier
should run.
Actual behavior:
Executing:
npx prettier
Yields:
sh: /Users/mrmagoo/Development/mobile/react-native-app/node_modules/.bin/prettier: Permission denied
Looking at the premissions of ./bin.prettier:
lrwxr-xr-x 1 mrmagoo staff 28 Jul 27 18:12 node_modules/.bin/prettier -> ../prettier/bin/prettier.cjs
...
-rw-r--r-- 2 mrmagoo staff 2.1K Jul 25 12:55 node_modules/prettier/bin/prettier.cjs
If i grant execute permissions to node_modules/prettier/bin/prettier.cjs
it all works as expected.
raduflp, mikeharder, timotheeguerin, maxbeatty, davidlj95 and 5 more
Metadata
Metadata
Assignees
Labels
status:needs investigationIssues that need additional investigation, e.g. to understand whether the reported behavior is a bugIssues that need additional investigation, e.g. to understand whether the reported behavior is a bug