Всем доброго времени суток!
Нашел npm для подключения к купюроприемнику
https://github.com/soulman-is-good/ccnet
Не устанавливается... Уже и обновлял node-gyp и устанавливал конфиг на mvs 2013, и переменную PYTHON добавлял.
Выручайте. 3-ий день пошел, пока дергается только глаз
Код:
|
C:\it\terminal>npm i ccnet
> serialport@1.7.4 install C:\it\terminal\node_modules\serialport
> node-pre-gyp install --fallback-to-build
ЕЩЕ 40000 строк варнингов и ошибок
(node:8640) fs: re-evaluating native module sources is not supported. If you are using the graceful-fs module, please update it to a more recent version.
Сборка проектов в этом решении по одному. Чтобы включить параллельную сборку, добавьте параметр "/m".
serialport.cpp
serialport_win.cpp
enumser.cpp
win_delay_load_hook.cc
..\src\serialport_win.cpp(308): warning C4302: 'type cast': truncation from 'HANDLE' to 'int' [C:\it\terminal\node_modu
les\serialport\build\serialport.vcxproj]
..\src\serialport_win.cpp(318): warning C4311: 'type cast': pointer truncation from 'HANDLE' to 'int' [C:\it\terminal\n
ode_modules\serialport\build\serialport.vcxproj]
..\src\serialport_win.cpp(318): warning C4302: 'type cast': truncation from 'HANDLE' to 'int' [C:\it\terminal\node_modu
les\serialport\build\serialport.vcxproj]
..\src\serialport_win.cpp(328): warning C4312: 'type cast': conversion from 'int' to 'HANDLE' of greater size [C:\it\te
rminal\node_modules\serialport\build\serialport.vcxproj]
..\src\serialport_win.cpp(353): warning C4312: 'type cast': conversion from 'int' to 'HANDLE' of greater size [C:\it\te
rminal\node_modules\serialport\build\serialport.vcxproj]
..\src\serialport_win.cpp(366): warning C4312: 'type cast': conversion from 'int' to 'HANDLE' of greater size [C:\it\te
rminal\node_modules\serialport\build\serialport.vcxproj]
..\src\serialport_win.cpp(401): warning C4312: 'type cast': conversion from 'int' to 'HANDLE' of greater size [C:\it\te
rminal\node_modules\serialport\build\serialport.vcxproj]
..\src\serialport_win.cpp(403): warning C4312: 'type cast': conversion from 'int' to 'HANDLE' of greater size [C:\it\te
rminal\node_modules\serialport\build\serialport.vcxproj]
..\src\serialport_win.cpp(502): warning C4312: 'type cast': conversion from 'int' to 'HANDLE' of greater size [C:\it\te
rminal\node_modules\serialport\build\serialport.vcxproj]
..\src\serialport_win.cpp(511): warning C4312: 'type cast': conversion from 'int' to 'HANDLE' of greater size [C:\it\te
rminal\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:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\build.js:285:23)
gyp ERR! stack at emitTwo (events.js:106:13)
gyp ERR! stack at ChildProcess.emit (events.js:191:7)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:215:12)
gyp ERR! System Windows_NT 10.0.14393
gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "c:\\Program Files\\nodejs\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js" "build" "--fallback-to-build" "--module=C:\\it\\terminal\\node_modules\\serialport\\build\\serialport\\v1.7.4\\Release\\node-v48-win32-x64\\serialport.node" "--module_name=serialport" "--module_path=C:\\it\\terminal\\node_modules\\serialport\\build\\serialport\\v1.7.4\\Release\\node-v48-win32-x64"
gyp ERR! cwd C:\it\terminal\node_modules\serialport
gyp ERR! node -v v6.10.3
gyp ERR! node-gyp -v v3.6.0
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:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js build --fallback-to-build --module=C:\it\terminal\node_modules\serialport\build\serialport\v1.7.4\Release\node-v48-win32-x64\serialport.node --module_name=serialport --module_path=C:\it\terminal\node_modules\serialport\build\serialport\v1.7.4\Release\node-v48-win32-x64' (1)
node-pre-gyp ERR! stack at ChildProcess.<anonymous> (C:\it\terminal\node_modules\serialport\node_modules\node-pre-gyp\lib\util\compile.js:83:29)
node-pre-gyp ERR! stack at emitTwo (events.js:106:13)
node-pre-gyp ERR! stack at ChildProcess.emit (events.js:191:7)
node-pre-gyp ERR! stack at maybeClose (internal/child_process.js:886:16)
node-pre-gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:226:5)
node-pre-gyp ERR! System Windows_NT 10.0.14393
node-pre-gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "C:\\it\\terminal\\node_modules\\serialport\\node_modules\\node-pre-gyp\\bin\\node-pre-gyp" "install" "--fallback-to-build"
node-pre-gyp ERR! cwd C:\it\terminal\node_modules\serialport
node-pre-gyp ERR! node -v v6.10.3
node-pre-gyp ERR! node-pre-gyp -v v0.6.7
node-pre-gyp ERR! not ok
Failed to execute 'C:\Program Files\nodejs\node.exe c:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js build --fallback-to-build --module=C:\it\terminal\node_modules\serialport\build\serialport\v1.7.4\Release\node-v48-win32-x64\serialport.node --module_name=serialport --module_path=C:\it\terminal\node_modules\serialport\build\serialport\v1.7.4\Release\node-v48-win32-x64' (1)
npm WARN terminal@1.0.0 No description
npm WARN terminal@1.0.0 No repository field.
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! serialport@1.7.4 install: `node-pre-gyp install --fallback-to-build`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the serialport@1.7.4 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\it\AppData\Roaming\npm-cache\_logs\2017-05-26T12_47_09_141Z-debug.log |