我正在尝试安装 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吗?这就是 this blog 上遇到的问题。当您的项目名称与依赖包名称相同时,它似乎会混淆 Node。