mirror of
https://github.com/Microsoft/vscode
synced 2024-08-28 05:19:39 +00:00
package.json dependency completion: npm command not used on windows. Fixes #108605
This commit is contained in:
parent
362da0a14d
commit
8d29dde51c
|
@ -283,7 +283,7 @@ export class PackageJSONContribution implements IJSONContribution {
|
|||
private npmView(pack: string): Promise<ViewPackageInfo | undefined> {
|
||||
return new Promise((resolve, _reject) => {
|
||||
const args = ['view', '--json', pack, 'description', 'dist-tags.latest', 'homepage', 'version'];
|
||||
cp.execFile('npm', args, (error, stdout) => {
|
||||
cp.execFile(process.platform === 'win32' ? 'npm.cmd' : 'npm', args, (error, stdout) => {
|
||||
if (!error) {
|
||||
try {
|
||||
const content = JSON.parse(stdout);
|
||||
|
|
Loading…
Reference in a new issue