You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
yarn install v0.24.6
[1/4] Resolving packages...
[2/4] Fetching packages...
[3/4] Linking dependencies...
[4/4] Building fresh packages...
[1/1] ⠂ ccap: CC(target) Release/obj.target/hcaptha/addon/jpeglib/jmemnobs.o
[-/1] ⠂ waiting...
[-/1] ⠂ waiting...
[-/1] ⠂ waiting...
error /opt/projects/rela_web_api/node_modules/ccap: Command failed.
Exit code: 1
Command: sh
Arguments: -c node-gyp rebuild
Directory: /opt/projects/rela_web_api/node_modules/ccap
Output:
gyp info it worked if it ends with ok
gyp info using node-gyp@3.6.2
gyp info using node@7.10.0 | linux | x64
gyp info spawn /usr/bin/python2
gyp info spawn args [ '/home/ubuntu/.nvm/versions/node/v7.10.0/lib/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 '/opt/projects/rela_web_api/node_modules/ccap/build/config.gypi',
gyp info spawn args '-I',
gyp info spawn args '/home/ubuntu/.nvm/versions/node/v7.10.0/lib/node_modules/node-gyp/addon.gypi',
gyp info spawn args '-I',
gyp info spawn args '/home/ubuntu/.node-gyp/7.10.0/include/node/common.gypi',
gyp info spawn args '-Dlibrary=shared_library',
gyp info spawn args '-Dvisibility=default',
gyp info spawn args '-Dnode_root_dir=/home/ubuntu/.node-gyp/7.10.0',
gyp info spawn args '-Dnode_gyp_dir=/home/ubuntu/.nvm/versions/node/v7.10.0/lib/node_modules/node-gyp',
gyp info spawn args '-Dnode_lib_file=/home/ubuntu/.node-gyp/7.10.0/<(target_arch)/node.lib',
gyp info spawn args '-Dmodule_root_dir=/opt/projects/rela_web_api/node_modules/ccap',
gyp info spawn args '-Dnode_engine=v8',
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=.' ]
gyp info spawn make
gyp info spawn args [ 'BUILDTYPE=Release', '-C', 'build' ]
make: Entering directory `/opt/projects/rela_web_api/node_modules/ccap/build'
CC(target) Release/obj.target/hcaptha/addon/jpeglib/jaricom.o
CC(target) Release/obj.target/hcaptha/addon/jpeglib/jcapimin.o
CC(target) Release/obj.target/hcaptha/addon/jpeglib/jcapistd.o
CC(target) Release/obj.target/hcaptha/addon/jpeglib/jcarith.o
CC(target) Release/obj.target/hcaptha/addon/jpeglib/jccoefct.o
CC(target) Release/obj.target/hcaptha/addon/jpeglib/jccolor.o
CC(target) Release/obj.target/hcaptha/addon/jpeglib/jcdctmgr.o
CC(target) Release/obj.target/hcaptha/addon/jpeglib/jchuff.o
CC(target) Release/obj.target/hcaptha/addon/jpeglib/jcinit.o
CC(target) Release/obj.target/hcaptha/addon/jpeglib/jcmainct.o
../addon/jpeglib/jcmainct.c: In function ‘start_pass_main’:
../addon/jpeglib/jcmainct.c:71:15: warning: ‘main’ is usually a function [-Wmain]
my_main_ptr main = (my_main_ptr) cinfo->main;
^
../addon/jpeglib/jcmainct.c: In function ‘process_data_simple_main’:
../addon/jpeglib/jcmainct.c:117:15: warning: ‘main’ is usually a function [-Wmain]
my_main_ptr main = (my_main_ptr) cinfo->main;
^
../addon/jpeglib/jcmainct.c: In function ‘jinit_c_main_controller’:
../addon/jpeglib/jcmainct.c:247:15: warning: ‘main’ is usually a function [-Wmain]
my_main_ptr main;
^
CC(target) Release/obj.target/hcaptha/addon/jpeglib/jcmarker.o
CC(target) Release/obj.target/hcaptha/addon/jpeglib/jcmaster.o
CC(target) Release/obj.target/hcaptha/addon/jpeglib/jcomapi.o
CC(target) Release/obj.target/hcaptha/addon/jpeglib/jcparam.o
CC(target) Release/obj.target/hcaptha/addon/jpeglib/jcprepct.o
CC(target) Release/obj.target/hcaptha/addon/jpeglib/jcsample.o
CC(target) Release/obj.target/hcaptha/addon/jpeglib/jctrans.o
CC(target) Release/obj.target/hcaptha/addon/jpeglib/jdapimin.o
CC(target) Release/obj.target/hcaptha/addon/jpeglib/jdapistd.o
CC(target) Release/obj.target/hcaptha/addon/jpeglib/jdarith.o
CC(target) Release/obj.target/hcaptha/addon/jpeglib/jdatadst.o
CC(target) Release/obj.target/hcaptha/addon/jpeglib/jdatasrc.o
CC(target) Release/obj.target/hcaptha/addon/jpeglib/jdcoefct.o
CC(target) Release/obj.target/hcaptha/addon/jpeglib/jdcolor.o
CC(target) Release/obj.target/hcaptha/addon/jpeglib/jddctmgr.o
CC(target) Release/obj.target/hcaptha/addon/jpeglib/jdhuff.o
CC(target) Release/obj.target/hcaptha/addon/jpeglib/jdinput.o
CC(target) Release/obj.target/hcaptha/addon/jpeglib/jdmainct.o
../addon/jpeglib/jdmainct.c: In function ‘alloc_funny_pointers’:
../addon/jpeglib/jdmainct.c:162:15: warning: ‘main’ is usually a function [-Wmain]
my_main_ptr main = (my_main_ptr) cinfo->main;
^
../addon/jpeglib/jdmainct.c: In function ‘make_funny_pointers’:
../addon/jpeglib/jdmainct.c:203:15: warning: ‘main’ is usually a function [-Wmain]
my_main_ptr main = (my_main_ptr) cinfo->main;
^
../addon/jpeglib/jdmainct.c: In function ‘set_wraparound_pointers’:
../addon/jpeglib/jdmainct.c:243:15: warning: ‘main’ is usually a function [-Wmain]
my_main_ptr main = (my_main_ptr) cinfo->main;
^
../addon/jpeglib/jdmainct.c: In function ‘set_bottom_pointers’:
../addon/jpeglib/jdmainct.c:272:15: warning: ‘main’ is usually a function [-Wmain]
my_main_ptr main = (my_main_ptr) cinfo->main;
^
../addon/jpeglib/jdmainct.c: In function ‘start_pass_main’:
../addon/jpeglib/jdmainct.c:309:15: warning: ‘main’ is usually a function [-Wmain]
my_main_ptr main = (my_main_ptr) cinfo->main;
^
../addon/jpeglib/jdmainct.c: In function ‘process_data_simple_main’:
../addon/jpeglib/jdmainct.c:349:15: warning: ‘main’ is usually a function [-Wmain]
my_main_ptr main = (my_main_ptr) cinfo->main;
^
../addon/jpeglib/jdmainct.c: In function ‘process_data_context_main’:
../addon/jpeglib/jdmainct.c:389:15: warning: ‘main’ is usually a function [-Wmain]
my_main_ptr main = (my_main_ptr) cinfo->main;
^
../addon/jpeglib/jdmainct.c: In function ‘jinit_d_main_controller’:
../addon/jpeglib/jdmainct.c:478:15: warning: ‘main’ is usually a function [-Wmain]
my_main_ptr main;
^
CC(target) Release/obj.target/hcaptha/addon/jpeglib/jdmarker.o
CC(target) Release/obj.target/hcaptha/addon/jpeglib/jdmaster.o
CC(target) Release/obj.target/hcaptha/addon/jpeglib/jdmerge.o
CC(target) Release/obj.target/hcaptha/addon/jpeglib/jdpostct.o
CC(target) Release/obj.target/hcaptha/addon/jpeglib/jdsample.o
CC(target) Release/obj.target/hcaptha/addon/jpeglib/jdtrans.o
CC(target) Release/obj.target/hcaptha/addon/jpeglib/jerror.o
CC(target) Release/obj.target/hcaptha/addon/jpeglib/jfdctflt.o
CC(target) Release/obj.target/hcaptha/addon/jpeglib/jfdctfst.o
CC(target) Release/obj.target/hcaptha/addon/jpeglib/jfdctint.o
CC(target) Release/obj.target/hcaptha/addon/jpeglib/jidctflt.o
CC(target) Release/obj.target/hcaptha/addon/jpeglib/jidctfst.o
CC(target) Release/obj.target/hcaptha/addon/jpeglib/jidctint.o
CC(target) Release/obj.target/hcaptha/addon/jpeglib/jquant1.o
CC(target) Release/obj.target/hcaptha/addon/jpeglib/jquant2.o
CC(target) Release/obj.target/hcaptha/addon/jpeglib/jutils.o
CC(target) Release/obj.target/hcaptha/addon/jpeglib/jmemmgr.o
CC(target) Release/obj.target/hcaptha/addon/jpeglib/jmemnobs.o
CXX(target) Release/obj.target/hcaptha/addon/hcaptha.o
make: g++: Command not found
make: *** [Release/obj.target/hcaptha/addon/hcaptha.o] Error 127
make: Leaving directory `/opt/projects/rela_web_api/node_modules/ccap/build'
gyp ERR! build error
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack at ChildProcess.onExit (/home/ubuntu/.nvm/versions/node/v7.10.0/lib/node_modules/node-gyp/lib/build.js:258:23)
gyp ERR! stack at emitTwo (events.js:106:13)
gyp ERR! stack at ChildProcess.emit (events.js:194:7)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:215:12)
gyp ERR! System Linux 3.13.0-48-generic
gyp ERR! command "/home/ubuntu/.nvm/versions/node/v7.10.0/bin/node" "/home/ubuntu/.nvm/versions/node/v7.10.0/bin/node-gyp" "rebuild"
gyp ERR! cwd /opt/projects/rela_web_api/node_modules/ccap
gyp ERR! node -v v7.10.0
gyp ERR! node-gyp -v v3.6.2
gyp ERR! not ok
info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.
The text was updated successfully, but these errors were encountered:
已全局安装最新node-gyp
编译好的包提示node版本错误也无法使用
The text was updated successfully, but these errors were encountered: