Uh oh!
There was an error while loading. Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork 34.2k
build: move to npm ci where possible#21802
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
Recent events (involving a maliciously published version of a popular module's dependency) have reinvigorated my interest in seeing us move to `npm ci` instead of `npm install`. This moves us to `npm ci` where possible in Makefile and vcbuild.bat.
nodejs-github-bot commented Jul 13, 2018
Trott commented Jul 13, 2018
@nodejs/build-files |
MylesBorins commented Jul 13, 2018
Some what of a dupe of #21538 I discovered that Thoughs? |
Trott commented Jul 13, 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 Not sure the increase is all that significant, to be honest. If you really want to avoid it, we can add a check for the existence of the relevant |
TimothyGu 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.
Question: does npm ci install devDependencies? We used to have --production which doesn't install those.
Trott commented Jul 15, 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.
@TimothyGu Yes, it does, although you can specify
The only place that has any effect is in This PR currently does not apply to that package.json, but when we add it, we'll have to make a decision to either add |
Trott commented Jul 16, 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.
Checklist of stuff to do after this lands:
|
Trott commented Jul 16, 2018
Trott commented Jul 17, 2018
Trott commented Jul 18, 2018
This is landable, but I'd like a second review. @nodejs/npm @nodejs/build-files Even though (as Myles pointed out) $ make lint-md-cleanrm -f -r tools/remark-cli/node_modulesrm -f -r tools/remark-preset-lint-node/node_modulesrm -f tools/.*mdlintstamp $ make lint-md-buildMarkdown linter: installing remark-cli into tools/added 160 packages in 1.704sMarkdown linter: installing remark-preset-lint-node into tools/added 53 packages in 1.089s $ make lint-md-buildmake: Nothing to be done for `lint-md-build'. $ |
richardlau commented Jul 18, 2018
That's because for the two tasks (which in this case are directories) they are only run if the relevant Line 1062 in b75bde3
Lines 1066 to 1067 in b75bde3
Unfortunately there's no equivalent mechanism in |
Trott commented Jul 18, 2018
@richardlau I wonder if that means we should back out the changes in this to |
richardlau commented Jul 19, 2018
@Trott AFAIK neither the makefile nor If I'm understanding correctly the motivation for using cc @nodejs/platform-windows |
Recent events (involving a maliciously published version of a popular module's dependency) have reinvigorated my interest in seeing us move to `npm ci` instead of `npm install`. This moves us to `npm ci` where possible in Makefile and vcbuild.bat. PR-URL: nodejs#21802 Reviewed-By: Tiancheng "Timothy" Gu <[email protected]> Reviewed-By: Richard Lau <[email protected]> Reviewed-By: Refael Ackermann <[email protected]> Reviewed-By: James M Snell <[email protected]>
Trott commented Jul 19, 2018
Landed in fe67287 |
Recent events (involving a maliciously published version of a popular module's dependency) have reinvigorated my interest in seeing us move to `npm ci` instead of `npm install`. This moves us to `npm ci` where possible in Makefile and vcbuild.bat. PR-URL: #21802 Reviewed-By: Tiancheng "Timothy" Gu <[email protected]> Reviewed-By: Richard Lau <[email protected]> Reviewed-By: Refael Ackermann <[email protected]> Reviewed-By: James M Snell <[email protected]>
* remove obsolete `node_modules/js-yaml/package.json` target * remove `@touch` since `npm ci` is always destructive PR-URL: nodejs#22399 Refs: nodejs#21802 Refs: nodejs#21490 Reviewed-By: Tiancheng "Timothy" Gu <[email protected]> Reviewed-By: Sam Ruby <[email protected]> Reviewed-By: Richard Lau <[email protected]> Reviewed-By: Joyee Cheung <[email protected]> Reviewed-By: Daijiro Wachi <[email protected]>
* remove obsolete `node_modules/js-yaml/package.json` target * remove `@touch` since `npm ci` is always destructive PR-URL: #22399 Refs: #21802 Refs: #21490 Reviewed-By: Tiancheng "Timothy" Gu <[email protected]> Reviewed-By: Sam Ruby <[email protected]> Reviewed-By: Richard Lau <[email protected]> Reviewed-By: Joyee Cheung <[email protected]> Reviewed-By: Daijiro Wachi <[email protected]>
* remove obsolete `node_modules/js-yaml/package.json` target * remove `@touch` since `npm ci` is always destructive PR-URL: #22399 Refs: #21802 Refs: #21490 Reviewed-By: Tiancheng "Timothy" Gu <[email protected]> Reviewed-By: Sam Ruby <[email protected]> Reviewed-By: Richard Lau <[email protected]> Reviewed-By: Joyee Cheung <[email protected]> Reviewed-By: Daijiro Wachi <[email protected]>
Recent events (involving a maliciously published version of a popular
module's dependency) have reinvigorated my interest in seeing us move to
npm ciinstead ofnpm install. This moves us tonpm ciwherepossible in Makefile and vcbuild.bat.
Checklist
make -j4 test(UNIX), orvcbuild test(Windows) passes