yarn icon indicating copy to clipboard operation
yarn copied to clipboard

Support for installing repos without a package.json

Open johans opened this issue 9 years ago • 6 comments

In npm there is this helper package napa (https://www.npmjs.com/package/napa) which enables one to install repos without a package.json file. Is this something you would consider adding support for in yarn?

johans avatar Oct 13 '16 17:10 johans

Will be implemented in #2651.

bestander avatar Apr 28 '17 15:04 bestander

duplicate #2621

bestander avatar Apr 28 '17 15:04 bestander

Hi, why is #1011 and #2621 reopened after #2651 got closed and #3624 got merged?

Thank you.

joshxyzhimself avatar Apr 08 '21 14:04 joshxyzhimself

Possible edge case.

This one below doesn't work, where tradingview/charting_library is a private repo, gets stuck on a continuous download (as seen in System Monitor, on Ubuntu Focal Fossa). Repo zipped is just 2.5 MB, yet the download never ends.

yarn add ssh://[email protected]:tradingview/charting_library.git

However, this one below from a private fork works, after I added the package.json with the following contents; total download time is fast (as what is expected for a 2.5 MB repo zipped)

{
  "name": "charting_library",
  "version": "0.0.0",
  "repository": "[email protected]:joshxyzhimself/charting_library.git"
}
yarn add ssh://[email protected]:tradingview/charting_library.git

joshxyzhimself avatar Apr 08 '21 14:04 joshxyzhimself

Hi,

Sorry to comment an old issue but it seems to not be possible to do it with yarn v3.

Manifest not found
    at Function.find (/home/.yarn/releases/yarn-3.3.1.cjs:390:29961)
    at async /home/.yarn/releases/yarn-3.3.1.cjs:593:12212
    at async Object.Gbe (/home/.yarn/releases/yarn-3.3.1.cjs:390:8896)
    at async fQ.resolve (/home/.yarn/releases/yarn-3.3.1.cjs:593:12173)
    at async zf.resolve (/home/.yarn/releases/yarn-3.3.1.cjs:391:1400)
    at async zf.resolve (/home/.yarn/releases/yarn-3.3.1.cjs:391:1400)
    at async /home/.yarn/releases/yarn-3.3.1.cjs:439:6346
    at async Ff (/home/.yarn/releases/yarn-3.3.1.cjs:390:8959)
    at async Z (/home/.yarn/releases/yarn-3.3.1.cjs:439:6328)

Any ideas? Thanks

floviolleau avatar Jan 09 '23 19:01 floviolleau

I updated yarn to v3.6.1 and got "Manifest not found" error. Please fix it ASAP.

SKYBITDev3 avatar Sep 27 '23 19:09 SKYBITDev3