Skip to content
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

Remote install script #866

Closed
js-kyle opened this issue Jan 31, 2020 · 7 comments
Closed

Remote install script #866

js-kyle opened this issue Jan 31, 2020 · 7 comments

Comments

@js-kyle
Copy link

js-kyle commented Jan 31, 2020

Hi,

I currently install Yarn 1 on TravisCI using the below steps

  - curl -o- -L https://yarnpkg.com/install.sh | bash -s -- --version $v
  - export PATH=$HOME/.yarn/bin:$PATH

Does Yarn 2 have a similar remote install script? The above throws as error as it does not allow rc versions passed by --version. I have tried changing the script, but I can't find where the Yarn 2 tarball files are hosted, as these links now redirect to legacy Yarn

@arcanis
Copy link
Member

arcanis commented Feb 1, 2020

We don't at the moment, and I don't think we will (we now recommend keeping Yarn 1.x as the global binary, and using yarn set version to set the Yarn version on a per-project basis).

@xPaw
Copy link

xPaw commented Feb 1, 2020

we now recommend keeping Yarn 1.x as the global binary

The website docs switched to v2 and it doesn't seem to have any of the old install methods listed: https://yarnpkg.com/getting-started/install

I feel like it was changed prematurely.

I've had to change the url to the legacy site in our documentation. We've been recommending yarn over npm as it causes less issues for casual users.

@arcanis
Copy link
Member

arcanis commented Feb 1, 2020

The website docs switched to v2 and it doesn't seem to have any of the old install methods listed: https://yarnpkg.com/getting-started/install

The website still needs to be updated to account for the change of plan outline in #766 (comment)

@ruslanchek
Copy link

We don't at the moment, and I don't think we will (we now recommend keeping Yarn 1.x as the global binary, and using yarn set version to set the Yarn version on a per-project basis).

It's not working
yarn run v1.21.1 error Command "set" not found. info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

@arcanis
Copy link
Member

arcanis commented Feb 1, 2020

Use yarn policies set-version [...] for now. The yarn set version [...] alias will be added in a 1.22 release that will contain a few helpers to simplify the transition.

@arcanis arcanis closed this as completed Feb 1, 2020
@ruslanchek
Copy link

Use yarn policies set-version [...] for now. The yarn set version [...] alias will be added in a 1.22 release that will contain a few helpers to simplify the transition.

Thanks! But I'm currently on a night build which is 1.22.0xx

js-kyle added a commit to UniversalMediaServer/api that referenced this issue Feb 2, 2020
@js-kyle
Copy link
Author

js-kyle commented Feb 2, 2020

$ yarn --version
$ 1.21.1
$ yarn policies set-version 2.0.0-rc.27
Resolving 2.0.0-rc.27 to a url...
error An unexpected error occurred: "Release not found: 2.0.0-rc.27".

or

$ yarn policies set-version --rc
Resolving latest to a url...
Downloading https://github.com/yarnpkg/yarn/releases/download/v1.21.1/yarn-1.21.1.js...

I cannot seem to use that suggested method

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants