(self, packages: VersionDict)
Runs npm install $package@^$version for each package.
Runs npm install $package
Runs npm install $package
def _npm_install(self, packages: VersionDict) -> None:
        """Runs npm install $package@^$version for each package."""
        logging.info(f"Installing {packages}...")
        args = [f"{name}@^{version}" for name, version in packages.items()]
        cmd = ["npm", "install", "--save-dev"]
        result = self.execute(
            cmd + args,
            cwd=self.install_location,
            check=True,
            stdout=subprocess.PIPE,
            stderr=subprocess.PIPE,
        )
        logging.info(result.stdout)
        logging.info(result.stderr)
def _npm_install ( self , packages : VersionDict ) -> None : logging . info ( f"Installing {packages}..." ) args = [ f"{name}@^{version}" for name , version in packages . items ( ) ] cmd = [ "npm" , "install" , "--save-dev" ] result = self . execute ( cmd + args , cwd = self . install_location , check = True , stdout = subprocess . PIPE , stderr = subprocess . PIPE , ) logging . info ( result . stdout ) logging . info ( result . stderr )