question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

@angular/compiler-cli package was not properly installed; cannot find module @angular/compiler

See original GitHub issue

Repro steps.

ng serve

The log given by the failure.


\The "@angular/compiler-cli" package was not properly installed. Error: Error: Cannot find module '@angular/compiler'
Error: The "@angular/compiler-cli" package was not properly installed. Error: Error: Cannot find module '@angular/compiler'
    at Object.<anonymous> (C:\Users\praha\AppData\Roaming\npm\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> (C:\Users\praha\AppData\Roaming\npm\node_modules\@angular\cli\tasks\eject.js:10:19)
    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)

Desired functionality.

Start server

Mention any other details that might be useful.

  1. tried uninstalling angular package and reinstalling it
  2. running node version 6.11
  3. it says typescript is required, but doesn’t install it
  4. on meeting dependencies separately also, it doesn’t download @angular/compiler

image image

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:1
  • Comments:41 (2 by maintainers)

github_iconTop GitHub Comments

65reactions
filipesilvacommented, Jul 31, 2017

Fixed by https://github.com/angular/angular-cli/pull/7033.

We had a bug where ng new didn’t wait for the packages to install. Newer versions don’t suffer from this. Removing node_modules and running npm install should clear it.

29reactions
mohammed-aladicommented, Aug 27, 2017

first : npm install -g @angular/cli 2 : ng new “your project name” 3 : ng serve : erro >>> do not wrray 4 : npm install @angular/compiler-cli 5 : npm install typescript 6 : npm install @angular/cli

it is work !!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Angular2 CLI error "@angular/compiler-cli" package was not ...
Inside of project folder, type "npm install" and wait the installation finishes, this fix works fine for me. Share.
Read more >
angular/compiler-cli" package was not properly installed
I get the following error. @angular/compiler-cli" package was not properly installed. Error: Error: Cannot find module '@angular/compiler-cli'. at Object.
Read more >
Cannot find module '@angular/compiler-cli' Code Example
npm i --save-dev @angular/compiler-cli.
Read more >
cannot find package '@angular/compiler' - Code Grepper
Cannot find module '@angular/compiler-cli' ... dockerthe "@angular/compiler-cli" package was not properly installed.cannot find module 'typescript' angular ...
Read more >
@angular/compiler - npm
Angular. The sources for this package are in the main Angular repo. Please file issues and pull requests against that repo.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found