extensions/npm/src/npmMain.ts/getNPMCommandPath
async function getNPMCommandPath(): Promise<string | undefined> {
	if (canRunNpmInCurrentWorkspace()) {
		try {
			return await which(process.platform === 'win32' ? 'npm.cmd' : 'npm');
		} catch (e) {
			return undefined;
		}
	}
	return undefined;
}