Skip to content

Commit

Permalink
Run npm with --no-audit (#11176)
Browse files Browse the repository at this point in the history
  • Loading branch information
gaearon authored Jul 4, 2021
1 parent 64df135 commit 78d86f6
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
1 change: 1 addition & 0 deletions packages/create-react-app/createReactApp.js
Original file line number Diff line number Diff line change
Expand Up @@ -392,6 +392,7 @@ function install(root, useYarn, usePnp, dependencies, verbose, isOnline) {
command = 'npm';
args = [
'install',
'--no-audit', // https://github.com/facebook/create-react-app/issues/11174
'--save',
'--save-exact',
'--loglevel',
Expand Down
7 changes: 6 additions & 1 deletion packages/react-scripts/scripts/init.js
Original file line number Diff line number Diff line change
Expand Up @@ -297,7 +297,12 @@ module.exports = function (
} else {
command = 'npm';
remove = 'uninstall';
args = ['install', '--save', verbose && '--verbose'].filter(e => e);
args = [
'install',
'--no-audit', // https://github.com/facebook/create-react-app/issues/11174
'--save',
verbose && '--verbose',
].filter(e => e);
}

// Install additional template dependencies, if present.
Expand Down

0 comments on commit 78d86f6

Please sign in to comment.