-
Notifications
You must be signed in to change notification settings - Fork 5.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
npm: PermissionDenied: Reading package.json is not allowed when using npm:[email protected] #15845
Comments
It appears it only allows reading if it's in the deno_dir node modules. I'm not sure exactly how this should work |
i have similar issue with trying to get |
Can still reproduce in the latest canary. The npm code needs to take user permissions into account instead of being restricted to the cache or node_modules directory. |
#17134 will be a stepping stone to fix this problem. |
Does anyone have a work around? |
Problem
Output
PermissionDenied
when runningSimplest Reproduction
Project files like this
test.js
package.json
file permission
drwxr-xr-x . drwxr-xr-x .. -rw-r--r-- package.json -rw-r--r-- test.js
Error Output
Extra Info
Deno: v1.26.2
macOS: 12.6.1
The text was updated successfully, but these errors were encountered: