0
3

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

React + Electron + vite + TypeScriptの簡単な環境構築

Last updated at Posted at 2025-11-27

@quick-start/electronを使おう

この所数日間時間を見つけてタイトルの環境構築を試みていたのだが、
これがなかなかうまくいかない。
そんな中で見つけたのがこちら、@quick-start/electron。
これにはReactのテンプレートも用意されているため、面倒な設定が不要だ。
早速実行手順を紹介する。

1.プロジェクトを作成したいディレクトリで実行

 npm create @quick-start/electron myapp -- --template react; 

2.実行結果

> npx
> "create-electron" myapp --template react

✔ Add TypeScript? … No / Yes
✔ Add Electron updater plugin? … No / Yes
✔ Enable Electron download mirror proxy? … No / Yes

Scaffolding project in /Users/◯◯◯◯/workspace/myapp...

Done. Now run:

  cd myapp
  npm install
  npm run dev

3.npm run devを実行する

スクリーンショット 2025-11-27 18.09.57.png

この通り環境が構築されている。
コマンド実行後の選択肢についてはお好みだが、一つだけ

✔ Enable Electron download mirror proxy? … No / Yes

こちらはNoを選択するのが良いと思う。
私が試したときYesだと実行されなかった。

参考になれば幸いである。

0
3
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
3

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?