We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents c289ad6 + 74da44f commit dccee5eCopy full SHA for dccee5e
1 file changed
lib/services/plugins-service.ts
@@ -162,11 +162,7 @@ export class PluginsService implements IPluginsService {
162
let packageJsonContent = this.$fs.readJson(this.getPackageJsonFilePath()).wait();
163
let allDependencies = _.keys(packageJsonContent.dependencies).concat(_.keys(packageJsonContent.devDependencies));
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();
+ this.$npm.install(this.$projectData.projectDir, this.$projectData.projectDir, { "ignore-scripts": this.$options.ignoreScripts }).wait();
170
}
171
}).future<void>()();
172
0 commit comments