Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error install with Node v12.18.3 #14

Open
thangphamnd123 opened this issue Sep 18, 2020 · 1 comment
Open

Error install with Node v12.18.3 #14

thangphamnd123 opened this issue Sep 18, 2020 · 1 comment

Comments

@thangphamnd123
Copy link

Hi,

I am trying to install the package from npm but got following error:

"C:\Data\Project\iso8583\node_modules\iso-8583\functions.cc(31,39): error C2039: 'Handle': is not a member of 'v8' [C:\D
ata\Project\iso8583\node_modules\iso-8583\build\ISO8583.vcxproj]
C:\Users\admin\AppData\Local\node-gyp\Cache\12.18.3\include\node\v8-platform.h(16): message : see declaration of 'v8' [
C:\Data\Project\iso8583\node_modules\iso-8583\build\ISO8583.vcxproj]
C:\Data\Project\iso8583\node_modules\iso-8583\functions.cc(31,45): error C2065: 'Handle': undeclared identifier [C:\Dat
a\Project\iso8583\node_modules\iso-8583\build\ISO8583.vcxproj]
C:\Data\Project\iso8583\node_modules\iso-8583\functions.cc(31,50): error C2275: 'v8::Array': illegal use of this type a
s an expression [C:\Data\Project\iso8583\node_modules\iso-8583\build\ISO8583.vcxproj]
C:\Data\Project\iso8583\node_modules\iso-8583\functions.cc(31): message : see declaration of 'v8::Array' [C:\Data\Proje
ct\iso8583\node_modules\iso-8583\build\ISO8583.vcxproj]
C:\Data\Project\iso8583\node_modules\iso-8583\functions.cc(31,57): error C2065: 'messageFields': undeclared identifier
[C:\Data\Project\iso8583\node_modules\iso-8583\build\ISO8583.vcxproj]
C:\Data\Project\iso8583\node_modules\iso-8583\functions.cc(31,71): error C2448: 'pack_iso8583': function-style initiali
zer appears to be a function definition [C:\Data\Project\iso8583\node_modules\iso-8583\build\ISO8583.vcxproj]
C:\Data\Project\iso8583\node_modules\iso-8583\functions.cc(171,45): error C2039: 'Handle': is not a member of 'v8' [C:
Data\Project\iso8583\node_modules\iso-8583\build\ISO8583.vcxproj]
C:\Users\admin\AppData\Local\node-gyp\Cache\12.18.3\include\node\v8-platform.h(16): message : see declaration of 'v8' [
C:\Data\Project\iso8583\node_modules\iso-8583\build\ISO8583.vcxproj]
C:\Data\Project\iso8583\node_modules\iso-8583\functions.cc(171,15): error C2061: syntax error: identifier 'Handle' [C:
Data\Project\iso8583\node_modules\iso-8583\build\ISO8583.vcxproj]
C:\Data\Project\iso8583\node_modules\iso-8583\functions.cc(197,7): error C2039: 'Handle': is not a member of 'v8' [C:\D
ata\Project\iso8583\node_modules\iso-8583\build\ISO8583.vcxproj]
C:\Users\admin\AppData\Local\node-gyp\Cache\12.18.3\include\node\v8-platform.h(16): message : see declaration of 'v8' [
C:\Data\Project\iso8583\node_modules\iso-8583\build\ISO8583.vcxproj]
C:\Data\Project\iso8583\node_modules\iso-8583\functions.cc(197,13): error C2143: syntax error: missing ';' before '<' [
C:\Data\Project\iso8583\node_modules\iso-8583\build\ISO8583.vcxproj]
C:\Data\Project\iso8583\node_modules\iso-8583\functions.cc(197,13): error C4430: missing type specifier - int assumed.
Note: C++ does not support default-int [C:\Data\Project\iso8583\node_modules\iso-8583\build\ISO8583.vcxproj]
C:\Data\Project\iso8583\node_modules\iso-8583\functions.cc(197,38): error C2238: unexpected token(s) preceding ';' [C:
Data\Project\iso8583\node_modules\iso-8583\build\ISO8583.vcxproj]
C:\Data\Project\iso8583\node_modules\iso-8583\functions.cc(172,44): error C2065: 'messageFields': undeclared identifier
[C:\Data\Project\iso8583\node_modules\iso-8583\build\ISO8583.vcxproj]
C:\Data\Project\iso8583\node_modules\iso-8583\functions.cc(172,30): error C2614: 'PackerWorker': illegal member initial
ization: 'messageFields' is not a base or member [C:\Data\Project\iso8583\node_modules\iso-8583\build\ISO8583.vcxproj]
C:\Data\Project\iso8583\node_modules\iso-8583\functions.cc(193,13): warning C4996: 'Nan::Callback::Call': was declared
deprecated [C:\Data\Project\iso8583\node_modules\iso-8583\build\ISO8583.vcxproj]
C:\Data\Project\iso8583\node_modules\iso-8583\functions.cc(243,7): error C2039: 'Handle': is not a member of 'v8' [C:\D
ata\Project\iso8583\node_modules\iso-8583\build\ISO8583.vcxproj]
C:\Users\admin\AppData\Local\node-gyp\Cache\12.18.3\include\node\v8-platform.h(16): message : see declaration of 'v8' [
C:\Data\Project\iso8583\node_modules\iso-8583\build\ISO8583.vcxproj]
C:\Data\Project\iso8583\node_modules\iso-8583\functions.cc(243,13): error C2065: 'Handle': undeclared identifier [C:\Da
ta\Project\iso8583\node_modules\iso-8583\build\ISO8583.vcxproj]
C:\Data\Project\iso8583\node_modules\iso-8583\functions.cc(243,18): error C2275: 'v8::Array': illegal use of this type
as an expression [C:\Data\Project\iso8583\node_modules\iso-8583\build\ISO8583.vcxproj]
C:\Data\Project\iso8583\node_modules\iso-8583\functions.cc(243): message : see declaration of 'v8::Array' [C:\Data\Proj
ect\iso8583\node_modules\iso-8583\build\ISO8583.vcxproj]
C:\Data\Project\iso8583\node_modules\iso-8583\functions.cc(243,25): error C2065: 'messageFields': undeclared identifier
[C:\Data\Project\iso8583\node_modules\iso-8583\build\ISO8583.vcxproj]
C:\Data\Project\iso8583\node_modules\iso-8583\functions.cc(243,45): error C2039: 'Handle': is not a member of 'v8' [C:
Data\Project\iso8583\node_modules\iso-8583\build\ISO8583.vcxproj]
C:\Users\admin\AppData\Local\node-gyp\Cache\12.18.3\include\node\v8-platform.h(16): message : see declaration of 'v8' [
C:\Data\Project\iso8583\node_modules\iso-8583\build\ISO8583.vcxproj]
C:\Data\Project\iso8583\node_modules\iso-8583\functions.cc(243,51): error C2065: 'Handle': undeclared identifier [C:\Da
ta\Project\iso8583\node_modules\iso-8583\build\ISO8583.vcxproj]
C:\Data\Project\iso8583\node_modules\iso-8583\functions.cc(243,56): error C2275: 'v8::Array': illegal use of this type
as an expression [C:\Data\Project\iso8583\node_modules\iso-8583\build\ISO8583.vcxproj]
C:\Data\Project\iso8583\node_modules\iso-8583\functions.cc(243): message : see declaration of 'v8::Array' [C:\Data\Proj
ect\iso8583\node_modules\iso-8583\build\ISO8583.vcxproj]
C:\Data\Project\iso8583\node_modules\iso-8583\functions.cc(243,64): error C2039: 'Cast': is not a member of 'global na mespace'' [C:\Data\Project\iso8583\node_modules\iso-8583\build\ISO8583.vcxproj] C:\Data\Project\iso8583\node_modules\iso-8583\functions.cc(243,68): error C3861: 'Cast': identifier not found [C:\Data\ Project\iso8583\node_modules\iso-8583\build\ISO8583.vcxproj] C:\Data\Project\iso8583\node_modules\iso-8583\functions.cc(244,46): error C2065: 'messageFields': undeclared identifier [C:\Data\Project\iso8583\node_modules\iso-8583\build\ISO8583.vcxproj] C:\Data\Project\iso8583\node_modules\iso-8583\functions.cc(251,7): error C2039: 'Handle': is not a member of 'v8' [C:\D ata\Project\iso8583\node_modules\iso-8583\build\ISO8583.vcxproj] C:\Users\admin\AppData\Local\node-gyp\Cache\12.18.3\include\node\v8-platform.h(16): message : see declaration of 'v8' [ C:\Data\Project\iso8583\node_modules\iso-8583\build\ISO8583.vcxproj] C:\Data\Project\iso8583\node_modules\iso-8583\functions.cc(251,13): error C2065: 'Handle': undeclared identifier [C:\Da ta\Project\iso8583\node_modules\iso-8583\build\ISO8583.vcxproj] C:\Data\Project\iso8583\node_modules\iso-8583\functions.cc(251,18): error C2275: 'v8::Array': illegal use of this type as an expression [C:\Data\Project\iso8583\node_modules\iso-8583\build\ISO8583.vcxproj] C:\Data\Project\iso8583\node_modules\iso-8583\functions.cc(251): message : see declaration of 'v8::Array' [C:\Data\Proj ect\iso8583\node_modules\iso-8583\build\ISO8583.vcxproj] C:\Data\Project\iso8583\node_modules\iso-8583\functions.cc(251,25): error C2065: 'messageFields': undeclared identifier [C:\Data\Project\iso8583\node_modules\iso-8583\build\ISO8583.vcxproj] C:\Data\Project\iso8583\node_modules\iso-8583\functions.cc(251,45): error C2039: 'Handle': is not a member of 'v8' [C:\ Data\Project\iso8583\node_modules\iso-8583\build\ISO8583.vcxproj] C:\Users\admin\AppData\Local\node-gyp\Cache\12.18.3\include\node\v8-platform.h(16): message : see declaration of 'v8' [ C:\Data\Project\iso8583\node_modules\iso-8583\build\ISO8583.vcxproj] C:\Data\Project\iso8583\node_modules\iso-8583\functions.cc(251,51): error C2065: 'Handle': undeclared identifier [C:\Da ta\Project\iso8583\node_modules\iso-8583\build\ISO8583.vcxproj] C:\Data\Project\iso8583\node_modules\iso-8583\functions.cc(251,56): error C2275: 'v8::Array': illegal use of this type as an expression [C:\Data\Project\iso8583\node_modules\iso-8583\build\ISO8583.vcxproj] C:\Data\Project\iso8583\node_modules\iso-8583\functions.cc(251): message : see declaration of 'v8::Array' [C:\Data\Proj ect\iso8583\node_modules\iso-8583\build\ISO8583.vcxproj] C:\Data\Project\iso8583\node_modules\iso-8583\functions.cc(251,64): error C2039: 'Cast': is not a member of 'global na
mespace'' [C:\Data\Project\iso8583\node_modules\iso-8583\build\ISO8583.vcxproj]
C:\Data\Project\iso8583\node_modules\iso-8583\functions.cc(251,68): error C3861: 'Cast': identifier not found [C:\Data
Project\iso8583\node_modules\iso-8583\build\ISO8583.vcxproj]
C:\Data\Project\iso8583\node_modules\iso-8583\functions.cc(254,48): error C2065: 'messageFields': undeclared identifier
[C:\Data\Project\iso8583\node_modules\iso-8583\build\ISO8583.vcxproj]
C:\Data\Project\iso8583\node_modules\iso-8583\functions.cc(254,4): error C3861: 'AsyncQueueWorker': identifier not foun
d [C:\Data\Project\iso8583\node_modules\iso-8583\build\ISO8583.vcxproj]
C:\Data\Project\iso8583\node_modules\iso-8583\functions.cc(260,54): error C2661: 'v8::Value::ToObject': no overloaded f
unction takes 0 arguments [C:\Data\Project\iso8583\node_modules\iso-8583\build\ISO8583.vcxproj]
C:\Data\Project\iso8583\node_modules\iso-8583\functions.cc(261,42): error C2660: 'v8::Value::Uint32Value': function doe
s not take 0 arguments [C:\Data\Project\iso8583\node_modules\iso-8583\build\ISO8583.vcxproj]
C:\Users\admin\AppData\Local\node-gyp\Cache\12.18.3\include\node\v8.h(2707,41): message : see declaration of 'v8::Value
::Uint32Value' (compiling source file ..\functions.cc) [C:\Data\Project\iso8583\node_modules\iso-8583\build\ISO8583.vcx
proj]
C:\Data\Project\iso8583\node_modules\iso-8583\functions.cc(273,8): error C2039: 'Handle': is not a member of 'v8' [C:\D
ata\Project\iso8583\node_modules\iso-8583\build\ISO8583.vcxproj]
C:\Users\admin\AppData\Local\node-gyp\Cache\12.18.3\include\node\v8-platform.h(16): message : see declaration of 'v8' [
C:\Data\Project\iso8583\node_modules\iso-8583\build\ISO8583.vcxproj]
C:\Data\Project\iso8583\node_modules\iso-8583\functions.cc(273,14): error C2065: 'Handle': undeclared identifier [C:\Da
ta\Project\iso8583\node_modules\iso-8583\build\ISO8583.vcxproj]
C:\Data\Project\iso8583\node_modules\iso-8583\functions.cc(273,19): error C2275: 'v8::Array': illegal use of this type
as an expression [C:\Data\Project\iso8583\node_modules\iso-8583\build\ISO8583.vcxproj]
C:\Data\Project\iso8583\node_modules\iso-8583\functions.cc(273): message : see declaration of 'v8::Array' [C:\Data\Proj
ect\iso8583\node_modules\iso-8583\build\ISO8583.vcxproj]
C:\Data\Project\iso8583\node_modules\iso-8583\functions.cc(273,26): error C2065: 'messageFields': undeclared identifier
[C:\Data\Project\iso8583\node_modules\iso-8583\build\ISO8583.vcxproj]
C:\Data\Project\iso8583\node_modules\iso-8583\functions.cc(273,46): error C2039: 'Handle': is not a member of 'v8' [C:
Data\Project\iso8583\node_modules\iso-8583\build\ISO8583.vcxproj]
C:\Users\admin\AppData\Local\node-gyp\Cache\12.18.3\include\node\v8-platform.h(16): message : see declaration of 'v8' [
C:\Data\Project\iso8583\node_modules\iso-8583\build\ISO8583.vcxproj]
C:\Data\Project\iso8583\node_modules\iso-8583\functions.cc(273,52): error C2065: 'Handle': undeclared identifier [C:\Da
ta\Project\iso8583\node_modules\iso-8583\build\ISO8583.vcxproj]
C:\Data\Project\iso8583\node_modules\iso-8583\functions.cc(273,57): error C2275: 'v8::Array': illegal use of this type
as an expression [C:\Data\Project\iso8583\node_modules\iso-8583\build\ISO8583.vcxproj]
C:\Data\Project\iso8583\node_modules\iso-8583\functions.cc(273): message : see declaration of 'v8::Array' [C:\Data\Proj
ect\iso8583\node_modules\iso-8583\build\ISO8583.vcxproj]
C:\Data\Project\iso8583\node_modules\iso-8583\functions.cc(273,65): error C2039: 'Cast': is not a member of 'global na mespace'' [C:\Data\Project\iso8583\node_modules\iso-8583\build\ISO8583.vcxproj] C:\Data\Project\iso8583\node_modules\iso-8583\functions.cc(273,69): error C3861: 'Cast': identifier not found [C:\Data\ Project\iso8583\node_modules\iso-8583\build\ISO8583.vcxproj] C:\Data\Project\iso8583\node_modules\iso-8583\functions.cc(274,33): error C2065: 'messageFields': undeclared identifier [C:\Data\Project\iso8583\node_modules\iso-8583\build\ISO8583.vcxproj] C:\Data\Project\iso8583\node_modules\iso-8583\functions.cc(275,25): error C2065: 'messageFields': undeclared identifier [C:\Data\Project\iso8583\node_modules\iso-8583\build\ISO8583.vcxproj] C:\Data\Project\iso8583\node_modules\iso-8583\functions.cc(275,46): error C2661: 'Nan::Set': no overloaded function tak es 2 arguments [C:\Data\Project\iso8583\node_modules\iso-8583\build\ISO8583.vcxproj] gyp ERR! build error gyp ERR! stack Error: C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Current\Bin\MSBuild.exe` failed with exit code: 1
gyp ERR! stack at ChildProcess.onExit (C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\build.js:194:23)
gyp ERR! stack at ChildProcess.emit (events.js:315:20)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:275:12)
gyp ERR! System Windows_NT 10.0.18362
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:\Data\Project\iso8583\node_modules\iso-8583
gyp ERR! node -v v12.18.3
gyp ERR! node-gyp -v v5.1.0
gyp ERR! not ok
npm WARN iso8583@1.0.0 No description
npm WARN iso8583@1.0.0 No repository field.

npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! iso-8583@1.0.7 install: node-gyp rebuild
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the iso-8583@1.0.7 install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\admin\AppData\Roaming\npm-cache_logs\2020-09-18T09_32_48_894Z-debug.log"

It seem like our Node version is not compatible with the package. Can you please let me know the version of node that work with this build

Thanks
Thang

@s-a
Copy link
Owner

s-a commented Sep 18, 2020

I dont even remember the node version which was recently uses for this module, It might work with node 8 or 6. Handle was depricated and seems replaced with Local in newer node versions so this module might need some love to migrate to latest node environment.

We should add

  "engines": {
    "node": "???"
  },

to package json.

Unfortunetely I have no time to maintain this module but I accept PRs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants