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
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",
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.