AndiDittrich / NodeMCU-Tool

:wrench: Upload + Manage Lua files on NodeMCU
https://www.npmjs.com/package/nodemcu-tool
MIT License
310 stars 54 forks source link

Cannot install on windows 10 #52

Closed CyanoFresh closed 5 years ago

CyanoFresh commented 6 years ago

Console:

C:\Users\Alex>npm install nodemcu-tool -g
C:\Users\Alex\AppData\Roaming\npm\nodemcu-tool -> C:\Users\Alex\AppData\Roaming\npm\node_modules\nodemcu-tool\bin\nodemcu-tool.js

> serialport@4.0.7 install C:\Users\Alex\AppData\Roaming\npm\node_modules\nodemcu-tool\node_modules\serialport
> node-pre-gyp install --fallback-to-build

node-pre-gyp info it worked if it ends with ok
node-pre-gyp verb cli [ 'C:\\Program Files\\nodejs\\node.exe',
node-pre-gyp verb cli   'C:\\Users\\Alex\\AppData\\Roaming\\npm\\node_modules\\nodemcu-tool\\node_modules\\serialport\\node_modules\\node-pre-gyp\\bin\\node-pre-gyp',
node-pre-gyp verb cli   'install',
node-pre-gyp verb cli   '--fallback-to-build' ]
node-pre-gyp info using node-pre-gyp@0.6.32
node-pre-gyp info using node@10.5.0 | win32 | x64
node-pre-gyp verb command install []
node-pre-gyp info check checked for "C:\Users\Alex\AppData\Roaming\npm\node_modules\nodemcu-tool\node_modules\serialport\build\Release\serialport.node" (not found)
node-pre-gyp http GET https://github.com/EmergingTechnologyAdvisors/node-serialport/releases/download/4.0.7/serialport-v4.0.7-node-v64-win32-x64.tar.gz
node-pre-gyp http 404 https://github.com/EmergingTechnologyAdvisors/node-serialport/releases/download/4.0.7/serialport-v4.0.7-node-v64-win32-x64.tar.gz
node-pre-gyp ERR! Tried to download(404): https://github.com/EmergingTechnologyAdvisors/node-serialport/releases/download/4.0.7/serialport-v4.0.7-node-v64-win32-x64.tar.gz
node-pre-gyp ERR! Pre-built binaries not found for serialport@4.0.7 and node@10.5.0 (node-v64 ABI) (falling back to source compile with node-gyp)
node-pre-gyp http 404 status code downloading tarball https://github.com/EmergingTechnologyAdvisors/node-serialport/releases/download/4.0.7/serialport-v4.0.7-node-v64-win32-x64.tar.gz
node-pre-gyp verb command build [ 'rebuild' ]
node-pre-gyp ERR! Tried to download(undefined): https://github.com/EmergingTechnologyAdvisors/node-serialport/releases/download/4.0.7/serialport-v4.0.7-node-v64-win32-x64.tar.gz
node-pre-gyp ERR! Pre-built binaries not found for serialport@4.0.7 and node@10.5.0 (node-v64 ABI) (falling back to source compile with node-gyp)
node-pre-gyp http Connection closed while downloading tarball file
node-pre-gyp verb command build [ 'rebuild' ]
Traceback (most recent call last):
  File "C:\Users\Alex\AppData\Roaming\npm\node_modules\npm\node_modules\node-gyp\gyp\gyp_main.py", line 16, in <module>
    sys.exit(gyp.script_main())
  File "C:\Users\Alex\AppData\Roaming\npm\node_modules\npm\node_modules\node-gyp\gyp\pylib\gyp\__init__.py", line 545, in script_main
    return main(sys.argv[1:])
  File "C:\Users\Alex\AppData\Roaming\npm\node_modules\npm\node_modules\node-gyp\gyp\pylib\gyp\__init__.py", line 538, in main
    return gyp_main(args)
  File "C:\Users\Alex\AppData\Roaming\npm\node_modules\npm\node_modules\node-gyp\gyp\pylib\gyp\__init__.py", line 523, in gyp_main
    generator.GenerateOutput(flat_list, targets, data, params)
  File "C:\Users\Alex\AppData\Roaming\npm\node_modules\npm\node_modules\node-gyp\gyp\pylib\gyp\generator\msvs.py", line 2025, in GenerateOutput
    version=msvs_version)
  File "C:\Users\Alex\AppData\Roaming\npm\node_modules\npm\node_modules\node-gyp\gyp\pylib\gyp\MSVSNew.py", line 213, in __init__
    self.Write()
  File "C:\Users\Alex\AppData\Roaming\npm\node_modules\npm\node_modules\node-gyp\gyp\pylib\gyp\MSVSNew.py", line 340, in Write
    f.close()
  File "C:\Users\Alex\AppData\Roaming\npm\node_modules\npm\node_modules\node-gyp\gyp\pylib\gyp\common.py", line 393, in close
    os.rename(self.tmp_path, filename)
WindowsError: [Error 183] ═хтючьюцэю ёючфрЄ№ Їрщы,
gyp ERR! configure error
gyp ERR! stack Error: `gyp` failed with exit code: 1
gyp ERR! stack     at ChildProcess.onCpExit (C:\Users\Alex\AppData\Roaming\npm\node_modules\npm\node_modules\node-gyp\lib\configure.js:336:16)
gyp ERR! stack     at ChildProcess.emit (events.js:182:13)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:237:12)
gyp ERR! System Windows_NT 10.0.17134
gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "C:\\Users\\Alex\\AppData\\Roaming\\npm\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js" "configure" "--fallback-to-build" "--module=C:\\Users\\Alex\\AppData\\Roaming\\npm\\node_modules\\nodemcu-tool\\node_modules\\serialport\\build\\Release\\serialport.node" "--module_name=serialport" "--module_path=C:\\Users\\Alex\\AppData\\Roaming\\npm\\node_modules\\nodemcu-tool\\node_modules\\serialport\\build\\Release" "--python=python2.7" "--msvs_version=2015"
gyp ERR! cwd C:\Users\Alex\AppData\Roaming\npm\node_modules\nodemcu-tool\node_modules\serialport
gyp ERR! node -v v10.5.0
gyp ERR! node-gyp -v v3.6.2
gyp ERR! not ok
node-pre-gyp ERR! build error
node-pre-gyp ERR! stack Error: Failed to execute 'C:\Program Files\nodejs\node.exe C:\Users\Alex\AppData\Roaming\npm\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js configure --fallback-to-build --module=C:\Users\Alex\AppData\Roaming\npm\node_modules\nodemcu-tool\node_modules\serialport\build\Release\serialport.node --module_name=serialport --module_path=C:\Users\Alex\AppData\Roaming\npm\node_modules\nodemcu-tool\node_modules\serialport\build\Release --python=python2.7 --msvs_version=2015' (1)
node-pre-gyp ERR! stack     at ChildProcess.<anonymous> (C:\Users\Alex\AppData\Roaming\npm\node_modules\nodemcu-tool\node_modules\serialport\node_modules\node-pre-gyp\lib\util\compile.js:83:29)
node-pre-gyp ERR! stack     at ChildProcess.emit (events.js:182:13)
node-pre-gyp ERR! stack     at maybeClose (internal/child_process.js:961:16)
node-pre-gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:248:5)
node-pre-gyp ERR! System Windows_NT 10.0.17134
node-pre-gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "C:\\Users\\Alex\\AppData\\Roaming\\npm\\node_modules\\nodemcu-tool\\node_modules\\serialport\\node_modules\\node-pre-gyp\\bin\\node-pre-gyp" "install" "--fallback-to-build"
node-pre-gyp ERR! cwd C:\Users\Alex\AppData\Roaming\npm\node_modules\nodemcu-tool\node_modules\serialport
node-pre-gyp ERR! node -v v10.5.0
node-pre-gyp ERR! node-pre-gyp -v v0.6.32
node-pre-gyp ERR! not ok
Failed to execute 'C:\Program Files\nodejs\node.exe C:\Users\Alex\AppData\Roaming\npm\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js configure --fallback-to-build --module=C:\Users\Alex\AppData\Roaming\npm\node_modules\nodemcu-tool\node_modules\serialport\build\Release\serialport.node --module_name=serialport --module_path=C:\Users\Alex\AppData\Roaming\npm\node_modules\nodemcu-tool\node_modules\serialport\build\Release --python=python2.7 --msvs_version=2015' (1)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! serialport@4.0.7 install: `node-pre-gyp install --fallback-to-build`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the serialport@4.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\Alex\AppData\Roaming\npm-cache\_logs\2018-07-09T13_42_13_706Z-debug.log

C:\Users\Alex>npm install nodemcu-tool -g
C:\Users\Alex\AppData\Roaming\npm\nodemcu-tool -> C:\Users\Alex\AppData\Roaming\npm\node_modules\nodemcu-tool\bin\nodemcu-tool.js

> serialport@4.0.7 install C:\Users\Alex\AppData\Roaming\npm\node_modules\nodemcu-tool\node_modules\serialport
> node-pre-gyp install --fallback-to-build

node-pre-gyp info it worked if it ends with ok
node-pre-gyp verb cli [ 'C:\\Program Files\\nodejs\\node.exe',
node-pre-gyp verb cli   'C:\\Users\\Alex\\AppData\\Roaming\\npm\\node_modules\\nodemcu-tool\\node_modules\\serialport\\node_modules\\node-pre-gyp\\bin\\node-pre-gyp',
node-pre-gyp verb cli   'install',
node-pre-gyp verb cli   '--fallback-to-build' ]
node-pre-gyp info using node-pre-gyp@0.6.32
node-pre-gyp info using node@10.5.0 | win32 | x64
node-pre-gyp verb command install []
node-pre-gyp info check checked for "C:\Users\Alex\AppData\Roaming\npm\node_modules\nodemcu-tool\node_modules\serialport\build\Release\serialport.node" (not found)
node-pre-gyp http GET https://github.com/EmergingTechnologyAdvisors/node-serialport/releases/download/4.0.7/serialport-v4.0.7-node-v64-win32-x64.tar.gz
node-pre-gyp http 404 https://github.com/EmergingTechnologyAdvisors/node-serialport/releases/download/4.0.7/serialport-v4.0.7-node-v64-win32-x64.tar.gz
node-pre-gyp ERR! Tried to download(404): https://github.com/EmergingTechnologyAdvisors/node-serialport/releases/download/4.0.7/serialport-v4.0.7-node-v64-win32-x64.tar.gz
node-pre-gyp ERR! Pre-built binaries not found for serialport@4.0.7 and node@10.5.0 (node-v64 ABI) (falling back to source compile with node-gyp)
node-pre-gyp http 404 status code downloading tarball https://github.com/EmergingTechnologyAdvisors/node-serialport/releases/download/4.0.7/serialport-v4.0.7-node-v64-win32-x64.tar.gz
node-pre-gyp verb command build [ 'rebuild' ]
node-pre-gyp ERR! Tried to download(undefined): https://github.com/EmergingTechnologyAdvisors/node-serialport/releases/download/4.0.7/serialport-v4.0.7-node-v64-win32-x64.tar.gz
node-pre-gyp ERR! Pre-built binaries not found for serialport@4.0.7 and node@10.5.0 (node-v64 ABI) (falling back to source compile with node-gyp)
node-pre-gyp http Connection closed while downloading tarball file
node-pre-gyp verb command build [ 'rebuild' ]
Сборка проектов в этом решении по одному. Чтобы включить параллельную сборку, добавьте параметр "/m".
Сборка проектов в этом решении по одному. Чтобы включить параллельную сборку, добавьте параметр "/m".
  serialport.cpp
  serialport_win.cpp
  win_delay_load_hook.cc
  serialport.cpp
  serialport_win.cpp
  win_delay_load_hook.cc
C:\Users\Alex\AppData\Roaming\npm\node_modules\npm\node_modules\node-gyp\src\win_delay_load_hook.cc : fatal error C1083
: Cannot open compiler generated file: 'C:\Users\Alex\AppData\Roaming\npm\node_modules\nodemcu-tool\node_modules\serial
port\build\Release\obj\serialport\win_delay_load_hook.obj': Permission denied [C:\Users\Alex\AppData\Roaming\npm\node_m
odules\nodemcu-tool\node_modules\serialport\build\serialport.vcxproj]
..\src\serialport.cpp(90): error C2661: 'v8::Value::ToInt32': no overloaded function takes 0 arguments [C:\Users\Alex\A
ppData\Roaming\npm\node_modules\nodemcu-tool\node_modules\serialport\build\serialport.vcxproj]
..\src\serialport.cpp(90): error C2661: 'v8::Value::ToInt32': no overloaded function takes 0 arguments [C:\Users\Alex\A
ppData\Roaming\npm\node_modules\nodemcu-tool\node_modules\serialport\build\serialport.vcxproj]
..\src\serialport.cpp(90): error C2227: left of '->Int32Value' must point to class/struct/union/generic type [C:\Users\
Alex\AppData\Roaming\npm\node_modules\nodemcu-tool\node_modules\serialport\build\serialport.vcxproj]
..\src\serialport.cpp(90): error C2227: left of '->Int32Value' must point to class/struct/union/generic type [C:\Users\
Alex\AppData\Roaming\npm\node_modules\nodemcu-tool\node_modules\serialport\build\serialport.vcxproj]
..\src\serialport.cpp(102): error C2661: 'v8::Value::ToNumber': no overloaded function takes 0 arguments [C:\Users\Alex
\AppData\Roaming\npm\node_modules\nodemcu-tool\node_modules\serialport\build\serialport.vcxproj]
..\src\serialport.cpp(102): error C2661: 'v8::Value::ToNumber': no overloaded function takes 0 arguments [C:\Users\Alex
\AppData\Roaming\npm\node_modules\nodemcu-tool\node_modules\serialport\build\serialport.vcxproj]
..\src\serialport.cpp(102): error C2227: left of '->NumberValue' must point to class/struct/union/generic type [C:\User
s\Alex\AppData\Roaming\npm\node_modules\nodemcu-tool\node_modules\serialport\build\serialport.vcxproj]
..\src\serialport.cpp(102): error C2227: left of '->NumberValue' must point to class/struct/union/generic type [C:\User
s\Alex\AppData\Roaming\npm\node_modules\nodemcu-tool\node_modules\serialport\build\serialport.vcxproj]
..\src\serialport.cpp(174): error C2661: 'v8::Value::ToInt32': no overloaded function takes 0 arguments [C:\Users\Alex\
AppData\Roaming\npm\node_modules\nodemcu-tool\node_modules\serialport\build\serialport.vcxproj]
..\src\serialport.cpp(174): error C2661: 'v8::Value::ToInt32': no overloaded function takes 0 arguments [C:\Users\Alex\
AppData\Roaming\npm\node_modules\nodemcu-tool\node_modules\serialport\build\serialport.vcxproj]
..\src\serialport.cpp(174): error C2227: left of '->Int32Value' must point to class/struct/union/generic type [C:\Users
\Alex\AppData\Roaming\npm\node_modules\nodemcu-tool\node_modules\serialport\build\serialport.vcxproj]
..\src\serialport.cpp(174): error C2227: left of '->Int32Value' must point to class/struct/union/generic type [C:\Users
\Alex\AppData\Roaming\npm\node_modules\nodemcu-tool\node_modules\serialport\build\serialport.vcxproj]
..\src\serialport.cpp(180): warning C4996: 'Nan::Callback::Call': was declared deprecated [C:\Users\Alex\AppData\Roamin
g\npm\node_modules\nodemcu-tool\node_modules\serialport\build\serialport.vcxproj]
  C:\Users\Alex\AppData\Roaming\npm\node_modules\nodemcu-tool\node_modules\nan\nan.h(1618): note: see declaration of 'N
  an::Callback::Call'
..\src\serialport.cpp(180): warning C4996: 'Nan::Callback::Call': was declared deprecated [C:\Users\Alex\AppData\Roamin
..\src\serialport.cpp(193): error C2661: 'v8::Value::ToInt32': no overloaded function takes 0 arguments [C:\Users\Alex\
AppData\Roaming\npm\node_modules\nodemcu-tool\node_modules\serialport\build\serialport.vcxproj]
g\npm\node_modules\nodemcu-tool\node_modules\serialport\build\serialport.vcxproj]
  C:\Users\Alex\AppData\Roaming\npm\node_modules\nodemcu-tool\node_modules\nan\nan.h(1618): note: see declaration of 'N
  an::Callback::Call'
..\src\serialport.cpp(193): error C2227: left of '->Int32Value' must point to class/struct/union/generic type [C:\Users
\Alex\AppData\Roaming\npm\node_modules\nodemcu-tool\node_modules\serialport\build\serialport.vcxproj]
..\src\serialport.cpp(193): error C2661: 'v8::Value::ToInt32': no overloaded function takes 0 arguments [C:\Users\Alex\
AppData\Roaming\npm\node_modules\nodemcu-tool\node_modules\serialport\build\serialport.vcxproj]
..\src\serialport.cpp(217): error C2661: 'v8::Value::ToInt32': no overloaded function takes 0 arguments [C:\Users\Alex\
AppData\Roaming\npm\node_modules\nodemcu-tool\node_modules\serialport\build\serialport.vcxproj]
..\src\serialport.cpp(193): error C2227: left of '->Int32Value' must point to class/struct/union/generic type [C:\Users
\Alex\AppData\Roaming\npm\node_modules\nodemcu-tool\node_modules\serialport\build\serialport.vcxproj]
..\src\serialport.cpp(217): error C2227: left of '->Int32Value' must point to class/struct/union/generic type [C:\Users
\Alex\AppData\Roaming\npm\node_modules\nodemcu-tool\node_modules\serialport\build\serialport.vcxproj]
..\src\serialport.cpp(217): error C2661: 'v8::Value::ToInt32': no overloaded function takes 0 arguments [C:\Users\Alex\
AppData\Roaming\npm\node_modules\nodemcu-tool\node_modules\serialport\build\serialport.vcxproj]
..\src\serialport.cpp(240): warning C4996: 'Nan::Callback::Call': was declared deprecated [C:\Users\Alex\AppData\Roamin
g\npm\node_modules\nodemcu-tool\node_modules\serialport\build\serialport.vcxproj]
..\src\serialport.cpp(217): error C2227: left of '->Int32Value' must point to class/struct/union/generic type [C:\Users
\Alex\AppData\Roaming\npm\node_modules\nodemcu-tool\node_modules\serialport\build\serialport.vcxproj]
  C:\Users\Alex\AppData\Roaming\npm\node_modules\nodemcu-tool\node_modules\nan\nan.h(1618): note: see declaration of 'N
  an::Callback::Call'
..\src\serialport.cpp(252): error C2661: 'v8::Value::ToInt32': no overloaded function takes 0 arguments [C:\Users\Alex\
AppData\Roaming\npm\node_modules\nodemcu-tool\node_modules\serialport\build\serialport.vcxproj]
..\src\serialport.cpp(240): warning C4996: 'Nan::Callback::Call': was declared deprecated [C:\Users\Alex\AppData\Roamin
g\npm\node_modules\nodemcu-tool\node_modules\serialport\build\serialport.vcxproj]
..\src\serialport.cpp(252): error C2227: left of '->Int32Value' must point to class/struct/union/generic type [C:\Users
  C:\Users\Alex\AppData\Roaming\npm\node_modules\nodemcu-tool\node_modules\nan\nan.h(1618): note: see declaration of 'N
\Alex\AppData\Roaming\npm\node_modules\nodemcu-tool\node_modules\serialport\build\serialport.vcxproj]
  an::Callback::Call'
..\src\serialport.cpp(252): error C2661: 'v8::Value::ToInt32': no overloaded function takes 0 arguments [C:\Users\Alex\
AppData\Roaming\npm\node_modules\nodemcu-tool\node_modules\serialport\build\serialport.vcxproj]
..\src\serialport.cpp(252): error C2227: left of '->Int32Value' must point to class/struct/union/generic type [C:\Users
\Alex\AppData\Roaming\npm\node_modules\nodemcu-tool\node_modules\serialport\build\serialport.vcxproj]
..\src\serialport.cpp(339): warning C4996: 'Nan::Callback::Call': was declared deprecated [C:\Users\Alex\AppData\Roamin
g\npm\node_modules\nodemcu-tool\node_modules\serialport\build\serialport.vcxproj]
..\src\serialport.cpp(339): warning C4996: 'Nan::Callback::Call': was declared deprecated [C:\Users\Alex\AppData\Roamin
g\npm\node_modules\nodemcu-tool\node_modules\serialport\build\serialport.vcxproj]
  C:\Users\Alex\AppData\Roaming\npm\node_modules\nodemcu-tool\node_modules\nan\nan.h(1618): note: see declaration of 'N
  an::Callback::Call'
  C:\Users\Alex\AppData\Roaming\npm\node_modules\nodemcu-tool\node_modules\nan\nan.h(1618): note: see declaration of 'N
  an::Callback::Call'
..\src\serialport.cpp(369): error C2661: 'v8::Value::ToInt32': no overloaded function takes 0 arguments [C:\Users\Alex\
AppData\Roaming\npm\node_modules\nodemcu-tool\node_modules\serialport\build\serialport.vcxproj]
..\src\serialport.cpp(369): error C2661: 'v8::Value::ToInt32': no overloaded function takes 0 arguments [C:\Users\Alex\
AppData\Roaming\npm\node_modules\nodemcu-tool\node_modules\serialport\build\serialport.vcxproj]
..\src\serialport.cpp(369): error C2227: left of '->Int32Value' must point to class/struct/union/generic type [C:\Users
\Alex\AppData\Roaming\npm\node_modules\nodemcu-tool\node_modules\serialport\build\serialport.vcxproj]
..\src\serialport.cpp(369): error C2227: left of '->Int32Value' must point to class/struct/union/generic type [C:\Users
\Alex\AppData\Roaming\npm\node_modules\nodemcu-tool\node_modules\serialport\build\serialport.vcxproj]
..\src\serialport.cpp(403): warning C4996: 'Nan::Callback::Call': was declared deprecated [C:\Users\Alex\AppData\Roamin
g\npm\node_modules\nodemcu-tool\node_modules\serialport\build\serialport.vcxproj]
..\src\serialport.cpp(403): warning C4996: 'Nan::Callback::Call': was declared deprecated [C:\Users\Alex\AppData\Roamin
g\npm\node_modules\nodemcu-tool\node_modules\serialport\build\serialport.vcxproj]
  C:\Users\Alex\AppData\Roaming\npm\node_modules\nodemcu-tool\node_modules\nan\nan.h(1618): note: see declaration of 'N
  an::Callback::Call'
  C:\Users\Alex\AppData\Roaming\npm\node_modules\nodemcu-tool\node_modules\nan\nan.h(1618): note: see declaration of 'N
  an::Callback::Call'
