Skip to content

Commit 4d5cfea

Browse files
gaearonmorgs32
authored andcommitted
Set npm loglevel to 'error' (facebook#2635)
1 parent bc03009 commit 4d5cfea

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

packages/create-react-app/createReactApp.js

+7-1
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,13 @@ function install(useYarn, dependencies, verbose, isOnline) {
218218
}
219219
} else {
220220
command = 'npm';
221-
args = ['install', '--save', '--save-exact'].concat(dependencies);
221+
args = [
222+
'install',
223+
'--save',
224+
'--save-exact',
225+
'--loglevel',
226+
'error',
227+
].concat(dependencies);
222228
}
223229

224230
if (verbose) {

packages/react-scripts/scripts/eject.js

+3-1
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,9 @@ inquirer
237237
// spawnSync('yarnpkg', [], { stdio: 'inherit' });
238238
} else {
239239
console.log(cyan('Running npm install...'));
240-
spawnSync('npm', ['install'], { stdio: 'inherit' });
240+
spawnSync('npm', ['install', '--loglevel', 'error'], {
241+
stdio: 'inherit',
242+
});
241243
}
242244
console.log(green('Ejected successfully!'));
243245
console.log();

0 commit comments

Comments
 (0)