Skip to content

[1.5.0-rc2] @angular/compiler-cli package was not properly installed. #7904

Closed
@RicardoVaranda

Description

@RicardoVaranda

Bug Report or Feature Request (mark with an x)

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

Cli is failing to run after a fresh install, follow the steps below:

Repro steps.

npm uninstall -g @angular/cli
npm cache clean
npm install -g @angular/cli@next
ng -v

The log given by the failure.

/usr/local/lib/node_modules/@angular/cli/node_modules/@ngtools/webpack/src/index.js:14
    throw new Error('The "@angular/compiler-cli" package was not properly installed. Error: ' + e);
    ^

Error: The "@angular/compiler-cli" package was not properly installed. Error: Error: Cannot find module '@angular/compiler'
    at Object.<anonymous> (/usr/local/lib/node_modules/@angular/cli/node_modules/@ngtools/webpack/src/index.js:14:11)
    at Module._compile (module.js:570:32)
    at Object.Module._extensions..js (module.js:579:10)
    at Module.load (module.js:487:32)
    at tryModuleLoad (module.js:446:12)
    at Function.Module._load (module.js:438:3)
    at Module.require (module.js:497:17)
    at require (internal/module.js:20:19)
    at Object.<anonymous> (/usr/local/lib/node_modules/@angular/cli/commands/build.js:6:19)
    at Module._compile (module.js:570:32)

Metadata

Metadata

Assignees

Labels

P0Issue that causes an outage, breakage, or major function to be unusable, with no known workaroundstype: bug/fix

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions