File tree Expand file tree Collapse file tree 1 file changed +1
-5
lines changed Expand file tree Collapse file tree 1 file changed +1
-5
lines changed Original file line number Diff line number Diff line change @@ -162,11 +162,7 @@ export class PluginsService implements IPluginsService {
162162 let packageJsonContent = this . $fs . readJson ( this . getPackageJsonFilePath ( ) ) . wait ( ) ;
163163 let allDependencies = _ . keys ( packageJsonContent . dependencies ) . concat ( _ . keys ( packageJsonContent . devDependencies ) ) ;
164164 if ( this . $options . force || _ . difference ( allDependencies , installedDependencies ) . length ) {
165- let command = "npm install " ;
166- if ( this . $options . ignoreScripts ) {
167- command += "--ignore-scripts" ;
168- }
169- this . $childProcess . exec ( command , { cwd : this . $projectData . projectDir } ) . wait ( ) ;
165+ this . $npm . install ( this . $projectData . projectDir , this . $projectData . projectDir , { "ignore-scripts" : this . $options . ignoreScripts } ) . wait ( ) ;
170166 }
171167 } ) . future < void > ( ) ( ) ;
172168 }
You can’t perform that action at this time.
0 commit comments