-
Notifications
You must be signed in to change notification settings - Fork 210
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: add support for preferred yarn installation method #175
Comments
Yarn used to be suggesting to use NPM for its installation but now... |
You can install Yarn in a platform-independent manner to any desired path by downloading and extracting the tarball (https://yarnpkg.com/latest.tar.gz), as documented here: https://yarnpkg.com/en/docs/install#manual-install-via-tarball |
That could be done. But should we be able to se yarn version? Is yarn having an archive with old tarballs? |
I read Yarn install script; https://yarnpkg.com/install.sh. |
Yarn install with npm currently fails for us, as of some hours ago, when bl@1.2.0 was released. bl@1.1.2 works, see yarnpkg/yarn#1774 (comment) We work around this locally by overriding yarnSetup to use the preferred installation method (downloading and unpacking the tgz). |
any progress on this? we are having issues when installing yarn through npm. |
I too am having issues, such as the following: yarnpkg/yarn#2915 |
There's an even easier-to-use
|
What is the status of this issue? I see a PR, but there does not seem to happen a lot. The current way of working is unreliable. Our build broke all of a sudden, simply because the npm installer fetched another version for a yarn dependency... |
NPM needs to be installed in order to bootstrap Yarn since the Gradle Node plugin install Yarn via NPM. For this installation to work the download flag needs to be set. Also for not nefatively affecting reproducibility of build setting a fixed NPM version. See also the related issue [2] and open pull request [1]. [1] srs/gradle-node-plugin#186 [2] srs/gradle-node-plugin#175
NPM needs to be installed in order to bootstrap Yarn since the Gradle Node plugin installs Yarn via NPM, see also [1] [2]. For this installation to work the download flag needs to be set. Also set a fixed NPM version for the reproducibility of builds. [1] srs/gradle-node-plugin#175 [2] srs/gradle-node-plugin#186
NPM needs to be installed in order to bootstrap Yarn since the Gradle Node plugin installs Yarn via NPM, see also [1] [2]. For this installation to work the download flag needs to be set. Also set a fixed NPM version for the reproducibility of builds. [1] srs/gradle-node-plugin#175 [2] srs/gradle-node-plugin#186
NPM needs to be installed in order to bootstrap Yarn since the Gradle Node plugin installs Yarn via NPM, see also [1] [2]. For this installation to work the download flag needs to be set. Also set a fixed NPM version for the reproducibility of builds. [1] srs/gradle-node-plugin#175 [2] srs/gradle-node-plugin#186
NPM needs to be installed in order to bootstrap Yarn since the Gradle Node plugin installs Yarn via NPM, see also [1] [2]. For this installation to work the download flag needs to be set. Also set a fixed NPM version for the reproducibility of builds. [1] srs/gradle-node-plugin#175 [2] srs/gradle-node-plugin#186
Installing yarn through npm produces the warning: "It is recommended to install Yarn using the native installation method for your environment"
As yarn itself is a replacement for npm, it would be nice to have yarn installed without relying on npm. What would also get rid of the annoying warning :)
Pinging @kaitoy to get his input on this.
Thanks for the great work!
Alberto
The text was updated successfully, but these errors were encountered: