npmとnodeの両方を更新しましたが、動作しませんでした。 解決策を検索しましたが、解決策が見つかりませんでした。 誰かが私の問題を解決する手助けはできますか? 私はこのエラーを取得していたパッケージのインストール中、このすべてがnpmパッケージhtml2jsonをインストールしようとしていますが、ウィンドウにエラーが表示されてインストールされています。
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
ヘルプを。 ありがとうございました
「名前」があなたの依存関係と同じでないことを確認してください。 – Ved
あなたが助けてくれたことはありがたいことです。実際には私はノードに慣れていません。 –
ニース。 packgae.jsonのあなたのnameプロパティは他の依存関係と一致してはいけません – Ved