diff --git a/tubular/scripts/frontend_utils.py b/tubular/scripts/frontend_utils.py index bfa8d7a8..3f14f6ad 100755 --- a/tubular/scripts/frontend_utils.py +++ b/tubular/scripts/frontend_utils.py @@ -106,16 +106,9 @@ 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) - return_code = proc.wait() - if return_code != 0: - self.FAIL(1, 'Could not run `npm install npm@8` 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 install_aliases_proc = subprocess.Popen( - ['./node_modules/.bin/npm install {}'.format(aliased_installs)], + ['npm install {}'.format(aliased_installs)], cwd=self.app_name, shell=True )