npm install or yarn install
npm run dev or yarn dev
# 启动之后,会在9080端口监听
# 需要重新运行一次此命令
npm run dev
# build命令在不同系统环境中,需要的的不一样,需要自己根据自身环境进行配置
npm run build
# 如若实在不行无法安装electron依赖,请使用
npm config edit
# 该命令会打开npm的配置文件,请在registry=https://registry.npm.taobao.org/这行代码后的下一行添加
# electron_mirror=https://cdn.npm.taobao.org/dist/electron/ 和 ELECTRON_BUILDER_BINARIES_MIRROR=http://npm.taobao.org/mirrors/electron-builder-binaries/
# 然后关闭该窗口,重启命令行,删除node_modules文件夹,并重新安装依赖即可
forked from umbrella22/electron-react-template
-
Notifications
You must be signed in to change notification settings - Fork 0
An Electron & React quick start
License
virtualflase/electron-react-template
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
An Electron & React quick start
Resources
License
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published
Languages
- TypeScript 86.8%
- HTML 7.3%
- SCSS 3.7%
- JavaScript 2.2%