I'm trying to follow the Angular Modules tutorial here, and I've run into the same trouble this person had here. So I'm trying their solution, but running into trouble getting the compiler-cli (ngc) to work. When I try to install with:
npm install @angular/compiler-cli typescript@next @angular/platform-server @angular/compiler
I get:
modules@0.0.0 ~/Documents/Work/modules
├── @angular/compiler@2.4.1
├─┬ @angular/compiler-cli@2.4.1
│ └── UNMET PEER DEPENDENCY typescript@^2.0.2
├── @angular/platform-server@2.4.1
└── UNMET PEER DEPENDENCY typescript@2.2.0-dev.20161230 invalid
The TypeScript version in my package.json is:
"typescript": "~2.0.3"
Should I just install an older version of TypeScript in my project? And what is the best way to do that. Thanks in advance.