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:
[email protected] ~/Documents/Work/modules
├── @angular/[email protected]
├─┬ @angular/[email protected]
│ └── UNMET PEER DEPENDENCY typescript@^2.0.2
├── @angular/[email protected]
└── UNMET PEER DEPENDENCY [email protected] 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.