@angular/compiler-cli package was not properly installed; cannot find module @angular/compiler
See original GitHub issueRepro 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.
- tried uninstalling angular package and reinstalling it
- running node version 6.11
- it says typescript is required, but doesn’t install it
- on meeting dependencies separately also, it doesn’t download @angular/compiler
Issue Analytics
- State:
- Created 6 years ago
- Reactions:1
- Comments:41 (2 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
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. Removingnode_modules
and runningnpm install
should clear it.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 !!