-
Notifications
You must be signed in to change notification settings - Fork 7
How To Build SerialPort Node module
Hancel Lin edited this page Jul 14, 2022
·
6 revisions
If your vscode version was updated and then the extension vsc-serialport-helper
does not work properly. You can rebuild the Serial Port Node module to make it work.
- Install Node. https://nodejs.org/ Install the Last LTS version.
- Install node-gyp. https://github.com/nodejs/node-gyp#installation For different OS, you must install some other tool first.
- Open
/<Your User Folder>/.vscode/extensions/hancel.serialport-helper-0.0.14/node_modules/@serialport/bindings
in Terminal. - Execute command
node-gyp rebuild --target=<electron version> --arch=<ia32/x64> --dist-url=https://electronjs.org/headers
. You can check it in VSCodeHelp > About
. Thearch
must be the same as your platform. - Open
/<Your User Folder>/.vscode/extensions/hancel.serialport-helper-0.0.13/node_modules/usb-detection
in Terminal. Execute the same command. - And then restart your vscode. It will work.