繁体   English   中英

我正在尝试安装npm软件包html2json,但是在Windows中安装时出现错误

[英]I'm trying to install npm package html2json but while installing getting error in windows

我已经更新了npm和node两者,但是无法正常工作。 我已经寻找解决方案,但没有得到任何解决方案。 谁能帮我解决我的问题? 我尝试了以下所有这些

npm -v
output: 3.10.10
node -v
output: v6.11.3
npm config get registry
output: https://registry.npmjs.org/
npm cache clean

安装软件包时出现此错误:

npm ERR! Windows_NT 10.0.14393
npm ERR! argv "F:\\ProgramFiles\\nodejs\\node.exe" "F:\\ProgramFiles\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install" "html2json"
npm ERR! node v6.11.3
npm ERR! npm  v3.10.10
npm ERR! code ENOSELF

npm ERR! Refusing to install html2json as a dependency of itself
npm ERR!
npm ERR! If you need help, you may report this error at:
npm ERR!     <https://github.com/npm/npm/issues>

npm ERR! Please include the following file with any support request:
npm ERR!     E:\Html Parsing using node\html2json\npm-debug.log

需要帮助。 谢谢

您的npm项目的名称也是html2json吗? 这就是在此Blog上遇到的问题。 当您的项目名称与依赖项程序包名称相同时,似乎会使Node感到困惑。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM