APSL/react-native-version-number

error with permissions

dht opened this issue · 3 comments

dht commented

Trace:
Error: https://registry.yarnpkg.com/react-native-version-number/-/react-native-version-number-0.3.0.tgz: EACCES: permission denied, open '/Users/guyn/.yarn-cache/npm-react-native-version-number-0.3.0/.git/objects/01/77ba6e129d3bd819d70546e364976e699df8f9'
at Error (native)

I've got the same issue :(
@alvaromb Do you have an idea ? :)

Same problem here. Here goes some info:

OS: Fedora 23
Node version: 8.1.2
Yarn version: 0.16.0

Here is the yarn-error.log line related to the error:

Error: https://registry.npmjs.org/react-native-version-number/-/react-native-version-number-0.3.0.tgz: EACCES: permission denied, open '/home/nandobang/.yarn-cache/npm-react-native-version-number-0.3.0/.git/objects/01/77ba6e129d3bd819d70546e364976e699df8f9'

If I fix the permissions manually in my cache directory, then another error raises:

Error: EACCES: permission denied, rmdir '/home/nandobang/.yarn-cache/npm-react-native-version-number-0.3.0/.git/objects/01'

Running the command in any project results in the same error. Issuing sudo before solves the problem, but this isn't the desired behaviour.

For now just run rm -rf node_modules/react-native-version-number && npm install if you want to reinstall all packages, not need for sudoing.