Skip to content

Cannot destructure property bold of 'undefined' or 'null'  #9247

@bbhattaraisumit88

Description

@bbhattaraisumit88

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions