-
Notifications
You must be signed in to change notification settings - Fork 11.9k
Description
When using any angular cli commands it shows the below error:
D:\Core2\Angular5Core21\Angular5Core21>ng -v
D:\Core2\Angular5Core21\Angular5Core21\node_modules@angular\cli\upgrade\version.js:12
const { bold, red, yellow } = chalk_1.default;
^
TypeError: Cannot destructure property bold
of 'undefined' or 'null'.
at Object. (D:\Core2\Angular5Core21\Angular5Core21\node_modules@angular\cli\upgrade\version.js:12:39)
at Module._compile (module.js:660:30)
at Object.Module._extensions..js (module.js:671:10)
at Module.load (module.js:573:32)
at tryModuleLoad (module.js:513:12)
at Function.Module._load (module.js:505:3)
at Module.require (module.js:604:17)
at require (internal/module.js:11:18)
at Object. (D:\Core2\Angular5Core21\Angular5Core21\node_modules@angular\cli\commands\build.js:4:19)
at Module._compile (module.js:660:30)
D:\Core2\Angular5Core21\Angular5Core21>ng g c nrm
D:\Core2\Angular5Core21\Angular5Core21\node_modules@angular\cli\upgrade\version.js:12
const { bold, red, yellow } = chalk_1.default;
^
TypeError: Cannot destructure property bold
of 'undefined' or 'null'.
at Object. (D:\Core2\Angular5Core21\Angular5Core21\node_modules@angular\cli\upgrade\version.js:12:39)
at Module._compile (module.js:660:30)
at Object.Module._extensions..js (module.js:671:10)
at Module.load (module.js:573:32)
at tryModuleLoad (module.js:513:12)
at Function.Module._load (module.js:505:3)
at Module.require (module.js:604:17)
at require (internal/module.js:11:18)
at Object. (D:\Core2\Angular5Core21\Angular5Core21\node_modules@angular\cli\commands\build.js:4:19)
at Module._compile (module.js:660:30)