[英]npm --version is giving errormodule.js:538 throw err; ^ Error: Cannot find module
After installation of Node.js,i checked the version of node by typing in cmd: 安装Node.js之后,我通过输入cmd检查节点的版本:
node --version,
节点--version,
it showed me the version,but when I type 它显示了我的版本,但是当我键入
npm --version
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. 运行angular 4项目时出现以下错误。
module.js:538 throw err; module.js:538抛出err; ^ Error: Cannot find module '@angular-devkit/core'
^错误:找不到模块'@ 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", 还要检查package.json文件夹,在“ @ angular / cli”中添加^符号:“ ^ 1.6.1”,
"devDependencies": {
"@angular-devkit/core": "^0.4.3",
"@angular/cli": "^1.6.1",
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.