I am trying to install npm using the npm install
command, and all the packages are installed except @angular/cli, @angular/compiler-cli and @angular-devkit/build-angular.
I tried installing them individually, but it is not working. Please tell me how to fix this problem.
Illustration:
I suspect you have
production
set to true in your environment, which will prevent the members of devDependencies from being installed. You can install them anyway under that circumstance passing the--production
option with the install command, like:You can read more about how dependencies are installed and handled by NPM in the NPM documentation for the install command. The future should note that this link is to the v7 documentation.