ノードのインストール:gyp.commonというモジュールはありません。

ノードのインストール:gyp.commonというモジュールはありません。

次のコマンドを使用して、Windows XPホストのCentOS 6.4 VirtualBoxゲストにnode.jsをインストールしようとしています。

cd /usr/local/src/
git clone git://github.com/joyent/node.git
cd node
./configure
make
make install

私はそれを達成しました./configure。実行すると、./configure次のエラーが発生します。

Traceback (most recent call last):
File "./configure", line 14, in
<module> from gyp.common import GetFlavor
ImportError: No module named gyp.common

ベストアンサー1

どのバージョンのPythonをインストールしましたか?確認するpython -V

を実行する前に、./configure次の前提条件が満たされていることを確認してください。

* GCC 4.2 or newer
* Python 2.6 or 2.7
* GNU Make 3.81 or newer
* libexecinfo (FreeBSD and OpenBSD only)

おすすめ記事