Has anyone seen this issue in Angular 11 - ng serve?
Require stack:
- C:\Users\x\Desktop\codebase\app\node_modules\cli-cursor\index.js
- C:\Users\x\Desktop\codebase\app\node_modules\ora\index.js
- C:\Users\x\Desktop\codebase\app\node_modules@angular-devkit\build-angular\src\utils\spinner.js
- C:\Users\x\Desktop\codebase\app\node_modules@angular-devkit\build-angular\src\utils\i18n-inlining.js
- C:\Users\x\Desktop\codebase\app\node_modules@angular-devkit\build-angular\src\browser\index.js
- C:\Users\x\Desktop\codebase\app\node_modules@angular-devkit\build-angular\src\dev-server\index.js
- C:\Users\x\AppData\Roaming\npm\node_modules@angular\cli\node_modules@angular-devkit\architect\node\node-modules-architect-host.js
- C:\Users\x\AppData\Roaming\npm\node_modules@angular\cli\node_modules@angular-devkit\architect\node\index.js
- C:\Users\x\AppData\Roaming\npm\node_modules@angular\cli\models\architect-command.js
- C:\Users\x\AppData\Roaming\npm\node_modules@angular\cli\commands\serve-impl.js
- C:\Users\x\AppData\Roaming\npm\node_modules@angular\cli\node_modules@angular-devkit\schematics\tools\export-ref.js
- C:\Users\x\AppData\Roaming\npm\node_modules@angular\cli\node_modules@angular-devkit\schematics\tools\index.js
- C:\Users\x\AppData\Roaming\npm\node_modules@angular\cli\utilities\json-schema.js
- C:\Users\x\AppData\Roaming\npm\node_modules@angular\cli\models\command-runner.js
- C:\Users\x\AppData\Roaming\npm\node_modules@angular\cli\lib\cli\index.js
- C:\Users\x\AppData\Roaming\npm\node_modules@angular\cli\lib\init.js
- C:\Users\x\AppData\Roaming\npm\node_modules@angular\cli\bin\ng
CodePudding user response:
Such issues are very common due to the version mismatch. When it occurs try to move back to the previous stable version and make sure all other versions should match with the other peer-dependencies.
Try to explicitly install restore-cursor
:
npm i restore-cursor@last-stable-version-number --save