Skip to content

Commit

Permalink
Set npm loglevel to 'error' (facebook#2635)
Browse files Browse the repository at this point in the history
  • Loading branch information
gaearon authored and morgs32 committed Sep 1, 2017
1 parent bc03009 commit 4d5cfea
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
8 changes: 7 additions & 1 deletion packages/create-react-app/createReactApp.js
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,13 @@ function install(useYarn, dependencies, verbose, isOnline) {
}
} else {
command = 'npm';
args = ['install', '--save', '--save-exact'].concat(dependencies);
args = [
'install',
'--save',
'--save-exact',
'--loglevel',
'error',
].concat(dependencies);
}

if (verbose) {
Expand Down
4 changes: 3 additions & 1 deletion packages/react-scripts/scripts/eject.js
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,9 @@ inquirer
// spawnSync('yarnpkg', [], { stdio: 'inherit' });
} else {
console.log(cyan('Running npm install...'));
spawnSync('npm', ['install'], { stdio: 'inherit' });
spawnSync('npm', ['install', '--loglevel', 'error'], {
stdio: 'inherit',
});
}
console.log(green('Ejected successfully!'));
console.log();
Expand Down

0 comments on commit 4d5cfea

Please sign in to comment.