I renamed my Angular 4 project folder from auction-life to auction-05-life and replaced 3 occurrences of the old project name in:
- angular-cli.json Line 4
- app.e2e-spec.ts Line 3
- package.json Line 2
I then ran ng serve
and got this:
You seem to not be depending on "@angular/core". This is an error.
Edit: Following the instructions in the comments below, I restarted the terminal window, ensured I was in the correct project folder auction-05-life, ran npm install
then ng serve
and this time got a different exception:
module.js:471
throw err;
^
Error: Cannot find module 'heimdalljs-logger'
at Function.Module._resolveFilename (module.js:469:15)
at Function.Module._load (module.js:417:25)
...