Logger middleware throws "TypeError: Cannot read NullLogger property from undefined"

angular cli is not creating a component, it's just the console of this post

Do not read property "NullLogger" undefined

+5
source share
3 answers

try the following: npm install --save @angular/ cli@latest in the package.json folder.

+20
source

I think this might be a problem with Angular CLI or npm versions, so try:

npm install npm@latest -g

npm install @angular/ cli@latest --save

Note. You may need to install npm using sudo :

sudo npm install npm@latest -g

+3
source

On Windows, uninstalling and installing angular cli (using npm) did not solve this problem for me. I solved this by uninstalling node v8 and downgrading to node v6.And then taking the latest version of angular cli.

+1
source

Source: https://habr.com/ru/post/1274827/


All Articles