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

Replace Chocolatey nodejs dependency with nodejs-lts. #5925

Merged
merged 1 commit into from
Jun 5, 2018

Conversation

ihalila
Copy link
Contributor

@ihalila ihalila commented Jun 2, 2018

Summary

This PR replaces the Chocolatey package's nodejs.install dependency with nodejs-lts. Since Yarn doesn't require the latest version of NodeJS depending on the LTS release should cause less situations where a user's other tools are not compatible with the NodeJS version installed via Chocolatey.

The nodejs.install package's documentation recommends depending on nodejs-lts, and some people have requested this change on the Chocolatey discussion page.

Test plan

I verified that the Chocolatey package is buildable and installs, I don't expect this to cause issues since the change is quite trivial.

The LTS releases of nodejs are less likely to break other parts of a project.
@ihalila
Copy link
Contributor Author

ihalila commented Jun 4, 2018

The test failures on test-linux-node6 don't seem related to my changes:

Command failed: /root/project/yarn/bin/yarn add [email protected] --cache-folder /tmp/d-11852-133-1v41lsa.ses0mgqfr/cache --no-node-version-check --ignore-engines
error An unexpected error occurred: "https://registry.yarnpkg.com/es6-weak-map/-/es6-weak-map-2.0.2.tgz: Parse Error". 

Copy link
Member

@arcanis arcanis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That makes sense to me. Paging @Daniel15 in case he wants to take a look.

@arcanis arcanis merged commit d5551e8 into yarnpkg:master Jun 5, 2018
@ihalila ihalila deleted the choco-nodejs-lts branch June 7, 2018 16:32
@@ -36,7 +36,7 @@ utilization.
<bugTrackerUrl>https://github.com/yarnpkg/yarn/issues</bugTrackerUrl>
<releaseNotes>https://github.com/yarnpkg/yarn/releases/tag/v$version$</releaseNotes>
<dependencies>
<dependency id="nodejs.install" version="6.0" />
<dependency id="nodejs-lts" version="6.0" />
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should also bump this to 8, right?

@Daniel15
Copy link
Member

Daniel15 commented Jul 7, 2018

Sorry I missed this. Seems fine to me. I wish we could specify that either nodejs.install or nodejs-lts is fine.

Daniel15 pushed a commit that referenced this pull request Dec 21, 2018
**Summary**

Fixes #6439 

The chocolately install has always been full of log spam due to an incorrectly written `/l*v` flag, but those logs are also unneeded since the output has no useful info so I just removed them (this can be reversed to just fix the flag if y'all really want it back).

This also removes the bad `nodejs-lts` nuget dependency added in #5925. It now has no dependency, and instead logs out to inform the user to install node if it's missing.

**Test plan**

* `choco uninstall yarn`
* Replace the `{VERSION}` and `{CHECKSUM}` placeholders manually or do a full build (I manually replaced)
* `.\chocolateyinstall.ps1`
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

Successfully merging this pull request may close these issues.

4 participants