-
Notifications
You must be signed in to change notification settings - Fork 12k
Cannot find module '@angular/compiler-cli' when running ng serve #4725
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Can you provide your Also, in the future, please use the provided issue template to allow assistance to be rendered in a more timely manner. |
OS?macOS Sierra Versions.@angular/cli: 1.0.0-beta.31 Repro steps.Update NPM and new install of npm and angular cli on new MacBook Pro with macOS Sierra... The log given by the failure.ng serve Mention any other details that might be useful.package.json:{ npm ls @angular/compiler-cli:myapp@0.0.0 /Users/xx/xx/xx/xx/xx |
this happens to me too, just after runing: |
Remove
That seemed to work for me. |
Getting same error "ng serve". Working on happy-shopper github project. |
Same error even after changing to |
I don't have @angular/compiler-cli as a dependency. Trying now after adding it. |
Now getting TypeError: patterns.map is not a function |
got it, to upgrade from "angular-cli" to "@angular/cli" run this: update angular-cli to the latest version$ npm remove -g angular-cli update the project dependencies$ rm -rf node_modules dist source: |
after that I updated angular-cli.json and following advice worked for me: |
package.json file below ----- { |
Please follow the steps listed here: https://github.com/angular/angular-cli#updating-angular-cli |
still problem continues.. Macbook-pro:donsky_acc macbookpro$ npm install -g @angular/cli@latest npm ERR! Darwin 14.5.0 npm ERR! Cannot read property 'path' of null npm ERR! Please include the following file with any support request: |
{ changed angular-cli to @angular-cli in the devdependencies on package.json file |
You have to be inside an Angular CLI project in order to use the serve command. |
God, this isn't very much fun is it :( Where's TypeScript 2.1 support ? Does it work ? |
made the change @angular/cli |
package.json {
} |
Having the same issue, after an angular-cli -> @angular/cli upgrade. It's an unmet peerdep with Fixed by doing:
However, surely there's a better way. |
macbook-pro:donsky_acc macbookpro$ sudo npm install @angular/cli --save npm ERR! network connect ETIMEDOUT 74.125.224.72:8888 npm ERR! Please include the following file with any support request: this problem still continues, thanks ssayan for your note |
Pretty disappointed with this. I'm sure it's pretty great if you're an
expert in webpack etc and have been following along and know the code. The
Typescript is out of date which is a little annoying.
I'm personally going to build my own setup using webpack and all the
components and learn all the pieces from the ground up, so when (not if)
the troubles come, I can make sense of it all. And then I'd be able to make
use of this cool project, and hopefully it's matured a little by then.
Recently:
* angular-cli -> @angular/cli
* angular-cli.json -> .angular-cli.json
* Weird TypeScript/WebPack related issues that are hard to debug.
Tricky business.
And Angular 3 (no, sorry 4 ;)), node 8, and TypeScript 2.2 just around the
corner, lol.
God have mercy!
|
thanks sublimator...had to uninstall node/npm on mac. then installed using brew. |
I had identical problem. After trying all your suggestions, this is the line that finally worked for me: |
I had the same problem but realized that I was in project folder, just CD to the solution folder and done |
Hey, I had the same issue when I tried to install Material for my Angular 4 project, here is what I've done step by step (using Windows) : Note : First, you need to have node.js, npm, angular/cli installed and configured. Step 1 : Open cmd.exe and create a new project : Step 2 : Change your console location to your new project's directory : Step 3 : Install Angular Material : Step 4 : Now you are in trouble you need to get more packages... Step 5 : New packages sometimes need more packages : Step 6 : Your application is not working yet, you have few more packages to install : Step 7 : It is important to update npm to get new packages working together : Step 8 : Now, install the last package : Step 9 : Mount the local server : Step 10 : Enjoy ! You should be able to acces your application with this URL : Hope this help ! |
Hi, ERROR in g:/firebase-crud/src/providers/af.ts (3,55): Cannot find module 'angula webpack: Failed to compile. |
The "@angular/compiler-cli" package was not properly installed. Error: Error: Cannot find module '@angular/compiler-cli' |
i have repeat error |
hi can you please help? what is wrong? ng serve
here is the json.package: thanks |
npm install -g @angular/cli@latest |
@AlejandroSilva Thanks a lot. Spent an hour struggling with this error and your suggestion fixed it |
|
@S-iddhartha ty alot! this is the only thing which worked for me... :) |
Uninstall node
|
@SSayan work for me!!!! |
C:\Users\Softlogic\solo> npm install npm ERR! A complete log of this run can be found in: |
Cannot find module '@angular/compiler-cli' Please help me out ? |
work for me... thanks! |
Cannot find module '@angular/compiler-cli/ngcc'. Please help package.json - npm ls @angular/compiler-cli npm ERR! peer dep missing: @angular/compiler-cli@^8.0.0-beta.0 || ^8.1.0-beta.0 || ^8.2.0-beta.0 || ^8.3.0-beta.0 || ^8.4.0-beta.0 || >=9.0.0-beta < 9, required by @angular-devkit/build-angular@0.802.1 |
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
Error: Cannot find module '@angular/compiler-cli'
at Function.Module._resolveFilename (module.js:470:15)
at Function.Module._load (module.js:418:25)
at Module.require (module.js:498:17)
at require (internal/module.js:20:19)
at Object. (/usr/local/lib/node_modules/@angular/cli/node_modules/@ngtools/webpack/src/plugin.js:5:24)
at Module._compile (module.js:571:32)
at Object.Module._extensions..js (module.js:580:10)
at Module.load (module.js:488:32)
at tryModuleLoad (module.js:447:12)
at Function.Module._load (module.js:439:3)
at Module.require (module.js:498:17)
at require (internal/module.js:20:19)
at Object. (/usr/local/lib/node_modules/@angular/cli/node_modules/@ngtools/webpack/src/index.js:5:10)
at Module._compile (module.js:571:32)
at Object.Module._extensions..js (module.js:580:10)
at Module.load (module.js:488:32)
at tryModuleLoad (module.js:447:12)
at Function.Module._load (module.js:439:3)
at Module.require (module.js:498:17)
at require (internal/module.js:20:19)
at Object. (/usr/local/lib/node_modules/@angular/cli/models/webpack-configs/typescript.js:4:19)
at Module._compile (module.js:571:32)
at Object.Module._extensions..js (module.js:580:10)
at Module.load (module.js:488:32)
at tryModuleLoad (module.js:447:12)
at Function.Module._load (module.js:439:3)
at Module.require (module.js:498:17)
at require (internal/module.js:20:19)
at Object. (/usr/local/lib/node_modules/@angular/cli/models/webpack-configs/index.js:9:10)
at Module._compile (module.js:571:32)
at Object.Module._extensions..js (module.js:580:10)
at Module.load (module.js:488:32)
at tryModuleLoad (module.js:447:12)
at Function.Module._load (module.js:439:3)
at Module.require (module.js:498:17)
at require (internal/module.js:20:19)
at Object. (/usr/local/lib/node_modules/@angular/cli/models/webpack-config.js:4:27)
at Module._compile (module.js:571:32)
at Object.Module._extensions..js (module.js:580:10)
at Module.load (module.js:488:32)
at tryModuleLoad (module.js:447:12)
at Function.Module._load (module.js:439:3)
at Module.require (module.js:498:17)
at require (internal/module.js:20:19)
at Object. (/usr/local/lib/node_modules/@angular/cli/tasks/serve.js:10:26)
at Module._compile (module.js:571:32)
at Object.Module._extensions..js (module.js:580:10)
at Module.load (module.js:488:32)
at tryModuleLoad (module.js:447:12)
at Function.Module._load (module.js:439:3)
at Module.require (module.js:498:17)
at require (internal/module.js:20:19)
at Class.run (/usr/local/lib/node_modules/@angular/cli/commands/serve.js:74:27)
at Class. (/usr/local/lib/node_modules/@angular/cli/ember-cli/lib/models/command.js:134:17)
at process._tickCallback (internal/process/next_tick.js:103:7)
@angular/cli: 1.0.0-beta.31
node - v7.5.0
npm - 4.1.2
Please help when running ng serve, the angular cli not found error comes up.
The text was updated successfully, but these errors were encountered: