[英]Npm throws error while installing a package
I'm developing a reactjs project and could add any package using npm.我正在开发一个 reactjs 项目,并且可以使用 npm 添加任何 package。 All of a sudden npm installer began to throw error for any package installation.
突然间 npm 安装程序开始为任何 package 安装抛出错误。 The error is same for all packages.
所有软件包的错误都是相同的。 I removed and reinstalled Nodejs, but the error is there as a rock.
我删除并重新安装了 Nodejs,但错误就在那里。
Error:错误:
Error log:错误日志:
Any idea to solve this problem?有什么想法可以解决这个问题吗? Thanks in advance:)
提前致谢:)
The cli-table3 is the source of issue. cli-table3 是问题的根源。 I think this package is installed and used by
Node.js
itself to be able to display table format in console.我认为这个 package 是由
Node.js
本身安装和使用的,以便能够在控制台中显示表格格式。 I uninstalled the Node.js
and then deleted npm
and npm-cache
folders of the path C:\Users\UserName\AppData\Roaming
- Of course i didn't have any global package installed. I uninstalled the
Node.js
and then deleted npm
and npm-cache
folders of the path C:\Users\UserName\AppData\Roaming
- Of course i didn't have any global package installed. Then reinstalling Node.js
solved the issue.然后重新安装
Node.js
解决了这个问题。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.