npmコマンドを使用してappiumをインストールしようとしています。binding.gyp not found(cwd: node_modules appium node_modules heapdump)binding.gypをロードしようとしています。
すべての試みが間違っています。
は、私は下のリンクを参照してください最後の試みで:
node-gyp build error windows x64
だから私の窓に10 64ビットマシンをappiumをインストールするために、私はステップの下に続く:
npm install --global --production windows-build-tools
npm config set msvs_version 2013 --global
npm install -g node-gyp-install
npm install appium
以下のようにエラーを取得します:
C:\WINDOWS\system32\node_modules\appium\node_modules\heapdump>if not defined npm_config_node_gyp (node "C:\Program Files\nodejs\node_modules\npm\bin\node-gyp-bin\....\node_modules\node-gyp\bin\node-gyp.js" rebuild) else (node "" rebuild) gyp: binding.gyp not found (cwd: C:\WINDOWS\system32\node_modules\appium\node_modules\heapdump) while trying to load binding.gyp gyp ERR! configure error gyp ERR! stack Error:
gyp
failed with exit code: 1 gyp ERR! stack at ChildProcess.onCpExit (C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\configure.js:305:16) gyp ERR! stack at emitTwo (events.js:106:13) gyp ERR! stack at ChildProcess.emit (events.js:191:7) gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:215:12) gyp ERR! System Windows_NT 10.0.15063 gyp ERR! command "C:\Program Files\nodejs\node.exe" "C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js" "rebuild" gyp ERR! cwd C:\WINDOWS\system32\node_modules\appium\node_modules\heapdump gyp ERR! node -v v6.11.0 gyp ERR! node-gyp -v v3.4.0 gyp ERR! not ok C:\WINDOWS\system32 `-- [email protected]
appiumの唯一の問題は、複雑な構成です。
Windowsにappiumをインストールする作業手順がある場合は、共有してください。それは本当にどれ提案は、私が
npm install -g appium
ので、手順の下でインストールappiumをインストールするためのグローバルタグを逃した
ドゥあなたはPython 2をインストールしましたか? 'node-gyp'はそれを必要とします。私も同様の問題がありました(http://www.uselesscode.org/blog/posts/converting-the-uselesscode-org-blog-to-a-static-site/#difficulties-in-the-process)a while私はnpmをアップグレードしたときに戻る。また、あなたは 'node-gyp-install'をインストールしたと言っていますが、' node-gyp'もインストールしましたか? –
はい私はpython 2.7.9を自分のシステムにインストールしました。 "npm install --global --production windows-build-tools"を使用している間に再びインストールする –