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 Berry running any script: Internal Error: Package not found in the project #456

Closed
janosh opened this issue Sep 6, 2019 · 1 comment

Comments

@janosh
Copy link

janosh commented Sep 6, 2019

I installed [email protected] to try out the new parameter passing mentioned here. Whatever script I try to run now fails with the error

Internal Error: Package for janosh.io@workspace:. not found in the project
    at Object.hasPackageScript (/Users/Janosh/Projects/janosh.io/.yarn/releases/yarn-berry.js:11682:15)
    at RunCommand.execute (/Users/Janosh/Projects/janosh.io/.yarn/releases/yarn-berry.js:120083:38)
    at async RunCommand.validateAndExecute (/Users/Janosh/Projects/janosh.io/.yarn/releases/yarn-berry.js:38982:26)
    at async Cli.run (/Users/Janosh/Projects/janosh.io/.yarn/releases/yarn-berry.js:37881:24)
    at async EntryCommand.execute (/Users/Janosh/Projects/janosh.io/.yarn/releases/yarn-berry.js:119205:20)
    at async EntryCommand.validateAndExecute (/Users/Janosh/Projects/janosh.io/.yarn/releases/yarn-berry.js:38982:26)
    at async Cli.run (/Users/Janosh/Projects/janosh.io/.yarn/releases/yarn-berry.js:37881:24)
    at async Cli.runExit (/Users/Janosh/Projects/janosh.io/.yarn/releases/yarn-berry.js:37890:28)

This is the repo in question. I'm running [email protected] on [email protected].

@arcanis arcanis transferred this issue from yarnpkg/yarn Sep 12, 2019
@arcanis
Copy link
Member

arcanis commented Sep 12, 2019

You need to run yarn install to first generate the lockfile.

@arcanis arcanis closed this as completed Sep 15, 2019
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

No branches or pull requests

2 participants