Angular 2 cant install dependency! RRS feed

  • Question

  • User1421620300 posted

    Could some explain to me how i can install the exact version that is required for my app to run? I have failed at multiple attempts already. The following is output."  Markus

    ERROR in The Angular Compiler requires TypeScript >=3.4.0 and <3.5.0 but 3.5.2 was found instead.

    PS C:\Users\Andrew\A2_projects\Nav2Andrew> npm i typescript@3.5.0 --save-dev --save-exactnpm ERR! code ETARGET
    npm ERR! notarget No matching version found for typescript@3.5.0
    npm ERR! notarget In most cases you or one of your dependencies are requesting
    npm ERR! notarget a package version that doesn't exist.

    npm ERR! A complete log of this run can be found in:
    npm ERR! C:\Users\Andrew\AppData\Roaming\npm-cache\_logs\2019-07-05T21_53_19_022Z-debug.log
    PS C:\Users\Andrew\A2_projects\Nav2Andrew> ng build

    Friday, July 5, 2019 10:10 PM