Skip to content

Versions of @angular/compiler-cli and typescript could not be determined.  #8407

@astalegale

Description

@astalegale

Bug Report or Feature Request (mark with an x)

- [x] bug report -> please search issues before submitting
- [ ] feature request

Versions.

ng 1.5.0
node 8.9.0
npm 5.5.1
yarn 1.3.2
visual studio code 1.17.2

Repro steps.

run ng serve or ng serve -aot

The log given by the failure.

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.

Desired functionality.

Mention any other details that might be useful.

here my package.json

{
    "name": "migate",
    "version": "0.1.0",
    "license": "MIT",
    "scripts": {
        "ng": "ng",
        "start": "ng serve",
        "build": "ng build",
        "test": "ng test",
        "lint": "ng lint",
        "e2e": "ng e2e"
    },
    "private": true,
    "dependencies": {
        "@angular/animations": "^5.0.0",
        "@angular/common": "^5.0.0",
        "@angular/core": "^5.0.0",
        "@angular/forms": "^5.0.0",
        "@angular/platform-browser": "^5.0.0",
        "@angular/platform-browser-dynamic": "^5.0.0",
        "@angular/router": "^5.0.0",
        "bootstrap": "^4.0.0-beta.2",
        "core-js": "^2.5.1",
        "global": "^4.3.2",
        "jquery": "^3.2.1",
        "json-typescript-mapper": "^1.1.3",
        "popper.js": "^1.12.6",
        "roboto-fontface": "^0.8.0",
        "rxjs": "^5.5.2",
        "typescript-string-operations-ng4": "^0.1.0",
        "zone.js": "^0.8.18"
    },
    "devDependencies": {
        "@angular/cli": "^1.5.0",
        "@angular/compiler": "^5.0.0",
        "@angular/compiler-cli": "^5.0.0",
        "@angular/language-service": "^5.0.0",
        "@types/jasmine": "~2.6.2",
        "@types/jasminewd2": "~2.0.3",
        "@types/node": "~8.0.47",
        "codelyzer": "~4.0.0",
        "jasmine-core": "~2.8.0",
        "jasmine-spec-reporter": "~4.2.1",
        "karma": "~1.7.1",
        "karma-chrome-launcher": "~2.2.0",
        "karma-cli": "~1.0.1",
        "karma-coverage-istanbul-reporter": "^1.3.0",
        "karma-jasmine": "~1.1.0",
        "karma-jasmine-html-reporter": "^0.2.2",
        "protractor": "~5.2.0",
        "ts-node": "~3.3.0",
        "tslint": "~5.8.0",
        "typescript": "~2.4.0",
        "webpack": "^3.8.1",
        "webpack-sources": "^1.0.1"
    }
}

Metadata

Metadata

Assignees

Labels

P3An issue that is relevant to core functions, but does not impede progress. Important, but not urgentseverity3: broken

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions