ultimatecourses / angular-fundamentals-seed

Angular Fundamentals seed project
https://ultimatecourses.com/courses/angular
142 stars 842 forks source link

Couldnt get the project to run #9

Closed Alex61NN5 closed 6 years ago

Alex61NN5 commented 6 years ago

Hey there,

I could not get the project to run,

I kept getting this error

Versions of @angular/compiler-cli and typescript could not be determined.
The most common reason for this is a broken npm install.

Please make sure your package.json contains both @angular/compiler-cli and typescript in
devDependencies, then delete node_modules and package-lock.json (if you have one) and
run npm install again.

I deleted node_modules folder and tried npm install and that didnt work, then I tried to turn production enviorment to development and npm install and that didnt work

this is what I get when I run ng version

Angular CLI: 1.6.8
Node: 6.10.0
OS: darwin x64
Angular: 4.0.0-beta.1
... common, compiler, core, forms, http, platform-browser
... platform-browser-dynamic, router

@angular/cli: 1.6.8
@angular-devkit/build-optimizer: 0.0.42
@angular-devkit/core: 0.0.29
@angular-devkit/schematics: 0.0.52
@ngtools/json-schema: 1.1.0
@ngtools/webpack: 1.9.8
@schematics/angular: 0.1.17
typescript: 2.1.4
webpack-dev-server: 2.2.0-rc.0
webpack: 2.2.0-rc.3

when I start a brand new project... ng new angular-project then ng-serve runs just fine