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-devkit/core' - after clean install

See original GitHub issue

Versions


    _                      _                 ____ _     ___
   / \   _ __   __ _ _   _| | __ _ _ __     / ___| |   |_ _|
  / △ \ | '_ \ / _` | | | | |/ _` | '__|   | |   | |    | |
 / ___ \| | | | (_| | |_| | | (_| | |      | |___| |___ | |
/_/   \_\_| |_|\__, |\__,_|_|\__,_|_|       \____|_____|___|
               |___/

Angular CLI: 1.6.4
Node: 6.11.0
OS: win32 x64
Angular: _(yup, I don't see it, but I install it 2 days ago)_
...

Repro steps

  • ng new e-commerce-with-tut-ng4
  • cd e-commerce-with-tut-ng-4
  • ng serve (to test if works)

Observed behavior

After that I’ve got this ->

C:\Users\TheTanadu\Desktop\codetemp\e-commerce-with-tut-ng4>ng serve
module.js:471
    throw err;
    ^

Error: Cannot find module '@angular-devkit/core'
    at Function.Module._resolveFilename (module.js:469:15)
    at Function.Module._load (module.js:417:25)
    at Module.require (module.js:497:17)
    at require (internal/module.js:20:19)
    at Object.<anonymous> (C:\Users\TheTanadu\Desktop\codetemp\e-commerce-with-tut-ng4\node_modules\@angular-devkit\schematics\src\tree\virtual.js:10:16)
    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)

After all I came here but when I wanted to use ng --version in this path I’ve got same error like that what is up and I had to go cd … and then use ng -v

Desired behavior

I wanted to see local server

Mention any other details that might be useful (optional)

Windows 10

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:203
  • Comments:114 (2 by maintainers)

github_iconTop GitHub Comments

1672reactions
LarsMengelcommented, Jan 21, 2018

I struggled with the same problem just a minute ago. My project was generated using the v 1.6.0 of angular-cli.

  1. npm update -g @angular/cli
  2. editing my package.json changing the line “@angular/cli”: “1.6.0”, to “@angular/cli”: “^1.6.0”,
  3. npm update did the trick.
267reactions
tienthanhjlwcommented, Jan 22, 2018

Only need run 👍 : npm i -D @angular-devkit/core

Read more comments on GitHub >

github_iconTop Results From Across the Web

Cannot find module '@angular-devkit/core' - Stack Overflow
2. I used "npm update -g @angular/cli@latest" then "npm install --save-dev @angular/cli@latest", after that, the error disappear. – IcyBrk · 1.
Read more >
Fixing Could not find module @angular-devkit/build-angular ...
To fix Could not find module angular-devkit-build-angular error in Angular follow the below steps 1. Delete node_modules folder and run npm ...
Read more >
Cannot find module '@angular-devkit/core' - after clean install
Cannot find module '@angular-devkit/core' - after clean install ... Firstly I open Node.js command prompt and creating the project directory for ...
Read more >
Error: Cannot find module '@angular-devkit/core' - ITNEXT
Error : Cannot find module '@angular-devkit/core'. I struggled with the same problem just a minute ago. My project was generated using the v ......
Read more >
Cannot find module @angular-devkit/build-angular/package ...
Delete package-lock.json file. (Don't worry next npm install anyway will create a fresh package-lock.json file.) package-lock ...
Read more >

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