Skip to content

Commit 93e65b0

Browse files
authored
Merge pull request #49 from retejs/fix-angular-in-older-node-version
fix(app,angular): compatible with node.js 14
2 parents 82dc477 + 0deb90d commit 93e65b0

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

src/app/stack/angular/index.ts

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,14 @@ export class AngularBuilder implements AppBuilder {
2020
if (version === 17) options.push('--no-standalone')
2121

2222
await execa('npx', ['--package', `@angular/cli@${version}`, 'ng', 'new', name, ...options], { stdio: 'inherit' })
23-
await execa('npx', ['npm-check-updates', '--upgrade', '--target', 'minor', '--filter', '/@angular.*/'], { stdio: 'inherit', cwd: name })
23+
await execa('npx', [
24+
'npm-check-updates@16',
25+
'--upgrade',
26+
'--target',
27+
'minor',
28+
'--filter',
29+
'/@angular.*/'
30+
], { stdio: 'inherit', cwd: name })
2431
await execa('npm', ['i'], { cwd: name })
2532

2633
if (version < 13) {

0 commit comments

Comments
 (0)