Skip to content

gooooooooooooogle/DLT645-2007-tool

Repository files navigation

dlt645-2007-tool

一个简易的DLT645-2007协议通讯工具

说明

基于 Electron + Vue(electron-vue) + element-ui + serialport 在Windows平台开发的DLT645-2007协议通讯工具

所用技术栈:

Windows10下环境搭建

  • node: 14.17.5

  • npm: 6.14.14

  • npm config set registry https://registry.npm.taobao.org/

  • npm config set ELECTRON_MIRROR http://npm.taobao.org/mirrors/electron/

  • Python: 3.x

  • 安装Visual Studio 2017 15.7.2 或更高版本 或安装 Visual Studio Build Tools

    并执行 npm config set msvs_version 2017

  • 为 Electron 安装并重新编译Node原生模块: npm install --save-dev electron-rebuild

  • npm install -g node-gyp

  • 若执行npm install后, node-gyp报错, 提示 "Visual Studio C++ core features" missing

    则安装 build工具:执行 npm i -g windows-build-tools

    此过程若卡在"Still waiting for installer log file...",则去下载目录C:\Users\Administrator.windows-build-tools,

    手动运行vs_BuildTools.exe,单个组件->勾选Node.js MSBuild支持,下载安装

    界面截图

    界面截图

    界面截图

    若仍然报错,则再手动打开vs_BuildTools.exe,安装入下图所示的两个。应该就可以了。

    界面截图

  • npm install安装成功后,若windows下构建时提示失败,可尝试执行 .\node_modules\.bin\electron-rebuild.cmd

构建


# 安装依赖
npm install

# 开发环境
npm run dev

# 生产环境
npm run build

界面

界面一

界面一

界面二

界面二