nwjs / nw-gyp

native addon build tool for node-webkit

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

build error:TypeError: Invalid Version: undefined

winye opened this issue · comments

commented

1-------------------------------------------------------------------------------------
xxx\nwjs-sdk-v0.28.3-win-ia32>npm install ffi

ffi@2.2.0 install E:\work\web\nwjs-sdk-v0.28.3-win-ia32\node_modules\ffi
node-gyp rebuild

E:\work\web\nwjs-sdk-v0.28.3-win-ia32\node_modules\ffi>if not defined npm_confi
_node_gyp (node "C:\Program Files (x86)\nodejs\node_modules\npm\node_modules\np
-lifecycle\node-gyp-bin\....\node_modules\node-gyp\bin\node-gyp.js" rebuild )
else (node "C:\Program Files (x86)\nodejs\node_modules\npm\node_modules\node-g
p\bin\node-gyp.js" rebuild )
在此解决方案中一次生成一个项目。若要启用并行生成,请添加“/m”开关。
Building assembly file ......\deps\libffi\src\x86\win32.asm
Assembling: ......\deps\libffi\src\x86\win32.asm
prep_cif.c
types.c
raw_api.c
java_raw_api.c
closures.c
ffi.c
win_delay_load_hook.cc
ffi.vcxproj -> E:\work\web\nwjs-sdk-v0.28.3-win-ia32\node_modules\ffi\build\R
elease\libffi.lib
ffi.cc
callback_info.cc
threaded_callback_invokation.cc
win32-dlfcn.cc
win_delay_load_hook.cc
..\src\callback_info.cc(63): warning C4996: 'Nan::Callback::Call': was declared
deprecated [E:\work\web\nwjs-sdk-v0.28.3-win-ia32\node_modules\ffi\build\ffi_b
indings.vcxproj]
E:\work\web\nwjs-sdk-v0.28.3-win-ia32\node_modules\nan\nan.h(1618): note: see
declaration of 'Nan::Callback::Call'
..\src\callback_info.cc(73): warning C4996: 'Nan::Callback::Call': was declared
deprecated [E:\work\web\nwjs-sdk-v0.28.3-win-ia32\node_modules\ffi\build\ffi_b
indings.vcxproj]
E:\work\web\nwjs-sdk-v0.28.3-win-ia32\node_modules\nan\nan.h(1618): note: see
declaration of 'Nan::Callback::Call'
..\src\callback_info.cc(78): warning C4996: 'Nan::Callback::Call': was declared
deprecated [E:\work\web\nwjs-sdk-v0.28.3-win-ia32\node_modules\ffi\build\ffi_b
indings.vcxproj]
E:\work\web\nwjs-sdk-v0.28.3-win-ia32\node_modules\nan\nan.h(1618): note: see
declaration of 'Nan::Callback::Call'
..\src\ffi.cc(58): warning C4996: 'Nan::ForceSet': was declared deprecated [E:
work\web\nwjs-sdk-v0.28.3-win-ia32\node_modules\ffi\build\ffi_bindings.vcxproj]
e:\work\web\nwjs-sdk-v0.28.3-win-ia32\node_modules\nan\nan_maybe_43_inl.h(130
): note: see declaration of 'Nan::ForceSet'
..\src\ffi.cc(59): warning C4996: 'Nan::ForceSet': was declared deprecated [E:
work\web\nwjs-sdk-v0.28.3-win-ia32\node_modules\ffi\build\ffi_bindings.vcxproj]
e:\work\web\nwjs-sdk-v0.28.3-win-ia32\node_modules\nan\nan_maybe_43_inl.h(130
): note: see declaration of 'Nan::ForceSet'
..\src\ffi.cc(60): warning C4996: 'Nan::ForceSet': was declared deprecated [E:
work\web\nwjs-sdk-v0.28.3-win-ia32\node_modules\ffi\build\ffi_bindings.vcxproj]
e:\work\web\nwjs-sdk-v0.28.3-win-ia32\node_modules\nan\nan_maybe_43_inl.h(130
): note: see declaration of 'Nan::ForceSet'
..\src\ffi.cc(63): warning C4996: 'Nan::ForceSet': was declared deprecated [E:
work\web\nwjs-sdk-v0.28.3-win-ia32\node_modules\ffi\build\ffi_bindings.vcxproj]
e:\work\web\nwjs-sdk-v0.28.3-win-ia32\node_modules\nan\nan_maybe_43_inl.h(130
): note: see declaration of 'Nan::ForceSet'
..\src\ffi.cc(64): warning C4996: 'Nan::ForceSet': was declared deprecated [E:
work\web\nwjs-sdk-v0.28.3-win-ia32\node_modules\ffi\build\ffi_bindings.vcxproj]
e:\work\web\nwjs-sdk-v0.28.3-win-ia32\node_modules\nan\nan_maybe_43_inl.h(130
): note: see declaration of 'Nan::ForceSet'
..\src\ffi.cc(65): warning C4996: 'Nan::ForceSet': was declared deprecated [E:
work\web\nwjs-sdk-v0.28.3-win-ia32\node_modules\ffi\build\ffi_bindings.vcxproj]
e:\work\web\nwjs-sdk-v0.28.3-win-ia32\node_modules\nan\nan_maybe_43_inl.h(130
): note: see declaration of 'Nan::ForceSet'
..\src\ffi.cc(72): warning C4996: 'Nan::ForceSet': was declared deprecated [E:
work\web\nwjs-sdk-v0.28.3-win-ia32\node_modules\ffi\build\ffi_bindings.vcxproj]
e:\work\web\nwjs-sdk-v0.28.3-win-ia32\node_modules\nan\nan_maybe_43_inl.h(130
): note: see declaration of 'Nan::ForceSet'
..\src\ffi.cc(73): warning C4996: 'Nan::ForceSet': was declared deprecated [E:
work\web\nwjs-sdk-v0.28.3-win-ia32\node_modules\ffi\build\ffi_bindings.vcxproj]
e:\work\web\nwjs-sdk-v0.28.3-win-ia32\node_modules\nan\nan_maybe_43_inl.h(130
): note: see declaration of 'Nan::ForceSet'
..\src\ffi.cc(74): warning C4996: 'Nan::ForceSet': was declared deprecated [E:
work\web\nwjs-sdk-v0.28.3-win-ia32\node_modules\ffi\build\ffi_bindings.vcxproj]
e:\work\web\nwjs-sdk-v0.28.3-win-ia32\node_modules\nan\nan_maybe_43_inl.h(130
): note: see declaration of 'Nan::ForceSet'
..\src\ffi.cc(75): warning C4996: 'Nan::ForceSet': was declared deprecated [E:
work\web\nwjs-sdk-v0.28.3-win-ia32\node_modules\ffi\build\ffi_bindings.vcxproj]
e:\work\web\nwjs-sdk-v0.28.3-win-ia32\node_modules\nan\nan_maybe_43_inl.h(130
): note: see declaration of 'Nan::ForceSet'
..\src\ffi.cc(76): warning C4996: 'Nan::ForceSet': was declared deprecated [E:
work\web\nwjs-sdk-v0.28.3-win-ia32\node_modules\ffi\build\ffi_bindings.vcxproj]
e:\work\web\nwjs-sdk-v0.28.3-win-ia32\node_modules\nan\nan_maybe_43_inl.h(130
): note: see declaration of 'Nan::ForceSet'
..\src\ffi.cc(88): warning C4996: 'Nan::ForceSet': was declared deprecated [E:
work\web\nwjs-sdk-v0.28.3-win-ia32\node_modules\ffi\build\ffi_bindings.vcxproj]
e:\work\web\nwjs-sdk-v0.28.3-win-ia32\node_modules\nan\nan_maybe_43_inl.h(130
): note: see declaration of 'Nan::ForceSet'
..\src\ffi.cc(91): warning C4996: 'Nan::ForceSet': was declared deprecated [E:
work\web\nwjs-sdk-v0.28.3-win-ia32\node_modules\ffi\build\ffi_bindings.vcxproj]
e:\work\web\nwjs-sdk-v0.28.3-win-ia32\node_modules\nan\nan_maybe_43_inl.h(130
): note: see declaration of 'Nan::ForceSet'
..\src\ffi.cc(94): warning C4996: 'Nan::ForceSet': was declared deprecated [E:
work\web\nwjs-sdk-v0.28.3-win-ia32\node_modules\ffi\build\ffi_bindings.vcxproj]
e:\work\web\nwjs-sdk-v0.28.3-win-ia32\node_modules\nan\nan_maybe_43_inl.h(130
): note: see declaration of 'Nan::ForceSet'
..\src\ffi.cc(97): warning C4996: 'Nan::ForceSet': was declared deprecated [E:
work\web\nwjs-sdk-v0.28.3-win-ia32\node_modules\ffi\build\ffi_bindings.vcxproj]
e:\work\web\nwjs-sdk-v0.28.3-win-ia32\node_modules\nan\nan_maybe_43_inl.h(130
): note: see declaration of 'Nan::ForceSet'
..\src\ffi.cc(111): warning C4996: 'v8::Object::ForceSet': was declared depreca
ted [E:\work\web\nwjs-sdk-v0.28.3-win-ia32\node_modules\ffi\build\ffi_bindings.
vcxproj]
c:\users\ye.node-gyp\8.11.1\include\node\v8.h(3116): note: see declaration o
f 'v8::Object::ForceSet'
..\src\ffi.cc(114): warning C4996: 'v8::Object::ForceSet': was declared depreca
ted [E:\work\web\nwjs-sdk-v0.28.3-win-ia32\node_modules\ffi\build\ffi_bindings.
vcxproj]
c:\users\ye.node-gyp\8.11.1\include\node\v8.h(3116): note: see declaration o
f 'v8::Object::ForceSet'
..\src\ffi.cc(123): warning C4996: 'v8::Object::ForceSet': was declared depreca
ted [E:\work\web\nwjs-sdk-v0.28.3-win-ia32\node_modules\ffi\build\ffi_bindings.
vcxproj]
c:\users\ye.node-gyp\8.11.1\include\node\v8.h(3116): note: see declaration o
f 'v8::Object::ForceSet'
..\src\ffi.cc(124): warning C4996: 'v8::Object::ForceSet': was declared depreca
ted [E:\work\web\nwjs-sdk-v0.28.3-win-ia32\node_modules\ffi\build\ffi_bindings.
vcxproj]
c:\users\ye.node-gyp\8.11.1\include\node\v8.h(3116): note: see declaration o
f 'v8::Object::ForceSet'
..\src\ffi.cc(125): warning C4996: 'v8::Object::ForceSet': was declared depreca
ted [E:\work\web\nwjs-sdk-v0.28.3-win-ia32\node_modules\ffi\build\ffi_bindings.
vcxproj]
c:\users\ye.node-gyp\8.11.1\include\node\v8.h(3116): note: see declaration o
f 'v8::Object::ForceSet'
..\src\ffi.cc(126): warning C4996: 'v8::Object::ForceSet': was declared depreca
ted [E:\work\web\nwjs-sdk-v0.28.3-win-ia32\node_modules\ffi\build\ffi_bindings.
vcxproj]
c:\users\ye.node-gyp\8.11.1\include\node\v8.h(3116): note: see declaration o
f 'v8::Object::ForceSet'
..\src\ffi.cc(132): warning C4996: 'v8::Object::ForceSet': was declared depreca
ted [E:\work\web\nwjs-sdk-v0.28.3-win-ia32\node_modules\ffi\build\ffi_bindings.
vcxproj]
c:\users\ye.node-gyp\8.11.1\include\node\v8.h(3116): note: see declaration o
f 'v8::Object::ForceSet'
..\src\ffi.cc(367): warning C4996: 'Nan::Callback::Call': was declared deprecat
ed [E:\work\web\nwjs-sdk-v0.28.3-win-ia32\node_modules\ffi\build\ffi_bindings.v
cxproj]
E:\work\web\nwjs-sdk-v0.28.3-win-ia32\node_modules\nan\nan.h(1618): note: see
declaration of 'Nan::Callback::Call'
Creating library E:\work\web\nwjs-sdk-v0.28.3-win-ia32\node_modules\ffi\bu
ild\Release\ffi_bindings.lib and object E:\work\web\nwjs-sdk-v0.28.3-win-ia32
\node_modules\ffi\build\Release\ffi_bindings.exp
Generating code
Finished generating code
ffi_bindings.vcxproj -> E:\work\web\nwjs-sdk-v0.28.3-win-ia32\node_modules\ff
i\build\Release\ffi_bindings.node
ffi_bindings.vcxproj -> E:\work\web\nwjs-sdk-v0.28.3-win-ia32\node_modules\ff
i\build\Release\ffi_bindings.pdb (Full PDB)
2-------------------------------------------------------------------------------------
xxx\nwjs-sdk-v0.28.3-win-ia32\node_modules\ffi>nw-gyp configure --target
=0.28.3 --arch=ia32
gyp info it worked if it ends with ok
gyp info using nw-gyp@3.6.3
gyp info using node@8.11.1 | win32 | ia32
gyp info spawn C:\Users\Ye.windows-build-tools\python27\python.EXE
gyp info spawn args [ 'C:\Users\Ye\AppData\Roaming\npm\node_modules\nw-gy
p\gyp\gyp_main.py',
gyp info spawn args 'binding.gyp',
gyp info spawn args '-f',
gyp info spawn args 'msvs',
gyp info spawn args '-G',
gyp info spawn args 'msvs_version=auto',
gyp info spawn args '-I',
gyp info spawn args 'E:\work\web\nwjs-sdk-v0.28.3-win-ia32\node_modules\f
fi\build\config.gypi',
gyp info spawn args '-I',
gyp info spawn args 'C:\Users\Ye\AppData\Roaming\npm\node_modules\nw-gy
p\addon.gypi',
gyp info spawn args '-I',
gyp info spawn args 'C:\Users\Ye\.nw-gyp\0.28.3\common.gypi',
gyp info spawn args '-Dlibrary=shared_library',
gyp info spawn args '-Dvisibility=default',
gyp info spawn args '-Dnode_root_dir=C:\Users\Ye\.nw-gyp\0.28.3',
gyp info spawn args '-Dnode_gyp_dir=C:\Users\Ye\AppData\Roaming\npm\node
_modules\nw-gyp',
gyp info spawn args '-Dnode_lib_file="C:\Users\Ye\.nw-gyp\0.28.3\<(target
_arch)\node.lib"',
gyp info spawn args '-Dnw_lib_file="C:\Users\Ye\.nw-gyp\0.28.3\<(target_a
rch)\nw.lib"',
gyp info spawn args '-Dmodule_root_dir=E:\work\web\nwjs-sdk-v0.28.3-win-ia3
2\node_modules\ffi',
gyp info spawn args '-Dnode_engine=v8',
gyp info spawn args '--depth=.',
gyp info spawn args '--no-parallel',
gyp info spawn args '-Dv13=1',
gyp info spawn args '--generator-output',
gyp info spawn args 'E:\work\web\nwjs-sdk-v0.28.3-win-ia32\node_modules\f
fi\build',
gyp info spawn args '-Goutput_dir=.' ]
gyp info ok
3----------------------------------------------------------------------------------------------------------
E:\work\web\nwjs-sdk-v0.28.3-win-ia32\node_modules\ffi>nw-gyp build
gyp info it worked if it ends with ok
gyp info using nw-gyp@3.6.3
gyp info using node@8.11.1 | win32 | ia32
gyp ERR! UNCAUGHT EXCEPTION
gyp ERR! stack TypeError: Invalid Version: undefined
gyp ERR! stack at new SemVer (C:\Users\Ye\AppData\Roaming\npm\node_modules\n
w-gyp\node_modules\semver\semver.js:279:11)
gyp ERR! stack at compare (C:\Users\Ye\AppData\Roaming\npm\node_modules\nw-g
yp\node_modules\semver\semver.js:566:10)
gyp ERR! stack at Function.gt (C:\Users\Ye\AppData\Roaming\npm\node_modules
nw-gyp\node_modules\semver\semver.js:595:10)
gyp ERR! stack at C:\Users\Ye\AppData\Roaming\npm\node_modules\nw-gyp\lib\bu
ild.js:64:22
gyp ERR! stack at C:\Users\Ye\AppData\Roaming\npm\node_modules\nw-gyp\node_m
odules\graceful-fs\graceful-fs.js:78:16
gyp ERR! stack at FSReqWrap.readFileAfterClose [as oncomplete] (fs.js:511:3)

gyp ERR! System Windows_NT 6.1.7601
gyp ERR! command "C:\Program Files (x86)\nodejs\node.exe" "C:\Users\Ye\App
Data\Roaming\npm\node_modules\nw-gyp\bin\nw-gyp.js" "build"
gyp ERR! cwd E:\work\web\nwjs-sdk-v0.28.3-win-ia32\node_modules\ffi
gyp ERR! node -v v8.11.1
gyp ERR! nw-gyp -v v3.6.3
gyp ERR! This is a bug in nw-gyp.
gyp ERR! Try to update nw-gyp and file an Issue if it does not help:
gyp ERR! https://github.com/nwjs/nw-gyp/issues