zabsalahid / serialport-gsm

SerialPort-GSM is a simplified plugin for communicating with gsm modems. (Primarily for sms) (Focused in PDU mode)
MIT License
90 stars 47 forks source link

Error: Cannot find module '@serialport/bindings' #87

Closed kakashy closed 3 years ago

kakashy commented 3 years ago

Node returns Error: Cannot find the binding file after trying to run this example code:

let serialportgsm = require('serialport-gsm')

serialportgsm.list((err, result) => {
    console.log(result)
})

I have tried to re-install serialport-gsm in a new app and it returns this error too: prebuild-install WARN install No prebuilt binaries found (target=14.16.0 runtime=node arch=x64 libc= platform=win32)

Apollon77 commented 3 years ago

Then something went wrong while installing it. go on the machine, cd to the @serialport/bindings directory and execute "npm rebuild" there

kakashy commented 3 years ago

Doesn't work. When installing, the process freezes at this point:

> prebuild-install --tag-prefix @serialport/bindings@ || node-gyp rebuild  

I thought it might be an issue with node-gyp as a lot of packages run into errors with it too, so I installed it first before serialport-gsm. Still, the installation process freezes at @serialport. Is it advisable to manually install it?

kakashy commented 3 years ago

I've concluded that this is not a problem with serialport-gsm but more of a serialport thing as noted by several open issues on their end. It seems to be an error that has been with its build and has been around for months.