[root@AY1309251503212494edZ src]# cnpm install -d npm info it worked if it ends with ok npm info using npm@2.11.3 npm info using node@v0.12.7 npm info preinstall signin@0.0.1 npm info package.json uuid@2.0.1 No license field. npm info attempt registry request try #1 at 17:38:15 npm http request GET https://registry.npm.taobao.org/ccap npm http 304 https://registry.npm.taobao.org/ccap npm info install ccap@0.6.0 into /var/www/xxx.net/src npm info installOne ccap@0.6.0 npm info preinstall ccap@0.6.0
ccap@0.6.0 preinstall /var/www/xxx.net/src/node_modules/ccap node make.js
I’m glad you to select ccap, enjoy it!
ccap is a cross plat form and portable nodejs simple captcha module, simple api and lightweight.
starting compile ccap! good luck! npm info attempt registry request try #1 at 17:38:16 npm http request GET https://registry.npm.taobao.org/node-schedule npm info attempt registry request try #1 at 17:38:16 npm http request GET https://registry.npm.taobao.org/nan npm http 304 https://registry.npm.taobao.org/nan npm http 304 https://registry.npm.taobao.org/node-schedule npm info install nan@1.7.0 into /var/www/xxx.net/src/node_modules/ccap npm info install node-schedule@0.1.13 into /var/www/xxx.net/src/node_modules/c cap npm info installOne nan@1.7.0 npm info installOne node-schedule@0.1.13 npm info preinstall node-schedule@0.1.13 npm info build /var/www/xxx.net/src/node_modules/ccap/node_modules/node-schedu le npm info linkStuff node-schedule@0.1.13 npm info install node-schedule@0.1.13 npm info postinstall node-schedule@0.1.13 npm info preinstall nan@1.7.0 npm info build /var/www/xxx.net/src/node_modules/ccap/node_modules/nan npm info linkStuff nan@1.7.0 npm info install nan@1.7.0 npm info postinstall nan@1.7.0 npm info build /var/www/xxx.net/src/node_modules/ccap npm info linkStuff ccap@0.6.0 npm info install ccap@0.6.0
ccap@0.6.0 install /var/www/xxx.net/src/node_modules/ccap node-gyp rebuild
gyp info it worked if it ends with ok gyp info using node-gyp@2.0.1 gyp info using node@0.12.7 | linux | x64 gyp info spawn python2 gyp info spawn args [ ‘/usr/local/lib/node_modules/npm/node_modules/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 ‘/var/www/xxx.net/src/node_modules/ccap/build/config.gyp i’, gyp info spawn args ‘-I’, gyp info spawn args ‘/usr/local/lib/node_modules/npm/node_modules/node-gyp/add on.gypi’, gyp info spawn args ‘-I’, gyp info spawn args ‘/root/.node-gyp/0.12.7/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.12.7’, gyp info spawn args ‘-Dmodule_root_dir=/var/www/xxx.net/src/node_modules/cca p’, 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_modules/npm/node_modules/node-gyp/gyp/gyp_main.py”, line 18, in <module> sys.exit(gyp.script_main()) File “/usr/local/lib/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/in it.py”, line 533, in script_main return main(sys.argv[1:]) File “/usr/local/lib/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/in it.py”, line 526, in main return gyp_main(args) File “/usr/local/lib/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/in it.py”, line 502, in gyp_main params, options.check, options.circular_check) File “/usr/local/lib/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/in it.py”, line 129, in Load params[‘parallel’], params[‘root_targets’]) File “/usr/local/lib/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/inpu t.py”, line 2736, in Load variables, includes, depth, check, True) File “/usr/local/lib/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/inpu t.py”, line 386, in LoadTargetBuildFile includes, True, check) [root@AY1309251503212494edZ src]# cnpm install -d npm info it worked if it ends with ok npm info using npm@2.11.3 npm info using node@v0.12.7 npm info preinstall signin@0.0.1 npm info package.json uuid@2.0.1 No license field. npm info attempt registry request try #1 at 17:38:48 npm http request GET https://registry.npm.taobao.org/ccap npm http 304 https://registry.npm.taobao.org/ccap npm info install ccap@0.6.0 into /var/www/yunzj.net/src npm info installOne ccap@0.6.0 npm info preinstall ccap@0.6.0
ccap@0.6.0 preinstall /var/www/yunzj.net/src/node_modules/ccap node make.js
I’m glad you to select ccap, enjoy it!
ccap is a cross plat form and portable nodejs simple captcha module, simple api and lightweight.
starting compile ccap! good luck! npm info attempt registry request try #1 at 17:38:49 npm http request GET https://registry.npm.taobao.org/node-schedule npm info attempt registry request try #1 at 17:38:49 npm http request GET https://registry.npm.taobao.org/nan npm http 304 https://registry.npm.taobao.org/node-schedule npm http 304 https://registry.npm.taobao.org/nan npm info install node-schedule@0.1.13 into /var/www/xxx.net/src/node_modules/c cap npm info install nan@1.7.0 into /var/www/xxx.net/src/node_modules/ccap npm info installOne node-schedule@0.1.13 npm info installOne nan@1.7.0 npm info preinstall node-schedule@0.1.13 npm info build /var/www/xxx.net/src/node_modules/ccap/node_modules/node-schedu le npm info linkStuff node-schedule@0.1.13 npm info install node-schedule@0.1.13 npm info postinstall node-schedule@0.1.13 npm info preinstall nan@1.7.0 npm info build /var/www/xxx.net/src/node_modules/ccap/node_modules/nan npm info linkStuff nan@1.7.0 npm info install nan@1.7.0 npm info postinstall nan@1.7.0 npm info build /var/www/xxx.net/src/node_modules/ccap npm info linkStuff ccap@0.6.0 npm info install ccap@0.6.0
ccap@0.6.0 install /var/www/yunzj.net/src/node_modules/ccap node-gyp rebuild
gyp info it worked if it ends with ok
gyp info using node-gyp@2.0.1
gyp info using node@0.12.7 | linux | x64
gyp info spawn python2
gyp info spawn args [ ‘/usr/local/lib/node_modules/npm/node_modules/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 ‘/var/www/xxx.net/src/node_modules/ccap/build/config.gyp
i’,
gyp info spawn args ‘-I’,
gyp info spawn args ‘/usr/local/lib/node_modules/npm/node_modules/node-gyp/add
on.gypi’,
gyp info spawn args ‘-I’,
gyp info spawn args ‘/root/.node-gyp/0.12.7/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.12.7’,
gyp info spawn args ‘-Dmodule_root_dir=/var/www/xxx.net/src/node_modules/cca
p’,
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_modules/npm/node_modules/node-gyp/gyp/gyp_main.py”,
line 18, in <module>
sys.exit(gyp.script_main())
File “/usr/local/lib/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/in
it.py”, line 533, in script_main
return main(sys.argv[1:])
File “/usr/local/lib/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/in
it.py”, line 526, in main
return gyp_main(args)
File “/usr/local/lib/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/in
it.py”, line 502, in gyp_main
params, options.check, options.circular_check)
File “/usr/local/lib/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/in
it.py”, line 129, in Load
params[‘parallel’], params[‘root_targets’])
File “/usr/local/lib/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/inpu
t.py”, line 2736, in Load
variables, includes, depth, check, True)
File “/usr/local/lib/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/inpu
t.py”, line 386, in LoadTargetBuildFile
includes, True, check)
File “/usr/local/lib/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/inpu
t.py”, line 238, 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_modules/npm/nod
e_modules/node-gyp/lib/configure.js:355:16)
gyp ERR! stack at ChildProcess.emit (events.js:110:17)
gyp ERR! stack at Process.ChildProcess._handle.onexit (child_process.js:1074
:12)
gyp ERR! System Linux 2.6.32-358.6.2.el6.x86_64
gyp ERR! command “node” “/usr/local/lib/node_modules/npm/node_modules/node-gyp/b
in/node-gyp.js” "rebuild"
gyp ERR! cwd /var/www/yunzj.net/src/node_modules/ccap
gyp ERR! node -v v0.12.7
gyp ERR! node-gyp -v v2.0.1
gyp ERR! not ok
npm info ccap@0.6.0 Failed to exec install script
npm ERR! Linux 2.6.32-358.6.2.el6.x86_64
npm ERR! argv “/usr/local/bin/node” “/usr/local/bin/npm” “–registry=https://reg
istry.npm.taobao.org” “–cache=/root/.npm/.cache/cnpm” “–disturl=https://npm.ta
obao.org/dist” “–userconfig=/root/.cnpmrc” “install” "-d"
npm ERR! node v0.12.7
npm ERR! npm v2.11.3
npm ERR! code ELIFECYCLE
npm ERR! ccap@0.6.0 install: node-gyp rebuild
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the ccap@0.6.0 install script ‘node-gyp rebuild’.
npm ERR! This is most likely a problem with the ccap package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node-gyp rebuild
npm ERR! You can get their info via:
npm ERR! npm owner ls ccap
npm ERR! There is likely additional logging output above.
npm info preuninstall ccap@0.6.0
npm info uninstall ccap@0.6.0
npm info postuninstall ccap@0.6.0
npm ERR! Please include the following file with any support request: npm ERR! /var/www/xxx.net/src/npm-debug.log
npm-debug.log文件内容:////////////////////////////////////////////////////////////////////////////////////////////////////// gyp ERR! stack at ChildProcess.emit (events.js:110:17) 234 silly install resolved main: ‘include_dirs.js’, 234 silly install resolved repository: { type: ‘git’, url: ‘git://github.com /rvagg/nan.git’ }, 234 silly install resolved scripts: 234 silly install resolved { test: ‘tap --gc test/js/*-test.js’, 234 silly install resolved ‘rebuild-tests’: ‘pangyp rebuild --directory t est’ }, 234 silly install resolved contributors: 234 silly install resolved [ [Object], 234 silly install resolved [Object], 234 silly install resolved [Object], 234 silly install resolved [Object],
自己顶一下
自己解决了: 必须要用python2.7 的版本,我服务器2.6 , node-gyp 说明是 >2.5 < 3.0 没想到ccap 还发现要2.7 文档已不说明。晕死了。