"You seem to not be depending on "@angular/core"."
Not sure whether below approach will solve your problem or not, please try once.
I have also faced the same issue while executing below command.
D:\My_Project>ng serve
Then I have followed below steps and it worked for me.
D:\My_Project>npm linkD:\My_Project>ng serve
If this is not working kindly let me know I will try to reproduce the error which you are getting and try to give you solution as soon as possible.
How to use
Run npm install
inside this project folder to install all dependencies.
Make sure you use the latest version of the CLI (upgrade guide below)
Run ng serve
to see the app in action (try npm start
in case ng serve
fails).
How to upgrade the CLI
Run the below commands - only use "sudo" on Mac/ Linux.
sudo npm uninstall -g angular-cli @angular/clinpm cache clean --forcesudo npm install -g @angular/cli
In case it fails
Delete node_modules
folder and package-lock.json
file from your project directoryRun the below commands in the given order-
npm installnpm install --save-dev @angular-devkit/build-angularnpm link
I went down the list of installing the various dependencies as prompted in the terminal. I am running on Windows so I also installed windows Build Tools.
I ran ng serve and got "You seem to not be depending on "@angular/core" and/or "rxjs". This is an error."
Then ran
npm link
followed by
ng serve
Everything is now running. Not sure how much of what I did was necessary/redundant but I can now build Angular projects.