feed icon indicating copy to clipboard operation
feed copied to clipboard

yarn 3.2.1 script is not included in the repository

Open yshrsmz opened this issue 3 years ago • 1 comments

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 avatar Sep 08 '22 02:09 yshrsmz

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

yshrsmz avatar Sep 08 '22 02:09 yshrsmz