tiagob / create-full-stack

Set up a TypeScript full stack with one command.
https://create-full-stack.com
MIT License
97 stars 9 forks source link

error An unexpected error occurred: "https://github.com/expo/react-native/archive/sdk-38.0.2.tar.gz: ENOENT: no such file or directory, open #123

Closed tiagob closed 3 years ago

tiagob commented 3 years ago

Both Ben and Ned saw this the first time they ran create-full-stack. Subsequent runs are fine

error An unexpected error occurred: "https://github.com/expo/react-native/archive/sdk-38.0.2.tar.gz: ENOENT: no such file or directory, open '/Users/ned/Library/Caches/Yarn/v6/.tmp/a0b25aecc01232ec656434ca1bd75c9f/.yarn-tarball.tgz'".
info If you think this is a bug, please open a bug report with the information provided in "/Users/ned/go/src/github.com/nedrocks/my-full-stack/yarn-error.log".
info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.
`yarnpkg --cwd 
tiagob commented 3 years ago

This is the same version used in the expo init template https://github.com/expo/expo/blob/master/templates/expo-template-blank/package.json#L18

Wasn't able to reproduce when I tried deleting the cache

rm -rf /Users/tiagobandeira/Library/Caches/Yarn/v6/.tmp
tiagob commented 3 years ago

No issue on Linux workspace on AWS setup from scratch

tiagob commented 3 years ago

No issue on MacBook Air setup from scratch

tiagob commented 3 years ago

Nafis saw the same issue. Can automatically re-install if yarn fails or try clearing the yarn cache

tiagob commented 3 years ago

Tunay and Huang both saw this issue. I'm able to consistently reproduce by creating a new user on my mac. Likely https://github.com/yarnpkg/yarn/issues/2629.

Confirmed fix in https://github.com/tiagob/create-full-stack/commit/3eb59e4996c72e6f61571a4931fecfe47016a24f