npm安装模块时Refusing to install xxx as a dependency of itself 错误

错误出现原因:pack.json里面你文件名和安装的模块名重名。。。

解决办法:更改pack.json中的name字段。。。

你可能感兴趣的:(npm安装模块时Refusing to install xxx as a dependency of itself 错误)