From f7fc2be92b904394d9576b0e8a8d0beee255bc9a Mon Sep 17 00:00:00 2001 From: Bilal Qamar <59555732+BilalQamar95@users.noreply.github.com> Date: Tue, 20 Aug 2024 18:59:37 +0500 Subject: [PATCH] chore: pin npm@10 --- tubular/scripts/frontend_utils.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tubular/scripts/frontend_utils.py b/tubular/scripts/frontend_utils.py index bfa8d7a8..bb17a01f 100755 --- a/tubular/scripts/frontend_utils.py +++ b/tubular/scripts/frontend_utils.py @@ -106,11 +106,11 @@ def install_requirements_npm_aliases(self): """ Install NPM alias requirements for app to build """ npm_aliases = self.get_npm_aliases_config() if npm_aliases: - # Install and pin NPM to latest npm@8 version - proc = subprocess.Popen(['npm install npm@8'], cwd=self.app_name, shell=True) + # Install and pin NPM to latest npm@10 version + proc = subprocess.Popen(['npm install npm@10'], cwd=self.app_name, shell=True) return_code = proc.wait() if return_code != 0: - self.FAIL(1, 'Could not run `npm install npm@8` for app {}.'.format(self.app_name)) + self.FAIL(1, 'Could not run `npm install npm@10` for app {}.'.format(self.app_name)) aliased_installs = ' '.join(['{}@{}'.format(k, v) for k, v in npm_aliases.items()]) # Use the locally installed npm at ./node_modules/.bin/npm