SerialPort version: 4.0.1
NodeJS Version: 6.3.1
Operating System and Hardware: windows7
Are you using Electron/Atom/NwJS?: Electron
python Version: 2.7.6
msvs_version: 2013
D:\workspace\electron-quick-start-serialport>npm install
> [email protected] install D:\workspace\electron-quick-start-serialport\node_modules\serialport
> node-pre-gyp install --fallback-to-build
在此解决方案中一次生成一个项目。若要启用并行生成,请添加“/m”开关。
serialport.cpp
serialport_win.cpp
enumser.cpp
..\src\win\enumser.cpp : warning C4819: The file contains a character that cannot be represented in the current code page (936). Save the file in Unicode format to prevent data loss [D:\workspace\electron-quick-start-serialport\node_modules\serialport\build\serialport.vcxproj]
win_delay_load_hook.cc
..\src\win\enumser.cpp(443): warning C4996: 'GetVersionExA': was declared deprecated [D:\workspace\electron-quick-start-serialport\node_modules\serialport\build\serialport.vcxproj]
C:\Program Files (x86)\Windows Kits\8.1\Include\um\sysinfoapi.h(433) : see declaration of 'GetVersionExA'
..\src\serialport.cpp(90): warning C4996: 'v8::Value::ToInt32': was declared deprecated [D:\workspace\electron-quick-start-serialport\node_modules\serialport\build\serialport.vcxproj]
C:\Users\dw\.node-gyp\iojs-1.3.3\deps\v8\include\v8.h(1997) : see declaration of 'v8::Value::ToInt32'
..\src\serialport.cpp(102): warning C4996: 'v8::Value::ToNumber': was declared deprecated [D:\workspace\electron-quick-start-serialport\node_modules\serialport\build\serialport.vcxproj]
C:\Users\dw\.node-gyp\iojs-1.3.3\deps\v8\include\v8.h(1989) : see declaration of 'v8::Value::ToNumber'
..\src\serialport.cpp(175): warning C4996: 'v8::Value::ToInt32': was declared deprecated [D:\workspace\electron-quick-start-serialport\node_modules\serialport\build\serialport.vcxproj]
C:\Users\dw\.node-gyp\iojs-1.3.3\deps\v8\include\v8.h(1997) : see declaration of 'v8::Value::ToInt32'
..\src\serialport.cpp(195): warning C4996: 'v8::Value::ToInt32': was declared deprecated [D:\workspace\electron-quick-start-serialport\node_modules\serialport\build\serialport.vcxproj]
C:\Users\dw\.node-gyp\iojs-1.3.3\deps\v8\include\v8.h(1997) : see declaration of 'v8::Value::ToInt32'
..\src\serialport.cpp(220): warning C4996: 'v8::Value::ToInt32': was declared deprecated [D:\workspace\electron-quick-start-serialport\node_modules\serialport\build\serialport.vcxproj]
C:\Users\dw\.node-gyp\iojs-1.3.3\deps\v8\include\v8.h(1997) : see declaration of 'v8::Value::ToInt32'
..\src\serialport.cpp(256): warning C4996: 'v8::Value::ToInt32': was declared deprecated [D:\workspace\electron-quick-start-serialport\node_modules\serialport\build\serialport.vcxproj]
C:\Users\dw\.node-gyp\iojs-1.3.3\deps\v8\include\v8.h(1997) : see declaration of 'v8::Value::ToInt32'
..\src\serialport.cpp(376): warning C4996: 'v8::Value::ToInt32': was declared deprecated [D:\workspace\electron-quick-start-serialport\node_modules\serialport\build\serialport.vcxproj]
C:\Users\dw\.node-gyp\iojs-1.3.3\deps\v8\include\v8.h(1997) : see declaration of 'v8::Value::ToInt32'
..\src\serialport.cpp(490): warning C4996: 'v8::Value::ToInt32': was declared deprecated [D:\workspace\electron-quick-start-serialport\node_modules\serialport\build\serialport.vcxproj]
C:\Users\dw\.node-gyp\iojs-1.3.3\deps\v8\include\v8.h(1997) : see declaration of 'v8::Value::ToInt32'
..\src\serialport.cpp(538): warning C4996: 'v8::Value::ToInt32': was declared deprecated [D:\workspace\electron-quick-start-serialport\node_modules\serialport\build\serialport.vcxproj]
C:\Users\dw\.node-gyp\iojs-1.3.3\deps\v8\include\v8.h(1997) : see declaration of 'v8::Value::ToInt32'
..\src\serialport.cpp(596): warning C4996: 'v8::Value::ToInt32': was declared deprecated [D:\workspace\electron-quick-start-serialport\node_modules\serialport\build\serialport.vcxproj]
C:\Users\dw\.node-gyp\iojs-1.3.3\deps\v8\include\v8.h(1997) : see declaration of 'v8::Value::ToInt32'
disphelper.c
..\src\win\disphelper.c(1164): warning C4267: '=' : conversion from 'size_t' to 'UINT', possible loss of data [D:\workspace\electron-quick-start-serialport\node_modules\serialport\build\serialport.vcxproj]
C:\Users\dw\.node-gyp\iojs-1.3.3\Release\iojs.lib : fatal error LNK1127: library is corrupt [D:\workspace\electron-quick-start-serialport\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 (D:\workspace\electron-quick-start-serialport\node_modules\node-gyp\lib\build.js:276: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:204:12)
gyp ERR! System Windows_NT 6.1.7601
gyp ERR! command "D:\\nodejs\\node.exe" "D:\\workspace\\electron-quick-start-serialport\\node_modules\\node-gyp\\bin\\node-gyp.js" "build" "--fallback-to-build" "--module=D:\\workspace\\electron-quick-start-serialport\\node_modules\\serialport\\build\\Release\\serialport.node" "--module_name=serialport" "--module_path=D:\\workspace\\electron-quick-start-serialport\\node_modules\\serialport\\build\\Release"
gyp ERR! cwd D:\workspace\electron-quick-start-serialport\node_modules\serialport
gyp ERR! node -v v6.4.0
gyp ERR! node-gyp -v v3.4.0
gyp ERR! not ok
node-pre-gyp ERR! build error
node-pre-gyp ERR! stack Error: Failed to execute 'D:\nodejs\node.exe D:\workspace\electron-quick-start-serialport\node_modules\node-gyp\bin\node-gyp.js build --fallback-to-build --module=D:\workspace\electron-quick-start-serialport\node_modules\serialport\build\Release\serialport.node --module_name=serialport --module_path=D:\workspace\electron-quick-start-serialport\node_modules\serialport\build\Release' (1)
node-pre-gyp ERR! stack at ChildProcess.<anonymous> (D:\workspace\electron-quick-start-serialport\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:852:16)
node-pre-gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:215:5)
node-pre-gyp ERR! System Windows_NT 6.1.7601
node-pre-gyp ERR! command "D:\\nodejs\\node.exe" "D:\\workspace\\electron-quick-start-serialport\\node_modules\\serialport\\node_modules\\node-pre-gyp\\bin\\node-pre-gyp" "install" "--fallback-to-build"
node-pre-gyp ERR! cwd D:\workspace\electron-quick-start-serialport\node_modules\serialport
node-pre-gyp ERR! node -v v6.4.0
node-pre-gyp ERR! node-pre-gyp -v v0.6.29
node-pre-gyp ERR! not ok
Failed to execute 'D:\nodejs\node.exe D:\workspace\electron-quick-start-serialport\node_modules\node-gyp\bin\node-gyp.js build --fallback-to-build --module=D:\workspace\electron-quick-start-serialport\node_modules\serialport\build\Release\serialport.node --module_name=serialport --module_path=D:\workspace\electron-quick-start-serialport\node_modules\serialport\build\Release' (1)
npm ERR! Windows_NT 6.1.7601
npm ERR! argv "D:\\nodejs\\node.exe" "D:\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install"
npm ERR! node v6.4.0
npm ERR! npm v3.10.3
npm ERR! code ELIFECYCLE
npm ERR! [email protected] install: `node-pre-gyp install --fallback-to-build`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] install script 'node-pre-gyp install --fallback-to-build'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the serialport package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node-pre-gyp install --fallback-to-build
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs serialport
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls serialport
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request:
npm ERR! D:\workspace\electron-quick-start-serialport\npm-debug.log
https://github.com/dfsq1311/electron-quick-start-serialport
>git clone https://github.com/dfsq1311/electron-quick-start-serialport
>npm install
the error happened
Is there any thing wrong with my C:\Users\dw\.node-gyp\iojs-1.3.3\Release\iojs.lib?
Why is it building iojs.lib? That seems out of place. Hopefully a red herring.
I delete ~/.node-gyp, then run npm install node-gyp -g, it work.
Yay!
On Mon, Aug 29, 2016, 11:29 AM dw [email protected] wrote:
Closed #912
https://github.com/EmergingTechnologyAdvisors/node-serialport/issues/912
.—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/EmergingTechnologyAdvisors/node-serialport/issues/912#event-770845515,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AABlbkEQOzss2J8DWa8FazPZLsnG0qcEks5qkvregaJpZM4JpBmc
.
Most helpful comment
I delete ~/.node-gyp, then run
npm install node-gyp -g, it work.