-
Notifications
You must be signed in to change notification settings - Fork 73
Error "not found" using Yarn Berry #578
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
Comments
@saseungmin 해결 하셨는지 모르겠네요! 이 글을 보시는 한국인들은 CI/CD 환경에서도 yarn berry를 쓰고 계실 가능성이 높은데, 현재 chromatic-cli에서 yarn berry를 지원하지 않기 때문에 CI/CD 스크립트에서 yarn 설정 시 nodeLinker를 node-modules로 변경해주세요. # yarn 설정 job 코드에 아래 명령어를 추가합니다.
yarn config set nodeLinker "node-modules" |
@InSeong-So 덕분에 해결했어요! 감사합니다 👍🏼 👍🏼 |
Changing yarn to not use pnp is not really a solution. The command should use yarn not npm if the package manager for the project is yarn. |
I've found there is actually quite an easy fix for this. Add a build command to your package.json and prefix it with yarn. package.json
Then in the action file specify that as the build script: .github/workflows/chromatic.yml
|
Hi! there
I'm using yarn berry(v3.2.0) package manager.
When executing a command in npm, an error occurs that cannot find the command.
It works normally when I change the command that runs in npm to yarn.
Who knows how to use github action using "yarn berry"?
I'd appreciate it if anyone could give me some advice. 🙇♂️
Here is my chromatic.yml and github action log
The text was updated successfully, but these errors were encountered: