This problem usually occurs due to installing the library on one system, and then deploying and running it on another system that requires a different binary.
The simplest solution to this problem is to run npm rebuild
after deployment on a deployed system.
, npm rebuild
, , npm install
. --target
Node. --target=9.0.0
Node 9 ( ). --target_platform
: windows
, linux
darwin
(Mac). --target_arch
: ia32
, x64
arm
. , , --target_libc
, libc: glibc
musl
( Alpine Linux).
, ,
npm install