Does this issue occur when all extensions are disabled?: Yes/No
No, specify a build-in extension
- VS Code Version: 1.78.2
- OS Version: Windows_NT x64 10.0.19045
This is a bug about the build-in extension of NPM support for VS code
Steps to Reproduce:
- Make sure your TypeScript/JavaScript project folder has multiple lockfiles like
package-lock.json and pnpm-lock.yaml.
- Make sure your
@ext:vscode.npm extension is the default setting.
- Open
package.json, mouse hover on one of any scripts, and click the "Run Script" button on the popup widget.
- Then you will have a notifications window like this :

- Click the "Learn More" button.
- Will automatically open an URL of
https://nodejs.dev/learn/the-package-lock-json-file which is "PAGE NOT FOUND".
Found the code at line 143 in VSCODE/extensions/npm/src/task.ts:
window.showInformationMessage(multiplePMWarning, learnMore, neverShowAgain).then(result => {
switch (result) {
case neverShowAgain: extensionContext.globalState.update(neverShowWarning, true); break;
case learnMore: env.openExternal(Uri.parse('https://nodejs.dev/learn/the-package-lock-json-file'));
}
});
Does this issue occur when all extensions are disabled?: Yes/No
No, specify a build-in extension
This is a bug about the build-in extension of NPM support for VS code
Steps to Reproduce:
package-lock.jsonandpnpm-lock.yaml.@ext:vscode.npmextension is the default setting.package.json, mouse hover on one of any scripts, and click the "Run Script" button on the popup widget.https://nodejs.dev/learn/the-package-lock-json-filewhich is "PAGE NOT FOUND".Found the code at line 143 in
VSCODE/extensions/npm/src/task.ts: