Uh oh!
There was an error while loading. Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork 34.3k
[WIP] tools: s/npm install/npm ci#21538
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
Uh oh!
There was an error while loading. Please reload this page.
Conversation
`npm ci` is substantially faster than `npm install`.
nodejs-github-bot commented Jun 26, 2018
MylesBorins commented Jun 26, 2018 • edited
Loading Uh oh!
There was an error while loading. Please reload this page.
edited
Uh oh!
There was an error while loading. Please reload this page.
Before w/ hot cache after w/ cold cache After w/ hot cache |
targos left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think you can remove --no-package-lock now
lpinca left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM with @targos's comment addressed.
MylesBorins commented Jun 26, 2018
MylesBorins commented Jun 28, 2018
It would appear that this PR may actually slow things down based on how things are currently set up. I noticed when testing on master that we are currently calling to |
Trott left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Don't forget to update vcbuild.bat too. (You can dismiss this review once that's happened.)
Trott left a comment • edited
Loading Uh oh!
There was an error while loading. Please reload this page.
edited
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A second blocker on this is that make tools/doc/node_modules/js-yaml/package.json will pollute checked-in files currently. (We float patches on the marked module--something we probably started doing only after this PR was opened already--anyway, that make`` command will overwrite those patches if we use npm ci. This will be a non-issue if/when we move to remarkinstead ofmarked`. There's a PR for that.)
So if someone using a source tarball runs make doc-only, it will overwrite marked with an unpatched version and produce a broken all.html file. Subsequent runs will have breakage in other doc files too. 😱
Because of this, I'm going to label this one blocked.
MylesBorins commented Aug 17, 2018
@Trott should we perhaps close this? |
Trott commented Aug 18, 2018 • edited
Loading Uh oh!
There was an error while loading. Please reload this page.
edited
Uh oh!
There was an error while loading. Please reload this page.
@MylesBorins My second objection has been fixed (I think by work done by @rubys). So it's just about This still might be worth closing (or at least modifying) because there is now a |
refack commented Aug 19, 2018
@MylesBorins I've followed up on this in #22399 |
refack commented Aug 23, 2018 • edited
Loading Uh oh!
There was an error while loading. Please reload this page.
edited
Uh oh!
There was an error while loading. Please reload this page.
Completed in d320511 |
npm ciis substantially faster thannpm install.Can't see why we wouldn't want to do this... only catch would be if we don't support package-lock... but we have those currently checked in afaik