The issue mentioned is most likely related to the function runtime environment, not AWS SAM itself.
There is a caution from the bigint-buffer
NPM package, which utilizes native C bindings for efficient handling of large numbers. Being written in C, it has specific dependencies required for successful compilation.
Nevertheless, if compiling the C code fails, bigint-buffer
will gracefully switch to a slower JavaScript implementation as a backup solution, hence the warning message you encountered.
While the documentation for bigint-buffer
may not provide detailed insights, further investigation reveals that the compilation process is overseen by another library named node-gyp
, with specific prerequisites outlined in their README:
- An approved version of
Python
make
- A complete C/C++ compiler toolchain such as
GCC
As a Debian user, ensuring the presence of python3
and build-essential
(inclusive of make
and gcc
) before installing NPM dependencies resolved my setup requirements.