-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(main/nodejs{,-lts}): patch npm to not check for updates
This should hopefully silence people complaining of unable to update but npm is showing an update being available. Closes #13293
- Loading branch information
1 parent
1a16585
commit 2a63b01
Showing
4 changed files
with
32 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
--- ./deps/npm/lib/npm.js.orig 2024-02-21 20:21:11.251716444 +0530 | ||
+++ ./deps/npm/lib/npm.js 2024-02-21 20:25:09.207937428 +0530 | ||
@@ -113,12 +113,6 @@ | ||
|
||
const timeEnd = this.time(`command:${cmd}`) | ||
|
||
- // this is async but we dont await it, since its ok if it doesnt | ||
- // finish before the command finishes running. it uses command and argv | ||
- // so it must be initiated here, after the command name is set | ||
- // eslint-disable-next-line promise/catch-or-return | ||
- updateNotifier(this).then((msg) => (this.updateNotification = msg)) | ||
- | ||
// Options are prefixed by a hyphen-minus (-, \u2d). | ||
// Other dash-type chars look similar but are invalid. | ||
if (!this.#warnedNonDashArg) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
--- ./deps/npm/lib/npm.js.orig 2024-02-21 20:21:11.251716444 +0530 | ||
+++ ./deps/npm/lib/npm.js 2024-02-21 20:25:09.207937428 +0530 | ||
@@ -113,12 +113,6 @@ | ||
|
||
const timeEnd = this.time(`command:${cmd}`) | ||
|
||
- // this is async but we dont await it, since its ok if it doesnt | ||
- // finish before the command finishes running. it uses command and argv | ||
- // so it must be initiated here, after the command name is set | ||
- // eslint-disable-next-line promise/catch-or-return | ||
- updateNotifier(this).then((msg) => (this.updateNotification = msg)) | ||
- | ||
// Options are prefixed by a hyphen-minus (-, \u2d). | ||
// Other dash-type chars look similar but are invalid. | ||
if (!this.#warnedNonDashArg) { |