Linux RHEL の /opt ディレクトリに node.js と npm をインストールしています。
npm を使用して、mongodb と mongoose といういくつかの異なるモジュールをインストールしました。ただし、ディストリビューションを作成しようとすると (または試してみると)、次のように失敗します。
make -C ./external-libs/bson all
make[1]: Entering directory `/opt/node_modules/mongodb/external-libs/bson'
rm -rf build .lock-wscript bson.node
node-waf configure build
make[1]: execvp: nodewaf: Not a directory
make[1]: *** [all] Error 127
make[1]: Leaving directory `/opt/node_modules/mongodb/external-libs/bson'
make: *** [build_native] Error 2
これは、/opt/node/tools の下にある node-waf が見つからないために発生していると推測されます。インストールがうまくいかなかったのか、それとも Makefile をいじらずにこれに対処する最善の方法は何だろうか?
ありがとう...