Skip to content
This repository has been archived by the owner on Jan 26, 2019. It is now read-only.

Commit

Permalink
Set npm loglevel to 'error' (#2635)
Browse files Browse the repository at this point in the history
  • Loading branch information
gaearon authored and wmonk committed Aug 7, 2017
1 parent 7478e24 commit 88e03ce
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
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
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 88e03ce

Please sign in to comment.