yarnpkg/yarn

Publish local tarball to offline mirror

Open

#2,381 建立於 2017年1月4日

在 GitHub 查看
 (3 留言) (3 反應) (0 負責人)JavaScript (41,514 star) (2,731 fork)batch import
cat-featuregood first issuehelp wantedtriaged

描述

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.

貢獻者指南

Publish local tarball to offline mirror · yarnpkg/yarn#2381 | Good First Issue