Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

logger middleware throws "TypeError: Cannot read property 'NullLogger' of undefined"

Tags:

angular

angular cli doesn't create the Component will , it is just console this message

Cann't read property 'NullLogger' of undefined

like image 733
Jone marko Avatar asked Jan 20 '18 01:01

Jone marko


Video Answer


2 Answers

try this : npm install --save @angular/cli@latest at your package.json directory .

like image 94
AlameerAshraf Avatar answered Oct 07 '22 04:10

AlameerAshraf


I think it can be the problem with Angular CLI or npm versions, so try:

npm install npm@latest -g

npm install @angular/cli@latest --save

Note: may be you will need to install npm with sudo:

sudo npm install npm@latest -g

like image 35
Commercial Suicide Avatar answered Oct 07 '22 03:10

Commercial Suicide