diff --git a/code/lib/cli/src/js-package-manager/PNPMProxy.ts b/code/lib/cli/src/js-package-manager/PNPMProxy.ts index 4ddaeb6fcda3..d435ec397a05 100644 --- a/code/lib/cli/src/js-package-manager/PNPMProxy.ts +++ b/code/lib/cli/src/js-package-manager/PNPMProxy.ts @@ -135,7 +135,9 @@ export class PNPMProxy extends JsPackageManager { return packageJSON; } catch (error) { - console.error('Error while fetching package version in PNPM PnP mode:', error); + if (error.code !== 'MODULE_NOT_FOUND') { + console.error('Error while fetching package version in PNPM PnP mode:', error); + } return null; } }