We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e65a4b7 commit 82549fdCopy full SHA for 82549fd
tests/legacy-cli/e2e/tests/misc/npm-7.ts
@@ -1,4 +1,4 @@
1
-import { rimraf } from '../../utils/fs';
+import { rimraf, writeFile } from '../../utils/fs';
2
import { ng, npm } from '../../utils/process';
3
import { expectToFail } from '../../utils/utils';
4
@@ -63,6 +63,7 @@ export default async function() {
63
}
64
65
// Ensure `ng new --package-manager=yarn` executes successfully
66
+ await writeFile('.npmrc', 'registry=http://localhost:4873');
67
const { stderr: stderrNewYarn } = await ng('new', 'npm-seven-yarn', '--package-manager=yarn');
68
if (stderrNewYarn.includes(warningText)) {
69
throw new Error('ng new --package-manager=yarn expected to not show npm version warning.');
0 commit comments