Skip to content

No version in package.json #1790

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

Closed
Swader opened this issue Aug 19, 2019 · 2 comments
Closed

No version in package.json #1790

Swader opened this issue Aug 19, 2019 · 2 comments
Labels
status: awaiting more context Need more context about this issue

Comments

@Swader
Copy link

Swader commented Aug 19, 2019

The current package.json has no version or name fields. These would be irrelevant in all cases, except that Yarn depends on them to be able to install the package locally from a specific branch, tag, or commit or even local folder. Thus, it is impossible to test local fixes from other contributors without silly workarounds like manually hacking package.json in the fork.

Reference issue: yarnpkg/yarn#6195

If I'm using the wrong approach, please let me know of a better way to test things (specifically, I'm testing a bounty: https://gitcoin.co/issue/vuejs/vuepress/1613/3333)

@Swader Swader mentioned this issue Aug 19, 2019
18 tasks
@flozero
Copy link
Collaborator

flozero commented Sep 5, 2019

Hello @Swader can you give us a reproduction in what you want to achieve please. Actually the version of the global package is in packages/*package.json or in lerna.json.

Give me a complete step to reproduce here please

@flozero flozero added the status: awaiting more context Need more context about this issue label Sep 5, 2019
@Swader
Copy link
Author

Swader commented Sep 5, 2019

I was trying to install Vuepress from a locally cloned branch to use that one, but you gave me a better method so I'll close this.

@Swader Swader closed this as completed Sep 5, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status: awaiting more context Need more context about this issue
Projects
None yet
Development

No branches or pull requests

2 participants