..\src\serialport.cpp(465): warning C4996: 'Nan::Callback::Call': was declared deprecated [C:\Users\Alex\AppData\Roamin
..\src\serialport.cpp(465): warning C4996: 'Nan::Callback::Call': was declared deprecated [C:\Users\Alex\AppData\Roamin
g\npm\node_modules\nodemcu-tool\node_modules\serialport\build\serialport.vcxproj]
g\npm\node_modules\nodemcu-tool\node_modules\serialport\build\serialport.vcxproj]
  C:\Users\Alex\AppData\Roaming\npm\node_modules\nodemcu-tool\node_modules\nan\nan.h(1618): note: see declaration of 'N
  C:\Users\Alex\AppData\Roaming\npm\node_modules\nodemcu-tool\node_modules\nan\nan.h(1618): note: see declaration of 'N
  an::Callback::Call'
  an::Callback::Call'
..\src\serialport.cpp(480): error C2661: 'v8::Value::ToInt32': no overloaded function takes 0 arguments [C:\Users\Alex\
AppData\Roaming\npm\node_modules\nodemcu-tool\node_modules\serialport\build\serialport.vcxproj]
..\src\serialport.cpp(480): error C2661: 'v8::Value::ToInt32': no overloaded function takes 0 arguments [C:\Users\Alex\
AppData\Roaming\npm\node_modules\nodemcu-tool\node_modules\serialport\build\serialport.vcxproj]
..\src\serialport.cpp(480): error C2227: left of '->Int32Value' must point to class/struct/union/generic type [C:\Users
\Alex\AppData\Roaming\npm\node_modules\nodemcu-tool\node_modules\serialport\build\serialport.vcxproj]
..\src\serialport.cpp(480): error C2227: left of '->Int32Value' must point to class/struct/union/generic type [C:\Users
\Alex\AppData\Roaming\npm\node_modules\nodemcu-tool\node_modules\serialport\build\serialport.vcxproj]
..\src\serialport.cpp(516): warning C4996: 'Nan::Callback::Call': was declared deprecated [C:\Users\Alex\AppData\Roamin
g\npm\node_modules\nodemcu-tool\node_modules\serialport\build\serialport.vcxproj]
..\src\serialport.cpp(516): warning C4996: 'Nan::Callback::Call': was declared deprecated [C:\Users\Alex\AppData\Roamin
  C:\Users\Alex\AppData\Roaming\npm\node_modules\nodemcu-tool\node_modules\nan\nan.h(1618): note: see declaration of 'N
  an::Callback::Call'
g\npm\node_modules\nodemcu-tool\node_modules\serialport\build\serialport.vcxproj]
..\src\serialport.cpp(528): error C2661: 'v8::Value::ToInt32': no overloaded function takes 0 arguments [C:\Users\Alex\
  C:\Users\Alex\AppData\Roaming\npm\node_modules\nodemcu-tool\node_modules\nan\nan.h(1618): note: see declaration of 'N
  an::Callback::Call'
AppData\Roaming\npm\node_modules\nodemcu-tool\node_modules\serialport\build\serialport.vcxproj]
..\src\serialport.cpp(528): error C2661: 'v8::Value::ToInt32': no overloaded function takes 0 arguments [C:\Users\Alex\
AppData\Roaming\npm\node_modules\nodemcu-tool\node_modules\serialport\build\serialport.vcxproj]
..\src\serialport.cpp(528): error C2227: left of '->Int32Value' must point to class/struct/union/generic type [C:\Users
\Alex\AppData\Roaming\npm\node_modules\nodemcu-tool\node_modules\serialport\build\serialport.vcxproj]
..\src\serialport.cpp(528): error C2227: left of '->Int32Value' must point to class/struct/union/generic type [C:\Users
\Alex\AppData\Roaming\npm\node_modules\nodemcu-tool\node_modules\serialport\build\serialport.vcxproj]
..\src\serialport.cpp(573): warning C4996: 'Nan::Callback::Call': was declared deprecated [C:\Users\Alex\AppData\Roamin
g\npm\node_modules\nodemcu-tool\node_modules\serialport\build\serialport.vcxproj]
..\src\serialport.cpp(573): warning C4996: 'Nan::Callback::Call': was declared deprecated [C:\Users\Alex\AppData\Roamin
  C:\Users\Alex\AppData\Roaming\npm\node_modules\nodemcu-tool\node_modules\nan\nan.h(1618): note: see declaration of 'N
g\npm\node_modules\nodemcu-tool\node_modules\serialport\build\serialport.vcxproj]
  an::Callback::Call'
  C:\Users\Alex\AppData\Roaming\npm\node_modules\nodemcu-tool\node_modules\nan\nan.h(1618): note: see declaration of 'N
  an::Callback::Call'
..\src\serialport.cpp(585): error C2661: 'v8::Value::ToInt32': no overloaded function takes 0 arguments [C:\Users\Alex\
AppData\Roaming\npm\node_modules\nodemcu-tool\node_modules\serialport\build\serialport.vcxproj]
..\src\serialport.cpp(585): error C2661: 'v8::Value::ToInt32': no overloaded function takes 0 arguments [C:\Users\Alex\
AppData\Roaming\npm\node_modules\nodemcu-tool\node_modules\serialport\build\serialport.vcxproj]
..\src\serialport.cpp(585): error C2227: left of '->Int32Value' must point to class/struct/union/generic type [C:\Users
\Alex\AppData\Roaming\npm\node_modules\nodemcu-tool\node_modules\serialport\build\serialport.vcxproj]
..\src\serialport.cpp(585): error C2227: left of '->Int32Value' must point to class/struct/union/generic type [C:\Users
\Alex\AppData\Roaming\npm\node_modules\nodemcu-tool\node_modules\serialport\build\serialport.vcxproj]
..\src\serialport.cpp(617): warning C4996: 'Nan::Callback::Call': was declared deprecated [C:\Users\Alex\AppData\Roamin
g\npm\node_modules\nodemcu-tool\node_modules\serialport\build\serialport.vcxproj]
  C:\Users\Alex\AppData\Roaming\npm\node_modules\nodemcu-tool\node_modules\nan\nan.h(1618): note: see declaration of 'N
  an::Callback::Call'
..\src\serialport.cpp(617): warning C4996: 'Nan::Callback::Call': was declared deprecated [C:\Users\Alex\AppData\Roamin
g\npm\node_modules\nodemcu-tool\node_modules\serialport\build\serialport.vcxproj]
..\src\serialport_win.cpp(178): warning C4311: 'type cast': pointer truncation from 'HANDLE' to 'int' [C:\Users\Alex\Ap
pData\Roaming\npm\node_modules\nodemcu-tool\node_modules\serialport\build\serialport.vcxproj]
  C:\Users\Alex\AppData\Roaming\npm\node_modules\nodemcu-tool\node_modules\nan\nan.h(1618): note: see declaration of 'N
  an::Callback::Call'
..\src\serialport_win.cpp(178): warning C4302: 'type cast': truncation from 'HANDLE' to 'int' [C:\Users\Alex\AppData\Ro
aming\npm\node_modules\nodemcu-tool\node_modules\serialport\build\serialport.vcxproj]
..\src\serialport_win.cpp(178): warning C4311: 'type cast': pointer truncation from 'HANDLE' to 'int' [C:\Users\Alex\Ap
pData\Roaming\npm\node_modules\nodemcu-tool\node_modules\serialport\build\serialport.vcxproj]
..\src\serialport_win.cpp(178): warning C4302: 'type cast': truncation from 'HANDLE' to 'int' [C:\Users\Alex\AppData\Ro
aming\npm\node_modules\nodemcu-tool\node_modules\serialport\build\serialport.vcxproj]
..\src\serialport_win.cpp(200): warning C4312: 'type cast': conversion from 'int' to 'HANDLE' of greater size [C:\Users
\Alex\AppData\Roaming\npm\node_modules\nodemcu-tool\node_modules\serialport\build\serialport.vcxproj]
..\src\serialport_win.cpp(207): warning C4312: 'type cast': conversion from 'int' to 'HANDLE' of greater size [C:\Users
\Alex\AppData\Roaming\npm\node_modules\nodemcu-tool\node_modules\serialport\build\serialport.vcxproj]
..\src\serialport_win.cpp(217): warning C4312: 'type cast': conversion from 'int' to 'HANDLE' of greater size [C:\Users
\Alex\AppData\Roaming\npm\node_modules\nodemcu-tool\node_modules\serialport\build\serialport.vcxproj]
..\src\serialport_win.cpp(219): warning C4312: 'type cast': conversion from 'int' to 'HANDLE' of greater size [C:\Users
\Alex\AppData\Roaming\npm\node_modules\nodemcu-tool\node_modules\serialport\build\serialport.vcxproj]
..\src\serialport_win.cpp(200): warning C4312: 'type cast': conversion from 'int' to 'HANDLE' of greater size [C:\Users
\Alex\AppData\Roaming\npm\node_modules\nodemcu-tool\node_modules\serialport\build\serialport.vcxproj]
..\src\serialport_win.cpp(223): warning C4312: 'type cast': conversion from 'int' to 'HANDLE' of greater size [C:\Users
\Alex\AppData\Roaming\npm\node_modules\nodemcu-tool\node_modules\serialport\build\serialport.vcxproj]
..\src\serialport_win.cpp(207): warning C4312: 'type cast': conversion from 'int' to 'HANDLE' of greater size [C:\Users
\Alex\AppData\Roaming\npm\node_modules\nodemcu-tool\node_modules\serialport\build\serialport.vcxproj]
..\src\serialport_win.cpp(225): warning C4312: 'type cast': conversion from 'int' to 'HANDLE' of greater size [C:\Users
\Alex\AppData\Roaming\npm\node_modules\nodemcu-tool\node_modules\serialport\build\serialport.vcxproj]
..\src\serialport_win.cpp(217): warning C4312: 'type cast': conversion from 'int' to 'HANDLE' of greater size [C:\Users
\Alex\AppData\Roaming\npm\node_modules\nodemcu-tool\node_modules\serialport\build\serialport.vcxproj]
..\src\serialport_win.cpp(229): warning C4312: 'type cast': conversion from 'int' to 'HANDLE' of greater size [C:\Users
\Alex\AppData\Roaming\npm\node_modules\nodemcu-tool\node_modules\serialport\build\serialport.vcxproj]
..\src\serialport_win.cpp(219): warning C4312: 'type cast': conversion from 'int' to 'HANDLE' of greater size [C:\Users
\Alex\AppData\Roaming\npm\node_modules\nodemcu-tool\node_modules\serialport\build\serialport.vcxproj]
..\src\serialport_win.cpp(231): warning C4312: 'type cast': conversion from 'int' to 'HANDLE' of greater size [C:\Users
\Alex\AppData\Roaming\npm\node_modules\nodemcu-tool\node_modules\serialport\build\serialport.vcxproj]
..\src\serialport_win.cpp(223): warning C4312: 'type cast': conversion from 'int' to 'HANDLE' of greater size [C:\Users
\Alex\AppData\Roaming\npm\node_modules\nodemcu-tool\node_modules\serialport\build\serialport.vcxproj]
..\src\serialport_win.cpp(236): warning C4312: 'type cast': conversion from 'int' to 'HANDLE' of greater size [C:\Users
\Alex\AppData\Roaming\npm\node_modules\nodemcu-tool\node_modules\serialport\build\serialport.vcxproj]
..\src\serialport_win.cpp(225): warning C4312: 'type cast': conversion from 'int' to 'HANDLE' of greater size [C:\Users
\Alex\AppData\Roaming\npm\node_modules\nodemcu-tool\node_modules\serialport\build\serialport.vcxproj]
..\src\serialport_win.cpp(229): warning C4312: 'type cast': conversion from 'int' to 'HANDLE' of greater size [C:\Users
\Alex\AppData\Roaming\npm\node_modules\nodemcu-tool\node_modules\serialport\build\serialport.vcxproj]
..\src\serialport_win.cpp(248): warning C4312: 'type cast': conversion from 'int' to 'HANDLE' of greater size [C:\Users
\Alex\AppData\Roaming\npm\node_modules\nodemcu-tool\node_modules\serialport\build\serialport.vcxproj]
..\src\serialport_win.cpp(231): warning C4312: 'type cast': conversion from 'int' to 'HANDLE' of greater size [C:\Users
\Alex\AppData\Roaming\npm\node_modules\nodemcu-tool\node_modules\serialport\build\serialport.vcxproj]
..\src\serialport_win.cpp(363): warning C4311: 'type cast': pointer truncation from 'HANDLE' to 'int' [C:\Users\Alex\Ap
pData\Roaming\npm\node_modules\nodemcu-tool\node_modules\serialport\build\serialport.vcxproj]
..\src\serialport_win.cpp(236): warning C4312: 'type cast': conversion from 'int' to 'HANDLE' of greater size [C:\Users
\Alex\AppData\Roaming\npm\node_modules\nodemcu-tool\node_modules\serialport\build\serialport.vcxproj]
..\src\serialport_win.cpp(363): warning C4302: 'type cast': truncation from 'HANDLE' to 'int' [C:\Users\Alex\AppData\Ro
aming\npm\node_modules\nodemcu-tool\node_modules\serialport\build\serialport.vcxproj]
..\src\serialport_win.cpp(248): warning C4312: 'type cast': conversion from 'int' to 'HANDLE' of greater size [C:\Users
\Alex\AppData\Roaming\npm\node_modules\nodemcu-tool\node_modules\serialport\build\serialport.vcxproj]
..\src\serialport_win.cpp(373): warning C4311: 'type cast': pointer truncation from 'HANDLE' to 'int' [C:\Users\Alex\Ap
pData\Roaming\npm\node_modules\nodemcu-tool\node_modules\serialport\build\serialport.vcxproj]
..\src\serialport_win.cpp(363): warning C4311: 'type cast': pointer truncation from 'HANDLE' to 'int' [C:\Users\Alex\Ap
pData\Roaming\npm\node_modules\nodemcu-tool\node_modules\serialport\build\serialport.vcxproj]
..\src\serialport_win.cpp(373): warning C4302: 'type cast': truncation from 'HANDLE' to 'int' [C:\Users\Alex\AppData\Ro
aming\npm\node_modules\nodemcu-tool\node_modules\serialport\build\serialport.vcxproj]
..\src\serialport_win.cpp(363): warning C4302: 'type cast': truncation from 'HANDLE' to 'int' [C:\Users\Alex\AppData\Ro
aming\npm\node_modules\nodemcu-tool\node_modules\serialport\build\serialport.vcxproj]
..\src\serialport_win.cpp(351): warning C4996: 'Nan::Callback::Call': was declared deprecated [C:\Users\Alex\AppData\Ro
aming\npm\node_modules\nodemcu-tool\node_modules\serialport\build\serialport.vcxproj]
..\src\serialport_win.cpp(373): warning C4311: 'type cast': pointer truncation from 'HANDLE' to 'int' [C:\Users\Alex\Ap
  C:\Users\Alex\AppData\Roaming\npm\node_modules\nodemcu-tool\node_modules\nan\nan.h(1618): note: see declaration of 'N
  an::Callback::Call'
pData\Roaming\npm\node_modules\nodemcu-tool\node_modules\serialport\build\serialport.vcxproj]
..\src\serialport_win.cpp(361): warning C4996: 'Nan::Callback::Call': was declared deprecated [C:\Users\Alex\AppData\Ro
aming\npm\node_modules\nodemcu-tool\node_modules\serialport\build\serialport.vcxproj]
..\src\serialport_win.cpp(373): warning C4302: 'type cast': truncation from 'HANDLE' to 'int' [C:\Users\Alex\AppData\Ro
aming\npm\node_modules\nodemcu-tool\node_modules\serialport\build\serialport.vcxproj]
  C:\Users\Alex\AppData\Roaming\npm\node_modules\nodemcu-tool\node_modules\nan\nan.h(1618): note: see declaration of 'N
  an::Callback::Call'
..\src\serialport_win.cpp(369): warning C4996: 'Nan::Callback::Call': was declared deprecated [C:\Users\Alex\AppData\Ro
..\src\serialport_win.cpp(351): warning C4996: 'Nan::Callback::Call': was declared deprecated [C:\Users\Alex\AppData\Ro
aming\npm\node_modules\nodemcu-tool\node_modules\serialport\build\serialport.vcxproj]
aming\npm\node_modules\nodemcu-tool\node_modules\serialport\build\serialport.vcxproj]
  C:\Users\Alex\AppData\Roaming\npm\node_modules\nodemcu-tool\node_modules\nan\nan.h(1618): note: see declaration of 'N
  an::Callback::Call'
  C:\Users\Alex\AppData\Roaming\npm\node_modules\nodemcu-tool\node_modules\nan\nan.h(1618): note: see declaration of 'N
  an::Callback::Call'
..\src\serialport_win.cpp(385): warning C4312: 'type cast': conversion from 'int' to 'HANDLE' of greater size [C:\Users
\Alex\AppData\Roaming\npm\node_modules\nodemcu-tool\node_modules\serialport\build\serialport.vcxproj]
..\src\serialport_win.cpp(361): warning C4996: 'Nan::Callback::Call': was declared deprecated [C:\Users\Alex\AppData\Ro
aming\npm\node_modules\nodemcu-tool\node_modules\serialport\build\serialport.vcxproj]
  C:\Users\Alex\AppData\Roaming\npm\node_modules\nodemcu-tool\node_modules\nan\nan.h(1618): note: see declaration of 'N
..\src\serialport_win.cpp(410): warning C4312: 'type cast': conversion from 'int' to 'HANDLE' of greater size [C:\Users
  an::Callback::Call'
\Alex\AppData\Roaming\npm\node_modules\nodemcu-tool\node_modules\serialport\build\serialport.vcxproj]
..\src\serialport_win.cpp(424): warning C4312: 'type cast': conversion from 'int' to 'HANDLE' of greater size [C:\Users
\Alex\AppData\Roaming\npm\node_modules\nodemcu-tool\node_modules\serialport\build\serialport.vcxproj]
..\src\serialport_win.cpp(369): warning C4996: 'Nan::Callback::Call': was declared deprecated [C:\Users\Alex\AppData\Ro
aming\npm\node_modules\nodemcu-tool\node_modules\serialport\build\serialport.vcxproj]
..\src\serialport_win.cpp(451): warning C4312: 'type cast': conversion from 'int' to 'HANDLE' of greater size [C:\Users
\Alex\AppData\Roaming\npm\node_modules\nodemcu-tool\node_modules\serialport\build\serialport.vcxproj]
  C:\Users\Alex\AppData\Roaming\npm\node_modules\nodemcu-tool\node_modules\nan\nan.h(1618): note: see declaration of 'N
  an::Callback::Call'
..\src\serialport_win.cpp(385): warning C4312: 'type cast': conversion from 'int' to 'HANDLE' of greater size [C:\Users
..\src\serialport_win.cpp(453): warning C4312: 'type cast': conversion from 'int' to 'HANDLE' of greater size [C:\Users
\Alex\AppData\Roaming\npm\node_modules\nodemcu-tool\node_modules\serialport\build\serialport.vcxproj]
\Alex\AppData\Roaming\npm\node_modules\nodemcu-tool\node_modules\serialport\build\serialport.vcxproj]
..\src\serialport_win.cpp(410): warning C4312: 'type cast': conversion from 'int' to 'HANDLE' of greater size [C:\Users
\Alex\AppData\Roaming\npm\node_modules\nodemcu-tool\node_modules\serialport\build\serialport.vcxproj]
..\src\serialport_win.cpp(424): warning C4312: 'type cast': conversion from 'int' to 'HANDLE' of greater size [C:\Users
\Alex\AppData\Roaming\npm\node_modules\nodemcu-tool\node_modules\serialport\build\serialport.vcxproj]
..\src\serialport_win.cpp(451): warning C4312: 'type cast': conversion from 'int' to 'HANDLE' of greater size [C:\Users
\Alex\AppData\Roaming\npm\node_modules\nodemcu-tool\node_modules\serialport\build\serialport.vcxproj]
..\src\serialport_win.cpp(567): warning C4312: 'type cast': conversion from 'int' to 'HANDLE' of greater size [C:\Users
\Alex\AppData\Roaming\npm\node_modules\nodemcu-tool\node_modules\serialport\build\serialport.vcxproj]
..\src\serialport_win.cpp(453): warning C4312: 'type cast': conversion from 'int' to 'HANDLE' of greater size [C:\Users
\Alex\AppData\Roaming\npm\node_modules\nodemcu-tool\node_modules\serialport\build\serialport.vcxproj]
..\src\serialport_win.cpp(576): warning C4312: 'type cast': conversion from 'int' to 'HANDLE' of greater size [C:\Users
\Alex\AppData\Roaming\npm\node_modules\nodemcu-tool\node_modules\serialport\build\serialport.vcxproj]
..\src\serialport_win.cpp(567): warning C4312: 'type cast': conversion from 'int' to 'HANDLE' of greater size [C:\Users
\Alex\AppData\Roaming\npm\node_modules\nodemcu-tool\node_modules\serialport\build\serialport.vcxproj]
..\src\serialport_win.cpp(576): warning C4312: 'type cast': conversion from 'int' to 'HANDLE' of greater size [C:\Users
\Alex\AppData\Roaming\npm\node_modules\nodemcu-tool\node_modules\serialport\build\serialport.vcxproj]
C:\Users\Alex\AppData\Roaming\npm\node_modules\nodemcu-tool\node_modules\serialport\src\serialport_win.cpp : fatal erro
r C1083: Cannot open compiler generated file: 'C:\Users\Alex\AppData\Roaming\npm\node_modules\nodemcu-tool\node_modules
\serialport\build\Release\obj\serialport\serialport_win.obj': Permission denied [C:\Users\Alex\AppData\Roaming\npm\node
_modules\nodemcu-tool\node_modules\serialport\build\serialport.vcxproj]
cl : Command line error D8040: error creating or communicating with child process [C:\Users\Alex\AppData\Roaming\npm\no
de_modules\nodemcu-tool\node_modules\serialport\build\serialport.vcxproj]
C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppCommon.targets(356,5): error MSB6003: Не удалось за
пустить указанный исполняемый файл задачи "CL.exe". Процесс не может получить доступ к файлу "C:\Users\Alex\AppData\Roa
ming\npm\node_modules\nodemcu-tool\node_modules\serialport\build\Release\obj\serialport\serialport.tlog\CL.11060.write.
1.tlog", так как этот файл используется другим процессом. [C:\Users\Alex\AppData\Roaming\npm\node_modules\nodemcu-tool\
node_modules\serialport\build\serialport.vcxproj]
gyp ERR! build error
gyp ERR! stack Error: `C:\Program Files (x86)\MSBuild\14.0\bin\msbuild.exe` failed with exit code: 1
gyp ERR! stack     at ChildProcess.onExit (C:\Users\Alex\AppData\Roaming\npm\node_modules\npm\node_modules\node-gyp\lib\build.js:258:23)
gyp ERR! stack     at ChildProcess.emit (events.js:182:13)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:237:12)
gyp ERR! gypSystem Windows_NT 10.0.17134
 gypERR!  ERR!build error
command "C:\\Program Files\\nodejs\\node.exe" "C:\\Users\\Alex\\AppData\\Roaming\\npm\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js" "build" "--fallback-to-build" "--module=C:\\Users\\Alex\\AppData\\Roaming\\npm\\node_modules\\nodemcu-tool\\node_modules\\serialport\\build\\Release\\serialport.node" "--module_name=serialport" "--module_path=C:\\Users\\Alex\\AppData\\Roaming\\npm\\node_modules\\nodemcu-tool\\node_modules\\serialport\\build\\Release"
gypgyp  ERR!ERR!  stack Error: `C:\Program Files (x86)\MSBuild\14.0\bin\msbuild.exe` failed with exit code: 1
cwdgyp C:\Users\Alex\AppData\Roaming\npm\node_modules\nodemcu-tool\node_modules\serialport
 gypERR! ERR!  stacknode -v v10.5.0
     at ChildProcess.onExit (C:\Users\Alex\AppData\Roaming\npm\node_modules\npm\node_modules\node-gyp\lib\build.js:258:23)
gypgyp  ERR!ERR!  stacknode-gyp -v     at ChildProcess.emit (events.js:182:13)
 v3.6.2
gypgyp  ERR!ERR!  not ok
stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:237:12)
gyp ERR! System Windows_NT 10.0.17134
gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "C:\\Users\\Alex\\AppData\\Roaming\\npm\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js" "build" "--fallback-to-build" "--module=C:\\Users\\Alex\\AppData\\Roaming\\npm\\node_modules\\nodemcu-tool\\node_modules\\serialport\\build\\Release\\serialport.node" "--module_name=serialport" "--module_path=C:\\Users\\Alex\\AppData\\Roaming\\npm\\node_modules\\nodemcu-tool\\node_modules\\serialport\\build\\Release"
gyp ERR! cwd C:\Users\Alex\AppData\Roaming\npm\node_modules\nodemcu-tool\node_modules\serialport
gyp ERR! node -v v10.5.0
gyp ERR! node-gyp -vnode-pre-gyp v3.6.2
 gypERR!  ERR!build error
 not ok
node-pre-gyp ERR! stack Error: Failed to execute 'C:\Program Files\nodejs\node.exe C:\Users\Alex\AppData\Roaming\npm\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js build --fallback-to-build --module=C:\Users\Alex\AppData\Roaming\npm\node_modules\nodemcu-tool\node_modules\serialport\build\Release\serialport.node --module_name=serialport --module_path=C:\Users\Alex\AppData\Roaming\npm\node_modules\nodemcu-tool\node_modules\serialport\build\Release' (1)
node-pre-gyp ERR! stack     at ChildProcess.<anonymous> (C:\Users\Alex\AppData\Roaming\npm\node_modules\nodemcu-tool\node_modules\serialport\node_modules\node-pre-gyp\lib\util\compile.js:83:29)
node-pre-gyp ERR! stack     at ChildProcess.emit (events.js:182:13)
node-pre-gyp ERR! stack     at maybeClose (internal/child_process.js:961:16)
node-pre-gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:248:5)
node-pre-gyp ERR! System Windows_NT 10.0.17134
node-pre-gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "C:\\Users\\Alex\\AppData\\Roaming\\npm\\node_modules\\nodemcu-tool\\node_modules\\serialport\\node_modules\\node-pre-gyp\\bin\\node-pre-gyp" "install" "--fallback-to-build"
node-pre-gyp ERR! cwd C:\Users\Alex\AppData\Roaming\npm\node_modules\nodemcu-tool\node_modules\serialport
node-pre-gyp ERR! node -v v10.5.0
node-pre-gyp ERR! node-pre-gyp -v v0.6.32
node-pre-gyp ERR! not ok
Failed to execute 'C:\Program Files\nodejs\node.exe C:\Users\Alex\AppData\Roaming\npm\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js build --fallback-to-build --module=C:\Users\Alex\AppData\Roaming\npm\node_modules\nodemcu-tool\node_modules\serialport\build\Release\serialport.node --module_name=serialport --module_path=C:\Users\Alex\AppData\Roaming\npm\node_modules\nodemcu-tool\node_modules\serialport\build\Release' (1)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! serialport@4.0.7 install: `node-pre-gyp install --fallback-to-build`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the serialport@4.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\Alex\AppData\Roaming\npm-cache\_logs\2018-07-09T13_43_05_838Z-debug.log

C:\Users\Alex>npm install nodemcu-tool -g

C:\Users\Alex>npm install nodemcu-tool -g
C:\Users\Alex\AppData\Roaming\npm\nodemcu-tool -> C:\Users\Alex\AppData\Roaming\npm\node_modules\nodemcu-tool\bin\nodemcu-tool.js

> serialport@4.0.7 install C:\Users\Alex\AppData\Roaming\npm\node_modules\nodemcu-tool\node_modules\serialport
> node-pre-gyp install --fallback-to-build

node-pre-gyp info it worked if it ends with ok
node-pre-gyp verb cli [ 'C:\\Program Files\\nodejs\\node.exe',
node-pre-gyp verb cli   'C:\\Users\\Alex\\AppData\\Roaming\\npm\\node_modules\\nodemcu-tool\\node_modules\\serialport\\node_modules\\node-pre-gyp\\bin\\node-pre-gyp',
node-pre-gyp verb cli   'install',
node-pre-gyp verb cli   '--fallback-to-build' ]
node-pre-gyp info using node-pre-gyp@0.6.32
node-pre-gyp info using node@10.5.0 | win32 | x64
node-pre-gyp verb command install []
node-pre-gyp info check checked for "C:\Users\Alex\AppData\Roaming\npm\node_modules\nodemcu-tool\node_modules\serialport\build\Release\serialport.node" (not found)
node-pre-gyp http GET https://github.com/EmergingTechnologyAdvisors/node-serialport/releases/download/4.0.7/serialport-v4.0.7-node-v64-win32-x64.tar.gz
node-pre-gyp http 404 https://github.com/EmergingTechnologyAdvisors/node-serialport/releases/download/4.0.7/serialport-v4.0.7-node-v64-win32-x64.tar.gz
node-pre-gyp ERR! Tried to download(404): https://github.com/EmergingTechnologyAdvisors/node-serialport/releases/download/4.0.7/serialport-v4.0.7-node-v64-win32-x64.tar.gz
node-pre-gyp ERR! Pre-built binaries not found for serialport@4.0.7 and node@10.5.0 (node-v64 ABI) (falling back to source compile with node-gyp)
node-pre-gyp http 404 status code downloading tarball https://github.com/EmergingTechnologyAdvisors/node-serialport/releases/download/4.0.7/serialport-v4.0.7-node-v64-win32-x64.tar.gz
node-pre-gyp verb command build [ 'rebuild' ]
node-pre-gyp ERR! Tried to download(undefined): https://github.com/EmergingTechnologyAdvisors/node-serialport/releases/download/4.0.7/serialport-v4.0.7-node-v64-win32-x64.tar.gz
node-pre-gyp ERR! Pre-built binaries not found for serialport@4.0.7 and node@10.5.0 (node-v64 ABI) (falling back to source compile with node-gyp)
node-pre-gyp http Connection closed while downloading tarball file
node-pre-gyp verb command build [ 'rebuild' ]
Сборка проектов в этом решении по одному. Чтобы включить параллельную сборку, добавьте параметр "/m".
  serialport.cpp
  serialport_win.cpp
  win_delay_load_hook.cc
Сборка проектов в этом решении по одному. Чтобы включить параллельную сборку, добавьте параметр "/m".
  serialport.cpp
  serialport_win.cpp
  win_delay_load_hook.cc
..\src\serialport.cpp(90): error C2661: 'v8::Value::ToInt32': no overloaded function takes 0 arguments [C:\Users\Alex\A
ppData\Roaming\npm\node_modules\nodemcu-tool\node_modules\serialport\build\serialport.vcxproj]
..\src\serialport.cpp(90): error C2227: left of '->Int32Value' must point to class/struct/union/generic type [C:\Users\
Alex\AppData\Roaming\npm\node_modules\nodemcu-tool\node_modules\serialport\build\serialport.vcxproj]
..\src\serialport.cpp(102): error C2661: 'v8::Value::ToNumber': no overloaded function takes 0 arguments [C:\Users\Alex
\AppData\Roaming\npm\node_modules\nodemcu-tool\node_modules\serialport\build\serialport.vcxproj]
..\src\serialport.cpp(102): error C2227: left of '->NumberValue' must point to class/struct/union/generic type [C:\User
s\Alex\AppData\Roaming\npm\node_modules\nodemcu-tool\node_modules\serialport\build\serialport.vcxproj]
..\src\serialport.cpp(174): error C2661: 'v8::Value::ToInt32': no overloaded function takes 0 arguments [C:\Users\Alex\
AppData\Roaming\npm\node_modules\nodemcu-tool\node_modules\serialport\build\serialport.vcxproj]
..\src\serialport.cpp(174): error C2227: left of '->Int32Value' must point to class/struct/union/generic type [C:\Users
\Alex\AppData\Roaming\npm\node_modules\nodemcu-tool\node_modules\serialport\build\serialport.vcxproj]
..\src\serialport.cpp(180): warning C4996: 'Nan::Callback::Call': was declared deprecated [C:\Users\Alex\AppData\Roamin
g\npm\node_modules\nodemcu-tool\node_modules\serialport\build\serialport.vcxproj]
  C:\Users\Alex\AppData\Roaming\npm\node_modules\nodemcu-tool\node_modules\nan\nan.h(1618): note: see declaration of 'N
  an::Callback::Call'
..\src\serialport.cpp(193): error C2661: 'v8::Value::ToInt32': no overloaded function takes 0 arguments [C:\Users\Alex\
AppData\Roaming\npm\node_modules\nodemcu-tool\node_modules\serialport\build\serialport.vcxproj]
..\src\serialport.cpp(193): error C2227: left of '->Int32Value' must point to class/struct/union/generic type [C:\Users
\Alex\AppData\Roaming\npm\node_modules\nodemcu-tool\node_modules\serialport\build\serialport.vcxproj]
..\src\serialport.cpp(217): error C2661: 'v8::Value::ToInt32': no overloaded function takes 0 arguments [C:\Users\Alex\
AppData\Roaming\npm\node_modules\nodemcu-tool\node_modules\serialport\build\serialport.vcxproj]
..\src\serialport.cpp(217): error C2227: left of '->Int32Value' must point to class/struct/union/generic type [C:\Users
\Alex\AppData\Roaming\npm\node_modules\nodemcu-tool\node_modules\serialport\build\serialport.vcxproj]
..\src\serialport.cpp(240): warning C4996: 'Nan::Callback::Call': was declared deprecated [C:\Users\Alex\AppData\Roamin
g\npm\node_modules\nodemcu-tool\node_modules\serialport\build\serialport.vcxproj]
  C:\Users\Alex\AppData\Roaming\npm\node_modules\nodemcu-tool\node_modules\nan\nan.h(1618): note: see declaration of 'N
  an::Callback::Call'
..\src\serialport.cpp(252): error C2661: 'v8::Value::ToInt32': no overloaded function takes 0 arguments [C:\Users\Alex\
AppData\Roaming\npm\node_modules\nodemcu-tool\node_modules\serialport\build\serialport.vcxproj]
..\src\serialport.cpp(252): error C2227: left of '->Int32Value' must point to class/struct/union/generic type [C:\Users
\Alex\AppData\Roaming\npm\node_modules\nodemcu-tool\node_modules\serialport\build\serialport.vcxproj]
..\src\serialport.cpp(339): warning C4996: 'Nan::Callback::Call': was declared deprecated [C:\Users\Alex\AppData\Roamin
g\npm\node_modules\nodemcu-tool\node_modules\serialport\build\serialport.vcxproj]
  C:\Users\Alex\AppData\Roaming\npm\node_modules\nodemcu-tool\node_modules\nan\nan.h(1618): note: see declaration of 'N
  an::Callback::Call'
..\src\serialport.cpp(369): error C2661: 'v8::Value::ToInt32': no overloaded function takes 0 arguments [C:\Users\Alex\
AppData\Roaming\npm\node_modules\nodemcu-tool\node_modules\serialport\build\serialport.vcxproj]
..\src\serialport.cpp(369): error C2227: left of '->Int32Value' must point to class/struct/union/generic type [C:\Users
\Alex\AppData\Roaming\npm\node_modules\nodemcu-tool\node_modules\serialport\build\serialport.vcxproj]
..\src\serialport.cpp(403): warning C4996: 'Nan::Callback::Call': was declared deprecated [C:\Users\Alex\AppData\Roamin
g\npm\node_modules\nodemcu-tool\node_modules\serialport\build\serialport.vcxproj]
  C:\Users\Alex\AppData\Roaming\npm\node_modules\nodemcu-tool\node_modules\nan\nan.h(1618): note: see declaration of 'N
  an::Callback::Call'
..\src\serialport.cpp(465): warning C4996: 'Nan::Callback::Call': was declared deprecated [C:\Users\Alex\AppData\Roamin
g\npm\node_modules\nodemcu-tool\node_modules\serialport\build\serialport.vcxproj]
  C:\Users\Alex\AppData\Roaming\npm\node_modules\nodemcu-tool\node_modules\nan\nan.h(1618): note: see declaration of 'N
  an::Callback::Call'
..\src\serialport.cpp(480): error C2661: 'v8::Value::ToInt32': no overloaded function takes 0 arguments [C:\Users\Alex\
AppData\Roaming\npm\node_modules\nodemcu-tool\node_modules\serialport\build\serialport.vcxproj]
..\src\serialport.cpp(480): error C2227: left of '->Int32Value' must point to class/struct/union/generic type [C:\Users
\Alex\AppData\Roaming\npm\node_modules\nodemcu-tool\node_modules\serialport\build\serialport.vcxproj]
..\src\serialport.cpp(516): warning C4996: 'Nan::Callback::Call': was declared deprecated [C:\Users\Alex\AppData\Roamin
g\npm\node_modules\nodemcu-tool\node_modules\serialport\build\serialport.vcxproj]
  C:\Users\Alex\AppData\Roaming\npm\node_modules\nodemcu-tool\node_modules\nan\nan.h(1618): note: see declaration of 'N
  an::Callback::Call'
..\src\serialport.cpp(528): error C2661: 'v8::Value::ToInt32': no overloaded function takes 0 arguments [C:\Users\Alex\
AppData\Roaming\npm\node_modules\nodemcu-tool\node_modules\serialport\build\serialport.vcxproj]
..\src\serialport.cpp(528): error C2227: left of '->Int32Value' must point to class/struct/union/generic type [C:\Users
\Alex\AppData\Roaming\npm\node_modules\nodemcu-tool\node_modules\serialport\build\serialport.vcxproj]
..\src\serialport.cpp(573): warning C4996: 'Nan::Callback::Call': was declared deprecated [C:\Users\Alex\AppData\Roamin
g\npm\node_modules\nodemcu-tool\node_modules\serialport\build\serialport.vcxproj]
  C:\Users\Alex\AppData\Roaming\npm\node_modules\nodemcu-tool\node_modules\nan\nan.h(1618): note: see declaration of 'N
  an::Callback::Call'
..\src\serialport.cpp(585): error C2661: 'v8::Value::ToInt32': no overloaded function takes 0 arguments [C:\Users\Alex\
AppData\Roaming\npm\node_modules\nodemcu-tool\node_modules\serialport\build\serialport.vcxproj]
..\src\serialport.cpp(585): error C2227: left of '->Int32Value' must point to class/struct/union/generic type [C:\Users
\Alex\AppData\Roaming\npm\node_modules\nodemcu-tool\node_modules\serialport\build\serialport.vcxproj]
..\src\serialport.cpp(617): warning C4996: 'Nan::Callback::Call': was declared deprecated [C:\Users\Alex\AppData\Roamin
g\npm\node_modules\nodemcu-tool\node_modules\serialport\build\serialport.vcxproj]
  C:\Users\Alex\AppData\Roaming\npm\node_modules\nodemcu-tool\node_modules\nan\nan.h(1618): note: see declaration of 'N
  an::Callback::Call'
..\src\serialport_win.cpp(178): warning C4311: 'type cast': pointer truncation from 'HANDLE' to 'int' [C:\Users\Alex\Ap
pData\Roaming\npm\node_modules\nodemcu-tool\node_modules\serialport\build\serialport.vcxproj]
..\src\serialport_win.cpp(178): warning C4302: 'type cast': truncation from 'HANDLE' to 'int' [C:\Users\Alex\AppData\Ro
aming\npm\node_modules\nodemcu-tool\node_modules\serialport\build\serialport.vcxproj]
..\src\serialport_win.cpp(200): warning C4312: 'type cast': conversion from 'int' to 'HANDLE' of greater size [C:\Users
\Alex\AppData\Roaming\npm\node_modules\nodemcu-tool\node_modules\serialport\build\serialport.vcxproj]
..\src\serialport_win.cpp(207): warning C4312: 'type cast': conversion from 'int' to 'HANDLE' of greater size [C:\Users
\Alex\AppData\Roaming\npm\node_modules\nodemcu-tool\node_modules\serialport\build\serialport.vcxproj]
..\src\serialport_win.cpp(217): warning C4312: 'type cast': conversion from 'int' to 'HANDLE' of greater size [C:\Users
\Alex\AppData\Roaming\npm\node_modules\nodemcu-tool\node_modules\serialport\build\serialport.vcxproj]
..\src\serialport_win.cpp(219): warning C4312: 'type cast': conversion from 'int' to 'HANDLE' of greater size [C:\Users
\Alex\AppData\Roaming\npm\node_modules\nodemcu-tool\node_modules\serialport\build\serialport.vcxproj]
..\src\serialport_win.cpp(223): warning C4312: 'type cast': conversion from 'int' to 'HANDLE' of greater size [C:\Users
\Alex\AppData\Roaming\npm\node_modules\nodemcu-tool\node_modules\serialport\build\serialport.vcxproj]
..\src\serialport_win.cpp(225): warning C4312: 'type cast': conversion from 'int' to 'HANDLE' of greater size [C:\Users
\Alex\AppData\Roaming\npm\node_modules\nodemcu-tool\node_modules\serialport\build\serialport.vcxproj]
..\src\serialport_win.cpp(229): warning C4312: 'type cast': conversion from 'int' to 'HANDLE' of greater size [C:\Users
\Alex\AppData\Roaming\npm\node_modules\nodemcu-tool\node_modules\serialport\build\serialport.vcxproj]
..\src\serialport_win.cpp(231): warning C4312: 'type cast': conversion from 'int' to 'HANDLE' of greater size [C:\Users
\Alex\AppData\Roaming\npm\node_modules\nodemcu-tool\node_modules\serialport\build\serialport.vcxproj]
..\src\serialport_win.cpp(236): warning C4312: 'type cast': conversion from 'int' to 'HANDLE' of greater size [C:\Users
\Alex\AppData\Roaming\npm\node_modules\nodemcu-tool\node_modules\serialport\build\serialport.vcxproj]
..\src\serialport_win.cpp(248): warning C4312: 'type cast': conversion from 'int' to 'HANDLE' of greater size [C:\Users
\Alex\AppData\Roaming\npm\node_modules\nodemcu-tool\node_modules\serialport\build\serialport.vcxproj]
..\src\serialport_win.cpp(363): warning C4311: 'type cast': pointer truncation from 'HANDLE' to 'int' [C:\Users\Alex\Ap
pData\Roaming\npm\node_modules\nodemcu-tool\node_modules\serialport\build\serialport.vcxproj]
..\src\serialport_win.cpp(363): warning C4302: 'type cast': truncation from 'HANDLE' to 'int' [C:\Users\Alex\AppData\Ro
aming\npm\node_modules\nodemcu-tool\node_modules\serialport\build\serialport.vcxproj]
..\src\serialport_win.cpp(373): warning C4311: 'type cast': pointer truncation from 'HANDLE' to 'int' [C:\Users\Alex\Ap
pData\Roaming\npm\node_modules\nodemcu-tool\node_modules\serialport\build\serialport.vcxproj]
..\src\serialport_win.cpp(373): warning C4302: 'type cast': truncation from 'HANDLE' to 'int' [C:\Users\Alex\AppData\Ro
aming\npm\node_modules\nodemcu-tool\node_modules\serialport\build\serialport.vcxproj]
..\src\serialport_win.cpp(351): warning C4996: 'Nan::Callback::Call': was declared deprecated [C:\Users\Alex\AppData\Ro
aming\npm\node_modules\nodemcu-tool\node_modules\serialport\build\serialport.vcxproj]
  C:\Users\Alex\AppData\Roaming\npm\node_modules\nodemcu-tool\node_modules\nan\nan.h(1618): note: see declaration of 'N
  an::Callback::Call'
..\src\serialport_win.cpp(361): warning C4996: 'Nan::Callback::Call': was declared deprecated [C:\Users\Alex\AppData\Ro
aming\npm\node_modules\nodemcu-tool\node_modules\serialport\build\serialport.vcxproj]
  C:\Users\Alex\AppData\Roaming\npm\node_modules\nodemcu-tool\node_modules\nan\nan.h(1618): note: see declaration of 'N
  an::Callback::Call'
