@@ -9,8 +9,6 @@ import { glob } from "glob";
99import chalk from "chalk" ;
1010import yosay from "yosay" ;
1111import libnpmconfig from "libnpmconfig" ;
12- import yarnOrNpm from "yarn-or-npm" ;
13- const { hasYarn } = yarnOrNpm ;
1412import AdmZip from "adm-zip" ;
1513import { request } from "@octokit/request" ;
1614import { Octokit } from "@octokit/rest" ;
@@ -201,7 +199,7 @@ export default class extends Generator {
201199 async _npmInstall ( dir , withDevDeps ) {
202200 return new Promise (
203201 function ( resolve , reject ) {
204- spawn ( hasYarn ( ) ? "yarn" : "npm" , [ "install" , "--no-progress" , "--ignore-engines" , "--ignore-scripts" ] , {
202+ spawn ( "npm" , [ "install" , "--no-progress" , "--ignore-engines" , "--ignore-scripts" ] , {
205203 stdio : this . config . verbose ? "inherit" : "ignore" ,
206204 cwd : dir ,
207205 env : {
@@ -615,7 +613,7 @@ export default class extends Generator {
615613 // filter the local options and the help command
616614 const opts = Object . keys ( this . _options ) . filter ( ( optionName ) => ! ( generatorOptions . hasOwnProperty ( optionName ) || optionName === "help" ) ) ;
617615
618- // run yarn/ npm install (always for self-healing!)
616+ // run npm install (always for self-healing!)
619617 if ( this . options . verbose ) {
620618 this . log ( "Installing the subgenerator dependencies..." ) ;
621619 }
0 commit comments