Skip to content

NPM install/build: warning C4244: 'argument': conversion fro m 'time_t' to 'double' #105

@isaac-oshima

Description

@isaac-oshima

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....

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions