Sunday, July 23, 2017

The "@angular/compiler-cli" package was not properly installed.

The "@angular/compiler-cli" package was not properly installed.
Easiest way to debug any CLI error is to just generate a new project and compare files like your package.json: ng new temporary

Setting up an Angular working app is still so tedious. I think this should be addressed by core team. If the team is creating an awesome product, then it should be awesome to use it too. Fixing Angular setup problems are like finding a pearl in shell.

My fix:

delete node_modules
npm cache clean --force
npm install

Up and running! P.s: Moving @angular/cli to dependencies is wrong, it belongs to devDependencies

My fix was to set production to false and after that local npm install
sudo npm config set -g production false

npm install

No comments:

Post a Comment