ng -v
@angular/cli: 1.0.6
node: 6.10.3
os: win32 x64
@angular/common: error
@angular/compiler: error
@angular/core: error
@angular/forms: error
@angular/http: error
@angular/platform-browser: error
@angular/platform-browser-dynamic: error
@angular/router: error
@angular/cli: error
@angular/compiler-cli: error
Repro steps.
- install npm
yarn global add @angular/cli@1.0.6 or npm install -g @angular/cli@1.0.6 (both produce the same)
ng new myproj
ng serve - works
- check-in to your source-control all the project files except for
node_modules directory
5.1. one can simply run move node_modules node_modules2 instead of steps 5+6
- go to a different computer and run steps 1+2. then, fetch the project from the source-control.
ng b -> produces: You seem to not be depending on "@angular/core". This is an error.
ng serve -> produces:
The "@angular/compiler-cli" package was not properly installed.
Error: The "@angular/compiler-cli" package was not properly installed.
Only yarn add or npm install will resolve this, which is somewhat unexpected (I am in the Angular CLI realm now, trying to build, why won't it solve my dependencies itself?)
Desired functionality.
I expected the angular-cli to successfully build the project and download all the dependencies.
Repro steps.
yarn global add @angular/cli@1.0.6ornpm install -g @angular/cli@1.0.6(both produce the same)ng new myprojng serve- worksnode_modulesdirectory5.1. one can simply run
move node_modules node_modules2instead of steps 5+6ng b-> produces:You seem to not be depending on "@angular/core". This is an error.ng serve-> produces:Only
yarn addornpm installwill resolve this, which is somewhat unexpected (I am in the Angular CLI realm now, trying to build, why won't it solve my dependencies itself?)Desired functionality.
I expected the angular-cli to successfully build the project and download all the dependencies.