Skip to content

Commit 78d86f6

Browse files
authored
Run npm with --no-audit (facebook#11176)
1 parent 64df135 commit 78d86f6

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

packages/create-react-app/createReactApp.js

+1
Original file line numberDiff line numberDiff line change
@@ -392,6 +392,7 @@ function install(root, useYarn, usePnp, dependencies, verbose, isOnline) {
392392
command = 'npm';
393393
args = [
394394
'install',
395+
'--no-audit', // https://github.com/facebook/create-react-app/issues/11174
395396
'--save',
396397
'--save-exact',
397398
'--loglevel',

packages/react-scripts/scripts/init.js

+6-1
Original file line numberDiff line numberDiff line change
@@ -297,7 +297,12 @@ module.exports = function (
297297
} else {
298298
command = 'npm';
299299
remove = 'uninstall';
300-
args = ['install', '--save', verbose && '--verbose'].filter(e => e);
300+
args = [
301+
'install',
302+
'--no-audit', // https://github.com/facebook/create-react-app/issues/11174
303+
'--save',
304+
verbose && '--verbose',
305+
].filter(e => e);
301306
}
302307

303308
// Install additional template dependencies, if present.

0 commit comments

Comments
 (0)