NPM install/build: warning C4244: 'argument': conversion fro m 'time_t' to 'double'
Opened this issue · 0 comments
An excerpt below of the warning I get when installing time (npm install time).
Building the projects in this solution one at a time. To enable parallel build, please add the "/m" switch.
time.cc
win_delay_load_hook.cc
...\node_modules\nan\nan_new.h(208): warning C4244: 'argument': conversion fro
m 'time_t' to 'double', possible loss of data (compiling source file ..\src\time.cc) [....\node_modules\time\build\time.vcxproj]
..\src\time.cc(30): note: see reference to function template instantiation 'v8::Localv8::Number Nan::New<v8::Number
,time_t>(A0)' being compiled
with
[
A0=time_t
]
When I use the packed up solution in my Lambda function I receive this error:
Error: /var/task/node_modules/time/build/Release/time.node: invalid ELF header
Any help would be appreciated... npm time seems like the best solution for my timezone conversion needs in this project.
My project and NPM is on Windows 10.
Thanks....