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

feat: Validate minimum npm version required to use --install-links #546

Merged
merged 13 commits into from
Sep 29, 2023

Conversation

lucashuy
Copy link
Contributor

@lucashuy lucashuy commented Sep 18, 2023

Issue #, if available:
None.

Description of changes:
--install-links is a relatively new addition to npm. We'll need to add a check against the current npm version if build in source is enabled since we need to use that option to properly install local dependencies.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@lucashuy lucashuy marked this pull request as ready for review September 25, 2023 21:49
@lucashuy lucashuy requested a review from a team as a code owner September 25, 2023 21:49
"currently installed npm version does not support "
"--install-links. Please ensure that the npm "
"version is at least 8.8.0. Switching to build "
"in a scratch directory."
Copy link
Contributor

Choose a reason for hiding this comment

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

Link to NPM documentation might be useful

Copy link
Contributor Author

Choose a reason for hiding this comment

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

The closest thing to docs that would indicate the minimum version would be this: https://docs.npmjs.com/cli/v8/using-npm/changelog#v880-2022-04-27

I can add this to the message. Additionally I noticed that I've left the message as "switching to scratch directory", which isn't 100% true for Node.js. I can change this to "switching to building outside of the source directory".

@lucashuy lucashuy added this pull request to the merge queue Sep 29, 2023
Merged via the queue into aws:develop with commit e4d53b9 Sep 29, 2023
123 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants