I am having problems creating angular projects. Until a few moments ago it was working fine, but now when I create a new project( ng new <project_name>
) the node_modules
folder that contains all installed dependencies doesn't appear anymore.
I can't even run( ng serve
) the project because of this. It just prints on the screen:
Node packages may not be installed. Try installing with 'npm install'.
Error: Could not find the '@angular-devkit/build-angular:dev-server' builder's node package.
I tried all these commands:
npm uninstall --save-dev @angular/cli
npm uninstall --save @angular/cli
npm cache clean --force
npm install --save @angular/cli
npm install
Especially npm install
that only prints up to date in 662ms
. Also in other projects that have the folder, when I try to install other dependencies it only shows as in the example:
changed 36 packages in 14s
2 packages are looking for funding
I search the project and find nothing. I don't know what else to do. If someone can please help me solve this I would really appreciate it.