『壹』 在linux 環境 運行 node-gyp configure 出錯了,在線求助
裝了python環境了沒,如果沒有裝,就是因為環境的問題啦。
『貳』 在Linux 環境 運行 node-gyp configure 出錯了,在線求助
感覺其實不用單獨node-gyp configure 的 安裝了node-gyp之後 配置好python 然後在項目根目錄再次運行 npm install的時候 它就是自動 再運行node-gyp 根據你的系統的做對應包的插件安裝。而node-gyp configure 是需要自己寫插件的時候才需要用到,至於自己寫插件這種情況還沒有遇到。建議可以按著官方API的例子試一下!
『叄』 在Linux 環境 運行 node-gyp configure 出錯了,在線求助
gyp info it worked if it ends with ok
gyp info using node-gyp[@0](/user/0).13.0
gyp info using node[@0](/user/0).10.4 | linux | x64
gyp info spawn python
gyp info spawn args [ '/usr/local/lib/node_moles/node-gyp/gyp/gyp_main.py',
gyp info spawn args 'binding.gyp',
gyp info spawn args '-f',
gyp info spawn args 'make',
gyp info spawn args '-I',
gyp info spawn args '/workspace/wwwroot/n_phpip/tsc/tj/node_moles/build/config.gypi',
gyp info spawn args '-I',
gyp info spawn args '/usr/local/lib/node_moles/node-gyp/addon.gypi',
gyp info spawn args '-I',
gyp info spawn args '/root/.node-gyp/0.10.4/common.gypi',
gyp info spawn args '-Dlibrary=shared_library',
gyp info spawn args '-Dvisibility=default',
gyp info spawn args '-Dnode_root_dir=/root/.node-gyp/0.10.4',
gyp info spawn args '-Dmole_root_dir=/workspace/wwwroot/n_phpip/tsc/tj/node_moles',
gyp info spawn args '--depth=.',
gyp info spawn args '--no-parallel',
gyp info spawn args '--generator-output',
gyp info spawn args 'build',
gyp info spawn args '-Goutput_dir=.' ]
Traceback (most recent call last):
File "/usr/local/lib/node_moles/node-gyp/gyp/gyp_main.py", line 18, in <mole>
sys.exit(gyp.script_main())
File "/usr/local/lib/node_moles/node-gyp/gyp/pylib/gyp/__init__.py", line 534, in script_main
return main(sys.argv[1:])
File "/usr/local/lib/node_moles/node-gyp/gyp/pylib/gyp/__init__.py", line 527, in main
return gyp_main(args)
File "/usr/local/lib/node_moles/node-gyp/gyp/pylib/gyp/__init__.py", line 503, in gyp_main
options.circular_check)
File "/usr/local/lib/node_moles/node-gyp/gyp/pylib/gyp/__init__.py", line 129, in Load
params['parallel'], params['root_targets'])
File "/usr/local/lib/node_moles/node-gyp/gyp/pylib/gyp/input.py", line 2692, in Load
variables, includes, depth, check, True)
File "/usr/local/lib/node_moles/node-gyp/gyp/pylib/gyp/input.py", line 362, in LoadTargetBuildFile
includes, True, check)
File "/usr/local/lib/node_moles/node-gyp/gyp/pylib/gyp/input.py", line 219, in LoadOneBuildFile
None)
File "binding.gyp", line 1
{
^
SyntaxError: invalid syntax
gyp ERR! configure error
gyp ERR! stack Error: `gyp` failed with exit code: 1
gyp ERR! stack at ChildProcess.onCpExit (/usr/local/lib/node_moles/node-gyp/lib/configure.js:340:16)
gyp ERR! stack at ChildProcess.EventEmitter.emit (events.js:98:17)
gyp ERR! stack at Process.ChildProcess._handle.onexit (child_process.js:784:12)
gyp ERR! System Linux 2.6.32-220.el6.x86_64
gyp ERR! command "node" "/usr/local/bin/node-gyp" "configure"
gyp ERR! cwd /workspace/wwwroot/n_phpip/tsc/tj/node_moles
gyp ERR! node -v v0.10.4
gyp ERR! node-gyp -v v0.13.0
gyp ERR! not ok
『肆』 在Linux 環境 運行 node-gyp configure 出錯了,在線求助
沒有binding.gyp文件 公司有人提供C的代碼,用來做我nodejs的擴展模塊 是binding.gyp文件報錯了,已解決
『伍』 node-gyp build失敗,不知道什麼原因
gyp ERR! stack Error: connect ETIMEDOUT 在試下有台linux vps,沒有界面,遠程debug太慢,還得用windows啊
『陸』 在Linux 環境 運行 node-gyp configure 出錯了,在線求助
沒有binding.gyp文件
公司有人提供C的代碼,用來做我nodejs的擴展模塊
是binding.gyp文件報錯了,已解決
『柒』 node-gyp build失敗,不知道什麼原因
gyp ERR! stack Error: connect ETIMEDOUT
在試下有台linux vps,沒有界面,遠程debug太慢,還得用windows啊
『捌』 如何在 linux 中安裝 APPIUM · TesterHome
系統環境
OS: centos6.5
JDK: 1.7
已安裝依賴
gcc python openssl
-----------其為安裝nodejs的環境
已成功安裝
nodejs : v0.10.40
NPM : v 1.4.28
安裝後的問題
[email protected] install /usr/lib/node_moles/appium/node_moles/ws/node_moles/bufferutil
node-gyp rebuild
gyp WARN EACCES user "root" does not have permission to access the dev dir "/root/.node-gyp/0.10.40"
gyp WARN EACCES attempting to reinstall using temporary dev dir
"/usr/lib/node_moles/appium/node_moles/ws/node_moles/bufferutil/.node-gyp"
gyp WARN install got an error, rolling back install
gyp WARN install got an error, rolling back install
gyp ERR! configure error
gyp ERR! stack Error: read ECONNRESET
gyp ERR! stack at errnoException (net.js:905:11)
gyp ERR! stack at TCP.onread (net.js:559:19)
gyp ERR! System Linux 2.6.32-431.23.3.el6.x86_64
gyp ERR! command "node" "/usr/lib/node_moles/npm/node_moles/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /usr/lib/node_moles/appium/node_moles/ws/node_moles/bufferutil
gyp ERR! node -v v0.10.40
gyp ERR! node-gyp -v v1.0.1
gyp ERR! not ok
npm WARN engine [email protected]: wanted: {"node":"0.8.x"} (current: {"node":"0.10.40","npm":"1.4.28"})
npm WARN engine [email protected]: wanted: {"node":"0.8.x"} (current: {"node":"0.10.40","npm":"1.4.28"})
npm WARN engine [email protected]: wanted: {"node":"0.8.x"} (current: {"node":"0.10.40","npm":"1.4.28"})
npm WARN engine [email protected]: wanted: {"node":"0.8.x"} (current: {"node":"0.10.40","npm":"1.4.28"})
npm WARN engine [email protected]: wanted: {"node":"0.8.x"} (current: {"node":"0.10.40","npm":"1.4.28"})
npm WARN optional dep failed, continuing [email protected]
直接將nodejs的安裝的路徑改成chmod 777 之後 就可以解壓安裝了,這樣子就不會跟npm install appium 沖突了
『玖』 node-gyp build失敗,不知道什麼原因
gyp ERR! stack Error: connect ETIMEDOUT 在試下有台linux vps,沒有界面,遠程debug太慢,還得用windows啊