yarnpkg/yarn

Publish local tarball to offline mirror

Open

#2381 aperta il 4 gen 2017

Vedi su GitHub
 (3 commenti) (3 reazioni) (0 assegnatari)JavaScript (2731 fork)batch import
cat-featuregood first issuehelp wantedtriaged

Metriche repository

Star
 (41.514 star)
Metriche merge PR
 (Nessuna PR mergiata in 30 g)

Descrizione

I have a yarn offline mirror and let the config point to the offline mirror. Then put some of my tarballs for packages in the mirror.

How can I use "yarn add --offline" to install those packages?

There are versions in the tarball paths and install from tarball directly cannot resolve the version. Is it possible to allow me to install that like installing other npm packages? and I dont need to specific the version when consuming it if the version info is well config-ed in package.json.

Will update yarn.lock may help? but I cannot figure out how to generate the hash for each package resolved line.

Guida contributor