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 {
162
162
let packageJsonContent = this . $fs . readJson ( this . getPackageJsonFilePath ( ) ) . wait ( ) ;
163
163
let allDependencies = _ . keys ( packageJsonContent . dependencies ) . concat ( _ . keys ( packageJsonContent . devDependencies ) ) ;
164
164
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 ( ) ;
170
166
}
171
167
} ) . future < void > ( ) ( ) ;
172
168
}
You can’t perform that action at this time.
0 commit comments