I was struggling with the above error Cannot find module 'C:\Users\Shemooh\Desktop\Angulaprac\first_angularproject\node_modules@angular\cli\node_modules@schematics\angular\private\components.js' so what I did is that i first deleted node js but even after installing it back using the npm install function nothing happened so what i had forgotten to do is deleting the package lock.js file ensure you delete the two and then reinstall using npm install