..\src\serialport_win.cpp(369): warning C4996: 'Nan::Callback::Call': was declared deprecated [C:\Users\Alex\AppData\Ro
aming\npm\node_modules\nodemcu-tool\node_modules\serialport\build\serialport.vcxproj]
  C:\Users\Alex\AppData\Roaming\npm\node_modules\nodemcu-tool\node_modules\nan\nan.h(1618): note: see declaration of 'N
  an::Callback::Call'
..\src\serialport_win.cpp(385): warning C4312: 'type cast': conversion from 'int' to 'HANDLE' of greater size [C:\Users
\Alex\AppData\Roaming\npm\node_modules\nodemcu-tool\node_modules\serialport\build\serialport.vcxproj]
..\src\serialport_win.cpp(410): warning C4312: 'type cast': conversion from 'int' to 'HANDLE' of greater size [C:\Users
\Alex\AppData\Roaming\npm\node_modules\nodemcu-tool\node_modules\serialport\build\serialport.vcxproj]
..\src\serialport_win.cpp(424): warning C4312: 'type cast': conversion from 'int' to 'HANDLE' of greater size [C:\Users
\Alex\AppData\Roaming\npm\node_modules\nodemcu-tool\node_modules\serialport\build\serialport.vcxproj]
..\src\serialport_win.cpp(451): warning C4312: 'type cast': conversion from 'int' to 'HANDLE' of greater size [C:\Users
\Alex\AppData\Roaming\npm\node_modules\nodemcu-tool\node_modules\serialport\build\serialport.vcxproj]
..\src\serialport_win.cpp(453): warning C4312: 'type cast': conversion from 'int' to 'HANDLE' of greater size [C:\Users
\Alex\AppData\Roaming\npm\node_modules\nodemcu-tool\node_modules\serialport\build\serialport.vcxproj]
..\src\serialport_win.cpp(567): warning C4312: 'type cast': conversion from 'int' to 'HANDLE' of greater size [C:\Users
\Alex\AppData\Roaming\npm\node_modules\nodemcu-tool\node_modules\serialport\build\serialport.vcxproj]
..\src\serialport_win.cpp(576): warning C4312: 'type cast': conversion from 'int' to 'HANDLE' of greater size [C:\Users
\Alex\AppData\Roaming\npm\node_modules\nodemcu-tool\node_modules\serialport\build\serialport.vcxproj]
..\src\serialport.cpp(90): error C2661: 'v8::Value::ToInt32': no overloaded function takes 0 arguments [C:\Users\Alex\A
ppData\Roaming\npm\node_modules\nodemcu-tool\node_modules\serialport\build\serialport.vcxproj]
..\src\serialport.cpp(90): error C2227: left of '->Int32Value' must point to class/struct/union/generic type [C:\Users\
Alex\AppData\Roaming\npm\node_modules\nodemcu-tool\node_modules\serialport\build\serialport.vcxproj]
..\src\serialport.cpp(102): error C2661: 'v8::Value::ToNumber': no overloaded function takes 0 arguments [C:\Users\Alex
\AppData\Roaming\npm\node_modules\nodemcu-tool\node_modules\serialport\build\serialport.vcxproj]
..\src\serialport.cpp(102): error C2227: left of '->NumberValue' must point to class/struct/union/generic type [C:\User
s\Alex\AppData\Roaming\npm\node_modules\nodemcu-tool\node_modules\serialport\build\serialport.vcxproj]
..\src\serialport.cpp(174): error C2661: 'v8::Value::ToInt32': no overloaded function takes 0 arguments [C:\Users\Alex\
AppData\Roaming\npm\node_modules\nodemcu-tool\node_modules\serialport\build\serialport.vcxproj]
..\src\serialport.cpp(174): error C2227: left of '->Int32Value' must point to class/struct/union/generic type [C:\Users
\Alex\AppData\Roaming\npm\node_modules\nodemcu-tool\node_modules\serialport\build\serialport.vcxproj]
..\src\serialport.cpp(180): warning C4996: 'Nan::Callback::Call': was declared deprecated [C:\Users\Alex\AppData\Roamin
g\npm\node_modules\nodemcu-tool\node_modules\serialport\build\serialport.vcxproj]
  C:\Users\Alex\AppData\Roaming\npm\node_modules\nodemcu-tool\node_modules\nan\nan.h(1618): note: see declaration of 'N
  an::Callback::Call'
..\src\serialport.cpp(193): error C2661: 'v8::Value::ToInt32': no overloaded function takes 0 arguments [C:\Users\Alex\
AppData\Roaming\npm\node_modules\nodemcu-tool\node_modules\serialport\build\serialport.vcxproj]
..\src\serialport.cpp(193): error C2227: left of '->Int32Value' must point to class/struct/union/generic type [C:\Users
\Alex\AppData\Roaming\npm\node_modules\nodemcu-tool\node_modules\serialport\build\serialport.vcxproj]
..\src\serialport.cpp(217): error C2661: 'v8::Value::ToInt32': no overloaded function takes 0 arguments [C:\Users\Alex\
AppData\Roaming\npm\node_modules\nodemcu-tool\node_modules\serialport\build\serialport.vcxproj]
..\src\serialport.cpp(217): error C2227: left of '->Int32Value' must point to class/struct/union/generic type [C:\Users
\Alex\AppData\Roaming\npm\node_modules\nodemcu-tool\node_modules\serialport\build\serialport.vcxproj]
..\src\serialport.cpp(240): warning C4996: 'Nan::Callback::Call': was declared deprecated [C:\Users\Alex\AppData\Roamin
g\npm\node_modules\nodemcu-tool\node_modules\serialport\build\serialport.vcxproj]
  C:\Users\Alex\AppData\Roaming\npm\node_modules\nodemcu-tool\node_modules\nan\nan.h(1618): note: see declaration of 'N
  an::Callback::Call'
..\src\serialport.cpp(252): error C2661: 'v8::Value::ToInt32': no overloaded function takes 0 arguments [C:\Users\Alex\
AppData\Roaming\npm\node_modules\nodemcu-tool\node_modules\serialport\build\serialport.vcxproj]
..\src\serialport.cpp(252): error C2227: left of '->Int32Value' must point to class/struct/union/generic type [C:\Users
\Alex\AppData\Roaming\npm\node_modules\nodemcu-tool\node_modules\serialport\build\serialport.vcxproj]
..\src\serialport.cpp(339): warning C4996: 'Nan::Callback::Call': was declared deprecated [C:\Users\Alex\AppData\Roamin
g\npm\node_modules\nodemcu-tool\node_modules\serialport\build\serialport.vcxproj]
  C:\Users\Alex\AppData\Roaming\npm\node_modules\nodemcu-tool\node_modules\nan\nan.h(1618): note: see declaration of 'N
  an::Callback::Call'
..\src\serialport.cpp(369): error C2661: 'v8::Value::ToInt32': no overloaded function takes 0 arguments [C:\Users\Alex\
AppData\Roaming\npm\node_modules\nodemcu-tool\node_modules\serialport\build\serialport.vcxproj]
..\src\serialport.cpp(369): error C2227: left of '->Int32Value' must point to class/struct/union/generic type [C:\Users
\Alex\AppData\Roaming\npm\node_modules\nodemcu-tool\node_modules\serialport\build\serialport.vcxproj]
..\src\serialport.cpp(403): warning C4996: 'Nan::Callback::Call': was declared deprecated [C:\Users\Alex\AppData\Roamin
g\npm\node_modules\nodemcu-tool\node_modules\serialport\build\serialport.vcxproj]
  C:\Users\Alex\AppData\Roaming\npm\node_modules\nodemcu-tool\node_modules\nan\nan.h(1618): note: see declaration of 'N
  an::Callback::Call'
..\src\serialport.cpp(465): warning C4996: 'Nan::Callback::Call': was declared deprecated [C:\Users\Alex\AppData\Roamin
g\npm\node_modules\nodemcu-tool\node_modules\serialport\build\serialport.vcxproj]
  C:\Users\Alex\AppData\Roaming\npm\node_modules\nodemcu-tool\node_modules\nan\nan.h(1618): note: see declaration of 'N
  an::Callback::Call'
..\src\serialport.cpp(480): error C2661: 'v8::Value::ToInt32': no overloaded function takes 0 arguments [C:\Users\Alex\
AppData\Roaming\npm\node_modules\nodemcu-tool\node_modules\serialport\build\serialport.vcxproj]
..\src\serialport.cpp(480): error C2227: left of '->Int32Value' must point to class/struct/union/generic type [C:\Users
\Alex\AppData\Roaming\npm\node_modules\nodemcu-tool\node_modules\serialport\build\serialport.vcxproj]
..\src\serialport.cpp(516): warning C4996: 'Nan::Callback::Call': was declared deprecated [C:\Users\Alex\AppData\Roamin
g\npm\node_modules\nodemcu-tool\node_modules\serialport\build\serialport.vcxproj]
  C:\Users\Alex\AppData\Roaming\npm\node_modules\nodemcu-tool\node_modules\nan\nan.h(1618): note: see declaration of 'N
  an::Callback::Call'
..\src\serialport.cpp(528): error C2661: 'v8::Value::ToInt32': no overloaded function takes 0 arguments [C:\Users\Alex\
AppData\Roaming\npm\node_modules\nodemcu-tool\node_modules\serialport\build\serialport.vcxproj]
..\src\serialport.cpp(528): error C2227: left of '->Int32Value' must point to class/struct/union/generic type [C:\Users
\Alex\AppData\Roaming\npm\node_modules\nodemcu-tool\node_modules\serialport\build\serialport.vcxproj]
..\src\serialport.cpp(573): warning C4996: 'Nan::Callback::Call': was declared deprecated [C:\Users\Alex\AppData\Roamin
g\npm\node_modules\nodemcu-tool\node_modules\serialport\build\serialport.vcxproj]
  C:\Users\Alex\AppData\Roaming\npm\node_modules\nodemcu-tool\node_modules\nan\nan.h(1618): note: see declaration of 'N
  an::Callback::Call'
..\src\serialport.cpp(585): error C2661: 'v8::Value::ToInt32': no overloaded function takes 0 arguments [C:\Users\Alex\
AppData\Roaming\npm\node_modules\nodemcu-tool\node_modules\serialport\build\serialport.vcxproj]
..\src\serialport.cpp(585): error C2227: left of '->Int32Value' must point to class/struct/union/generic type [C:\Users
\Alex\AppData\Roaming\npm\node_modules\nodemcu-tool\node_modules\serialport\build\serialport.vcxproj]
..\src\serialport.cpp(617): warning C4996: 'Nan::Callback::Call': was declared deprecated [C:\Users\Alex\AppData\Roamin
g\npm\node_modules\nodemcu-tool\node_modules\serialport\build\serialport.vcxproj]
  C:\Users\Alex\AppData\Roaming\npm\node_modules\nodemcu-tool\node_modules\nan\nan.h(1618): note: see declaration of 'N
  an::Callback::Call'
