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.

Error: Cannot find module '@angular/compiler-cli'

See original GitHub issue

Type of Issue

[x] Bug Report
[ ] Feature Request

Description

I Create a project and I’m trying to publich it on npm, but when I try to run:

npm run packagr

It happens:

module.js:549 throw err; ^

Error: Cannot find module ‘@angular/compiler-cli’ at Function.Module._resolveFilename (module.js:547:15) at Function.Module._load (module.js:474:25) at Module.require (module.js:596:17) at require (internal/module.js:11:18) at Object.<anonymous> (C:\Users\User\AppData\Roaming\npm\node_modules\ng-packagr\lib\ts\tsconfig.js:3:12) at Module._compile (module.js:652:30) at Object.Module._extensions…js (module.js:663:10) at Module.load (module.js:565:32) at tryModuleLoad (module.js:505:12) at Function.Module._load (module.js:497:3) npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! jtp-alert@0.1.0 packagr: npm run clear && ng-packagr -p ng-package.json npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the jtp-alert@0.1.0 packagr script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in: npm ERR! C:\Users\User\AppData\Roaming\npm-cache_logs\2018-04-04T16_32_57_920Z-debug.log

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:1
  • Comments:5

github_iconTop GitHub Comments

2reactions
lilian131commented, Apr 30, 2018

this worked for me

https://stackoverflow.com/a/43931987
0reactions
github-actions[bot]commented, Jun 19, 2020

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

This action has been performed automatically by a bot.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Cannot find module '@angular/compiler' - Stack Overflow
Try to delete that "angular/cli": "1.0.0-beta.28.3", in the devDependencies it is useless , and add instead of it "@angular/compiler-cli": "^2.3.1", ...
Read more >
Cannot find module '@angular/compiler-cli' when running ng ...
You have to be inside an Angular CLI project in order to use the serve command. 1
Read more >
Cannot find module '@angular/core' error | bobbyhadz
To solve the error "Cannot find module '@angular/core'", make sure you have installed all dependencies by running the npm install command, set the...
Read more >
angular/compiler-cli" package was not properly installed
I am unable to get an angular 4 project created with angular cli to compile. I get the ... Error: Error: Cannot find...
Read more >
@angular/compiler-cli - npm
Start using @angular/compiler-cli in your project by running `npm i @angular/compiler-cli`. ... This package does not have a README.
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