1

After installation of Node.js,i checked the version of node by typing in cmd:

node --version,

it showed me the version,but when I type

npm --version

it gives me an error

module.js:538 
     throw err;
     ^
Error: Cannot find module
George
  • 6,630
  • 2
  • 29
  • 36
Arafat
  • 7
  • 4

1 Answers1

0

I got the following error when run the angular 4 project.

module.js:538 throw err; ^ Error: Cannot find module '@angular-devkit/core'

To fix the error, just run..

npm i -D @angular-devkit/core

also check in package.json folder, ^ symbol added in "@angular/cli":"^1.6.1",

    "devDependencies": {
    "@angular-devkit/core": "^0.4.3",
    "@angular/cli": "^1.6.1",
Karthikeyan Vellingiri
  • 1,270
  • 1
  • 17
  • 26