Installation of Electron serial port module

Installation of Electron serial port module (Window)

  1. Unzip the example project to a directory, make sure the system has installed .net framework 2.0
  2. Execute the node.js module warehouse Taobao mirror setting in this directory
    npm install -g cnpm --registry=https://registry.npm.taobao.org
  3. Install the default module (Electron) and module serial port module
    cnpm install
    cnpm install --save [email protected]
    The 7.1.5 of serialport is the tested stable available version number.
  4. Install the re-build module
    cnpm install --save-dev electron-rebuild
  5. Execution version re-build
    .\node_modules.bin\electron-rebuild -v 1.8.8
    where 1.8.8 is replaced with the actual Electron version number (note that the locally installed Electron version number is used instead of the globally installed Electron version number, if available Display the local version number of Electron by designing a script in the HTML file.). Pay attention to the influence of the computer firewall and turn off the firewall software if necessary.
  6. Finally, you can execute the dependent installation
    cnpm install again. The
    above is the installation of the windows environment. If it is linux or other systems, it needs to be adjusted accordingly.

Sample download:
https://download.csdn.net/download/hwytree/11994266

-End-

Guess you like

Origin blog.csdn.net/hwytree/article/details/103222453