‘npm ERR! missing script: ngcc’ error with NPM

From one day to another my project in Visual Studio Code started to show this two errors:
enter image description here

In fact, almost all tags from angular material are marked as error not recognizing as tags.

I tried using npm run ngcc but this error appeared:

npm ERR! missing script: ngcc

Also, i tried to reinstall npm but is the same.

Source: Angular Questions