Native script works on local, but not on remote server

Hi all, I managed to create and install a native script, and it works perfectly on my localhost. However, when I transfer the same code to a remote server, while it built and installed just fine, when I ran query, it kept saying that Native script [ xxx ] not found. I'm wondering if I need to config Elastic on the remote server in someway to make it work? Can someone provide hit. Thanks

Note: I already put "lang": "native" in my query.