Problem running chirpstack-api javascript code

Did you try THIS?