Skip to content

Commit

Permalink
chore: pin npm@10
Browse files Browse the repository at this point in the history
  • Loading branch information
BilalQamar95 committed Aug 20, 2024
1 parent ab41ab5 commit f7fc2be
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tubular/scripts/frontend_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit f7fc2be

Please sign in to comment.