私はairpalを動かそうとしていますが、次のようになりました:
git clone https://github.com/airbnb/airpal.git
sudo apt-get install npm nodejs-legacy
./gradlew clean shadowJar
次のメッセージが表示されます。
:installAssets
> contextify@0.1.13 install /home/carl/presto/airpal/src/main/resources/assets/node_modules/jest-cli/node_modules/jsdom/node_modules/contextify
> node-gyp rebuild
Usage: gyp_main.py [options ...] [build_file ...]
gyp_main.py: error: no such option: --no-parallel
gyp ERR! configure error
gyp ERR! stack Error: `gyp` failed with exit code: 2
gyp ERR! stack at ChildProcess.onCpExit (/home/carl/.gradle/nodejs/node-v0.10.33-linux-
gyp ERR! System Linux 3.13.0-24-generic
gyp ERR! command "node" "/home/carl/.gradle/nodejs/node-v0.10.33-linux-x64/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /home/carl/presto/airpal/src/main/resources/assets/node_modules/jest-cli/node_modules/jsdom/node_modules/contextify
gyp ERR! node -v v0.10.33
gyp ERR! node-gyp -v v1.0.1
gyp ERR! not ok
npm ERR! contextify@0.1.13 install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the contextify@0.1.13 install script.
npm ERR! This is most likely a problem with the contextify package,
npm ERR! not with npm itself.
:installAssets FAILED
FAILURE: Build failed with an exception.
BUILD FAILED
私は何が欠けていますか?--no-parallel エラーでいくつかの疑いがあり、node-gyp の再構築を実行しようとすると、binding.gyp ファイルが見つからないというエラーが発生しました。質問終わり。次のテキストは、SO のコードと詳細の比率を満たすことを目的としています。
私は node や node-gyp にあまり詳しくないので、誰かが助けてくれることを願っています。比率に収まるようにスタックトレースの大部分を削除しましたが、削除しすぎてコンテキストが失われることも心配です。