..\src\serialport_win.cpp(178): warning C4311: 'type cast': pointer truncation from 'HANDLE' to 'int' [C:\Users\Alex\Ap
pData\Roaming\npm\node_modules\nodemcu-tool\node_modules\serialport\build\serialport.vcxproj]
..\src\serialport_win.cpp(178): warning C4302: 'type cast': truncation from 'HANDLE' to 'int' [C:\Users\Alex\AppData\Ro
aming\npm\node_modules\nodemcu-tool\node_modules\serialport\build\serialport.vcxproj]
..\src\serialport_win.cpp(200): warning C4312: 'type cast': conversion from 'int' to 'HANDLE' of greater size [C:\Users
\Alex\AppData\Roaming\npm\node_modules\nodemcu-tool\node_modules\serialport\build\serialport.vcxproj]
..\src\serialport_win.cpp(207): warning C4312: 'type cast': conversion from 'int' to 'HANDLE' of greater size [C:\Users
\Alex\AppData\Roaming\npm\node_modules\nodemcu-tool\node_modules\serialport\build\serialport.vcxproj]
..\src\serialport_win.cpp(217): warning C4312: 'type cast': conversion from 'int' to 'HANDLE' of greater size [C:\Users
\Alex\AppData\Roaming\npm\node_modules\nodemcu-tool\node_modules\serialport\build\serialport.vcxproj]
..\src\serialport_win.cpp(219): warning C4312: 'type cast': conversion from 'int' to 'HANDLE' of greater size [C:\Users
\Alex\AppData\Roaming\npm\node_modules\nodemcu-tool\node_modules\serialport\build\serialport.vcxproj]
..\src\serialport_win.cpp(223): warning C4312: 'type cast': conversion from 'int' to 'HANDLE' of greater size [C:\Users
\Alex\AppData\Roaming\npm\node_modules\nodemcu-tool\node_modules\serialport\build\serialport.vcxproj]
..\src\serialport_win.cpp(225): warning C4312: 'type cast': conversion from 'int' to 'HANDLE' of greater size [C:\Users
\Alex\AppData\Roaming\npm\node_modules\nodemcu-tool\node_modules\serialport\build\serialport.vcxproj]
..\src\serialport_win.cpp(229): warning C4312: 'type cast': conversion from 'int' to 'HANDLE' of greater size [C:\Users
\Alex\AppData\Roaming\npm\node_modules\nodemcu-tool\node_modules\serialport\build\serialport.vcxproj]
..\src\serialport_win.cpp(231): warning C4312: 'type cast': conversion from 'int' to 'HANDLE' of greater size [C:\Users
\Alex\AppData\Roaming\npm\node_modules\nodemcu-tool\node_modules\serialport\build\serialport.vcxproj]
..\src\serialport_win.cpp(236): warning C4312: 'type cast': conversion from 'int' to 'HANDLE' of greater size [C:\Users
\Alex\AppData\Roaming\npm\node_modules\nodemcu-tool\node_modules\serialport\build\serialport.vcxproj]
..\src\serialport_win.cpp(248): warning C4312: 'type cast': conversion from 'int' to 'HANDLE' of greater size [C:\Users
\Alex\AppData\Roaming\npm\node_modules\nodemcu-tool\node_modules\serialport\build\serialport.vcxproj]
..\src\serialport_win.cpp(363): warning C4311: 'type cast': pointer truncation from 'HANDLE' to 'int' [C:\Users\Alex\Ap
pData\Roaming\npm\node_modules\nodemcu-tool\node_modules\serialport\build\serialport.vcxproj]
..\src\serialport_win.cpp(363): warning C4302: 'type cast': truncation from 'HANDLE' to 'int' [C:\Users\Alex\AppData\Ro
aming\npm\node_modules\nodemcu-tool\node_modules\serialport\build\serialport.vcxproj]
..\src\serialport_win.cpp(373): warning C4311: 'type cast': pointer truncation from 'HANDLE' to 'int' [C:\Users\Alex\Ap
pData\Roaming\npm\node_modules\nodemcu-tool\node_modules\serialport\build\serialport.vcxproj]
..\src\serialport_win.cpp(373): warning C4302: 'type cast': truncation from 'HANDLE' to 'int' [C:\Users\Alex\AppData\Ro
aming\npm\node_modules\nodemcu-tool\node_modules\serialport\build\serialport.vcxproj]
..\src\serialport_win.cpp(351): warning C4996: 'Nan::Callback::Call': was declared deprecated [C:\Users\Alex\AppData\Ro
aming\npm\node_modules\nodemcu-tool\node_modules\serialport\build\serialport.vcxproj]
  C:\Users\Alex\AppData\Roaming\npm\node_modules\nodemcu-tool\node_modules\nan\nan.h(1618): note: see declaration of 'N
  an::Callback::Call'
..\src\serialport_win.cpp(361): warning C4996: 'Nan::Callback::Call': was declared deprecated [C:\Users\Alex\AppData\Ro
aming\npm\node_modules\nodemcu-tool\node_modules\serialport\build\serialport.vcxproj]
  C:\Users\Alex\AppData\Roaming\npm\node_modules\nodemcu-tool\node_modules\nan\nan.h(1618): note: see declaration of 'N
  an::Callback::Call'
..\src\serialport_win.cpp(369): warning C4996: 'Nan::Callback::Call': was declared deprecated [C:\Users\Alex\AppData\Ro
aming\npm\node_modules\nodemcu-tool\node_modules\serialport\build\serialport.vcxproj]
  C:\Users\Alex\AppData\Roaming\npm\node_modules\nodemcu-tool\node_modules\nan\nan.h(1618): note: see declaration of 'N
  an::Callback::Call'
..\src\serialport_win.cpp(385): warning C4312: 'type cast': conversion from 'int' to 'HANDLE' of greater size [C:\Users
\Alex\AppData\Roaming\npm\node_modules\nodemcu-tool\node_modules\serialport\build\serialport.vcxproj]
..\src\serialport_win.cpp(410): warning C4312: 'type cast': conversion from 'int' to 'HANDLE' of greater size [C:\Users
\Alex\AppData\Roaming\npm\node_modules\nodemcu-tool\node_modules\serialport\build\serialport.vcxproj]
..\src\serialport_win.cpp(424): warning C4312: 'type cast': conversion from 'int' to 'HANDLE' of greater size [C:\Users
\Alex\AppData\Roaming\npm\node_modules\nodemcu-tool\node_modules\serialport\build\serialport.vcxproj]
..\src\serialport_win.cpp(451): warning C4312: 'type cast': conversion from 'int' to 'HANDLE' of greater size [C:\Users
\Alex\AppData\Roaming\npm\node_modules\nodemcu-tool\node_modules\serialport\build\serialport.vcxproj]
..\src\serialport_win.cpp(453): warning C4312: 'type cast': conversion from 'int' to 'HANDLE' of greater size [C:\Users
\Alex\AppData\Roaming\npm\node_modules\nodemcu-tool\node_modules\serialport\build\serialport.vcxproj]
..\src\serialport_win.cpp(567): warning C4312: 'type cast': conversion from 'int' to 'HANDLE' of greater size [C:\Users
\Alex\AppData\Roaming\npm\node_modules\nodemcu-tool\node_modules\serialport\build\serialport.vcxproj]
..\src\serialport_win.cpp(576): warning C4312: 'type cast': conversion from 'int' to 'HANDLE' of greater size [C:\Users
\Alex\AppData\Roaming\npm\node_modules\nodemcu-tool\node_modules\serialport\build\serialport.vcxproj]
gyp ERR! build error
gyp ERR! stack Error: `C:\Program Files (x86)\MSBuild\14.0\bin\msbuild.exe` failed with exit code: 1
gyp ERR! stack     at ChildProcess.onExit (C:\Users\Alex\AppData\Roaming\npm\node_modules\npm\node_modules\node-gyp\lib\build.js:258:23)
gyp ERR! stack     at ChildProcess.emit (events.js:182:13)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:237:12)
gyp ERR! System Windows_NT 10.0.17134
gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "C:\\Users\\Alex\\AppData\\Roaming\\npm\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js" "build" "--fallback-to-build" "--module=C:\\Users\\Alex\\AppData\\Roaming\\npm\\node_modules\\nodemcu-tool\\node_modules\\serialport\\build\\Release\\serialport.node" "--module_name=serialport" "--module_path=C:\\Users\\Alex\\AppData\\Roaming\\npm\\node_modules\\nodemcu-tool\\node_modules\\serialport\\build\\Release"
gyp ERR! cwd C:\Users\Alex\AppData\Roaming\npm\node_modules\nodemcu-tool\node_modules\serialport
gyp ERR! node -v v10.5.0
gyp ERR! node-gyp -v v3.6.2
gyp ERR! not ok
node-pre-gyp ERR! build error
node-pre-gyp ERR! stack Error: Failed to execute 'C:\Program Files\nodejs\node.exe C:\Users\Alex\AppData\Roaming\npm\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js build --fallback-to-build --module=C:\Users\Alex\AppData\Roaming\npm\node_modules\nodemcu-tool\node_modules\serialport\build\Release\serialport.node --module_name=serialport --module_path=C:\Users\Alex\AppData\Roaming\npm\node_modules\nodemcu-tool\node_modules\serialport\build\Release' (1)
node-pre-gyp ERR! stack     at ChildProcess.<anonymous> (C:\Users\Alex\AppData\Roaming\npm\node_modules\nodemcu-tool\node_modules\serialport\node_modules\node-pre-gyp\lib\util\compile.js:83:29)
node-pre-gyp ERR! stack     at ChildProcess.emit (events.js:182:13)
node-pre-gyp ERR! stack     at maybeClose (internal/child_process.js:961:16)
node-pre-gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:248:5)
node-pre-gyp ERR! System Windows_NT 10.0.17134
node-pre-gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "C:\\Users\\Alex\\AppData\\Roaming\\npm\\node_modules\\nodemcu-tool\\node_modules\\serialport\\node_modules\\node-pre-gyp\\bin\\node-pre-gyp" "install" "--fallback-to-build"
node-pre-gyp ERR! cwd C:\Users\Alex\AppData\Roaming\npm\node_modules\nodemcu-tool\node_modules\serialport
node-pre-gyp ERR! node -v v10.5.0
node-pre-gyp ERR! node-pre-gyp -v v0.6.32
node-pre-gyp ERR! not ok
Failed to execute 'C:\Program Files\nodejs\node.exe C:\Users\Alex\AppData\Roaming\npm\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js build --fallback-to-build --module=C:\Users\Alex\AppData\Roaming\npm\node_modules\nodemcu-tool\node_modules\serialport\build\Release\serialport.node --module_name=serialport --module_path=C:\Users\Alex\AppData\Roaming\npm\node_modules\nodemcu-tool\node_modules\serialport\build\Release' (1)
npm WARN rollback Rolling back http-signature@1.1.1 failed (this is probably harmless): EPERM: operation not permitted, lstat 'C:\Users\Alex\AppData\Roaming\npm\node_modules\nodemcu-tool\node_modules\serialport\node_modules\node-pre-gyp\node_modules\request\node_modules'
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! serialport@4.0.7 install: `node-pre-gyp install --fallback-to-build`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the serialport@4.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\Alex\AppData\Roaming\npm-cache\_logs\2018-07-09T13_45_16_708Z-debug.log

Here is log 2018-07-09T13_45_16_708Z-debug.log

AndiDittrich commented 6 years ago

Hi @CyanoFresh ,

the issue is related to the node-serialport package.

did you try to install NodeMCU-Tool without the global flag ?

CyanoFresh commented 6 years ago

thanks for reply. same errors

AndiDittrich commented 6 years ago

maybe it's the serialport v4 package. the NodeMCU-Tool master branch uses 6.2 currently - i will push a tag soon

AndiDittrich commented 6 years ago

i've just released NodeMCU-Tool v3 including serialport v6.2 - this should fix the issue