1

node --version v0.8.22Windows 7 を使用しています。node-xmppコマンドでインストールしようとしていnpm install node-xmppます。Express、log4js、socket.io を でインストールしましnpm installたが、node-xmpp で次のエラーがスローされます。

786 info preuninstall node-xmpp@0.3.2
787 info uninstall node-xmpp@0.3.2
788 verbose true,C:\www\resume-bootstrap\src\node_modules,C:\www\resume-bootstrap\src\node_modules unbuild node-xmpp@0.3.2
789 info postuninstall node-xmpp@0.3.2
790 error node-expat@2.0.0 install: `node-gyp rebuild`
790 error `cmd "/c" "node-gyp rebuild"` failed with 1
791 error Failed at the node-expat@2.0.0 install script.
791 error This is most likely a problem with the node-expat package,
791 error not with npm itself.
791 error Tell the author that this fails on your system:
791 error     node-gyp rebuild
791 error You can get their info via:
791 error     npm owner ls node-expat
791 error There is likely additional logging output above.
792 error System Windows_NT 6.1.7601
793 error command "C:\\Program Files\\nodejs\\\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install" "node-xmpp"
794 error cwd C:\www\resume-bootstrap\src
795 error node -v v0.8.22
796 error npm -v 1.2.14
797 error code ELIFECYCLE
798 verbose exit [ 1, true ]

これはどういう意味ですか?

ありがとう!

4

1 に答える 1

2

最初に前提条件がインストールされていることを確認する必要があります。https://github.com/TooTallNate/node-gypのインストール手順をご覧ください。

少し紛らわしいので、ここにもう一度リストします。

  1. インストールした Microsoft Visual C++ 2010 再頒布可能パッケージをアンインストールします。
  2. Python 2.7.3 をインストールします。
  3. Microsoft Visual Studio C++ 2010 (Express) をインストールします。
  4. Windows 7 64 ビット SDK をインストールする
  5. Windows SDK 7.1 のコンパイラ更新プログラムをインストールする
  6. Windows デスクトップ (Express) 用の Microsoft Visual Studio C++ 2012 をインストールします。
  7. http://sourceforge.net/projects/expat/から libexpat をインストールします。

これは、64ビットのWin7で完全に機能しました。32 ビット バージョンを使用する場合は、ポイント 4 と 5 をスキップします。

これで問題が解決することを願っています。

于 2013-07-03T10:50:02.857 に答える