[英]npm ERR! Object for dependency "fsevents" is empty
I am getting folowing error while installing anything through npm.通过 npm 安装任何东西时出现以下错误。 Kindly help me with it.
请帮助我。
premnath@premnath-Inspiron-5559:~$ sudo npm install -g @angular/cli [sudo] password for premnath: npm ERR! premnath@premnath-Inspiron-5559:~$ sudo npm install -g @angular/cli [sudo] premnath 的密码:npm ERR! Object for dependency "fsevents" is empty.
依赖项“fsevents”的对象为空。 npm ERR!
npm 错误! Something went wrong.
出了些问题。 Regenerate the package-lock.json with "npm install".
使用“npm install”重新生成 package-lock.json。 npm ERR!
npm 错误! If using a shrinkwrap, regenerate with "npm shrinkwrap".
如果使用收缩包装,请使用“npm shrinkwrap”重新生成。
npm ERR! npm 错误! A complete log of this run can be found in: npm ERR!
可以在以下位置找到此运行的完整日志:npm ERR! /home/premnath/.npm/_logs/2020-10-15T07_45_49_290Z-debug.log premnath@premnath-Inspiron-5559:~$
/home/premnath/.npm/_logs/2020-10-15T07_45_49_290Z-debug.log premnath@premnath-Inspiron-5559:~$
node version : v12.19.0 npm version : 6.14.8节点版本:v12.19.0 npm 版本:6.14.8
ERR!
呃! Something went wrong.
出了些问题。 Regenerate the package-lock.json with "npm install"
使用“npm install”重新生成 package-lock.json
Clear out node_modules
folder and package-lock.json
and run npm i
清除
node_modules
文件夹和package-lock.json
并运行npm i
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.