diff --git a/src/commands/generate-odata-client.ts b/src/commands/generate-odata-client.ts index 70784dff..47a30783 100644 --- a/src/commands/generate-odata-client.ts +++ b/src/commands/generate-odata-client.ts @@ -57,7 +57,7 @@ export default class GenerateODataClient extends Command { this.log(''); if (await cli.confirm('Do you want to install the @sap-cloud-sdk/generator globally? (y|n)')) { - await execa('npm', ['install', '--global', '@sap-cloud-sdk/generator']); + await execa('npm', ['install', '--global', '--@sap:registry=https://npm.sap.com', '@sap-cloud-sdk/generator']); } else { this.error('It is required to have the @sap-cloud-sdk/generator installed globally. Please install and rerun.', { exit: 1 }); }