Skip to content
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

yarn 3.2.1 script is not included in the repository #180

Open
yshrsmz opened this issue Sep 8, 2022 · 1 comment · May be fixed by #181
Open

yarn 3.2.1 script is not included in the repository #180

yshrsmz opened this issue Sep 8, 2022 · 1 comment · May be fixed by #181

Comments

@yshrsmz
Copy link

yshrsmz commented Sep 8, 2022

Describe the bug

When trying to install dependencies with yarn, I see error below:

Internal Error: The "yarn-path" option has been set (in /Users/yshrsmz/repos/github.com/yshrsmz/feed/.yarnrc.yml), but the specified location doesn't exist (/Users/yshrsmz/repos/github.com/yshrsmz/feed/.yarn/releases/yarn-3.2.1.cjs).
    at i (/Users/yshrsmz/.node/corepack/yarn/3.2.1/yarn.js:449:11811)
    at async r (/Users/yshrsmz/.node/corepack/yarn/3.2.1/yarn.js:449:10914)

This happens because the repo does not include .yarn/releases/yarn-3.2.1.cjs.

https://yarnpkg.com/getting-started/qa/#which-files-should-be-gitignored

According to the yarn documentation, we should add these lines to .gitignore, and commit some files in .yarn directory.

.pnp.*
.yarn/*
!.yarn/patches
!.yarn/plugins
!.yarn/releases
!.yarn/sdks
!.yarn/versions

To Reproduce
Steps to reproduce the behavior:

  1. clone the repo
  2. run yarn install
  3. see error

Expected behavior
A clear and concise description of what you expected to happen.

Actual behavior
A clear and concise description of what is the actual outcome.

Screenshots
If applicable, add screenshots to help explain your problem.

Versions (please complete the following information):

  • NodeJS: 16.17.0
  • TypeScript:
  • npm/yarn:
  • feed:

Additional context
Add any other context about the problem here.

@yshrsmz yshrsmz linked a pull request Sep 8, 2022 that will close this issue
@yshrsmz
Copy link
Author

yshrsmz commented Sep 8, 2022

@jpmonette I've opened #181 to fix the issue. please take a look.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant