Good ... install serialport with npm install --save serialport
and when doing let serialport = require('serialport');
and try to run the application I skip the following error.
and this in console:
pd: I did not know how to look for the problem in google.