質問をすることでしか得られない、回答やアドバイスがある。

15分調べてもわからないことは、質問しよう!

新規登録して質問してみよう
ただいま回答率
85.49%
Electron

Electronは、HTML5とNode.jsというWebの技術を用いてデスクトップアプリケーションを作成できるクロスプラットフォームな実行環境です。

React.js

Reactは、アプリケーションのインターフェースを構築するためのオープンソースJavaScriptライブラリです。

Q&A

解決済

1回答

1339閲覧

Electron-builderでPythonのエラーがでてしまいます。

退会済みユーザー

退会済みユーザー

総合スコア0

Electron

Electronは、HTML5とNode.jsというWebの技術を用いてデスクトップアプリケーションを作成できるクロスプラットフォームな実行環境です。

React.js

Reactは、アプリケーションのインターフェースを構築するためのオープンソースJavaScriptライブラリです。

0グッド

0クリップ

投稿2020/04/30 00:14

編集2020/04/30 05:45

発生している問題

Electron-builderで以下のエラーが発生しています。React.jsのプログラムなのですが、Pythonのエラーが出てしまいます。

(node:18912) ExperimentalWarning: The fs.promises API is experimental • electron-builder version=22.6.0 os=10.0.18362 • description is missed in the package.json appPackageFile=C:\xampp\htdoc s\react_todo\package.json • writing effective config file=dist\builder-effective-config.yaml • rebuilding native dependencies dependencies=fsevents@1.2.12 platform=wi n32 arch=x64 ⨯ cannot execute cause=exit status 1 out= > fsevents@1.2.12 install C:\xampp\htdocs\react_todo\node_modules\fseven ts > node-gyp rebuild C:\xampp\htdocs\react_todo\node_modules\fsevents>if not defined npm_conf ig_node_gyp (node "C:\Program Files\nodejs\node_modules\npm\node_modules\npm -lifecycle\node-gyp-bin\....\node_modules\node-gyp\bin\node-gyp.js" rebuil d ) else (node "C:\Program Files\nodejs\node_modules\npm\node_modules\node- gyp\bin\node-gyp.js" rebuild ) errorOut=gyp ERR! configure error gyp ERR! stack Error: Command failed: C:\Users***\anaconda3\python. EXE -c import sys; print "%s.%s.%s" % sys.version_info[:3]; gyp ERR! stack File "<string>", line 1 gyp ERR! stack import sys; print "%s.%s.%s" % sys.version_info[:3]; gyp ERR! stack ^ gyp ERR! stack SyntaxError: invalid syntax gyp ERR! stack gyp ERR! stack at ChildProcess.exithandler (child_process.js:294:12) gyp ERR! stack at ChildProcess.emit (events.js:198:13) gyp ERR! stack at maybeClose (internal/child_process.js:982:16) gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/chil d_process.js:259:5) gyp ERR! System Windows_NT 10.0.18362 gyp ERR! command "C:\Program Files\nodejs\node.exe" "C:\Program File s\nodejs\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js" "reb uild" gyp ERR! cwd C:\xampp\htdocs\react_todo\node_modules\fsevents gyp ERR! node -v v10.16.3 gyp ERR! node-gyp -v v3.8.0 gyp ERR! not ok npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! fsevents@1.2.12 install: `node-gyp rebuild` npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the fsevents@1.2.12 install script. npm ERR! This is probably not a problem with npm. There is likely additi onal logging output above. npm ERR! A complete log of this run can be found in: npm ERR! C:\Users****\AppData\Roaming\npm-cache\_logs\2020-04-30 T00_08_17_476Z-debug.log command='C:\Program Files\nodejs\node.exe' 'C:\Program F iles\nodejs\node_modules\npm\bin\npm-cli.js' rebuild fsevents@1.2.12 workingDir= npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! react_todo@1.0.0 electron:windows: `electron-builder` npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the react_todo@1.0.0 electron:windows script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above. npm ERR! A complete log of this run can be found in: npm ERR! C:\Users****\AppData\Roaming\npm-cache\_logs\2020-04-30T00_ 08_17_541Z-debug.log

追記

どうやらpython3が原因のようです。
windows-build-toolsでpython2.7とVisual Studio Build Toolsをインストール中です。
しかし代わりに[Still waiting for installer log file]から長時間フリーズ中
です。

追記2

python2.7とvisual studio Build Toolsのインストール,node_modulesの再インストールによってエラーが表示されなくなりました。
代わりに、

packaging platform=win32 arch=x64 electron=8.2.4 appoutDir=dist\win-unpacked

辺りから全く進まない状態です

気になる質問をクリップする

クリップした質問は、後からいつでもMYページで確認できます。

またクリップした質問に回答があった際、通知やメールを受け取ることができます。

バッドをするには、ログインかつ

こちらの条件を満たす必要があります。

guest

回答1

0

ベストアンサー

windows-build-toolsでこの問題については解決できました

投稿2020/04/30 07:53

退会済みユーザー

退会済みユーザー

総合スコア0

バッドをするには、ログインかつ

こちらの条件を満たす必要があります。

あなたの回答

tips

太字

斜体

打ち消し線

見出し

引用テキストの挿入

コードの挿入

リンクの挿入

リストの挿入

番号リストの挿入

表の挿入

水平線の挿入

プレビュー

15分調べてもわからないことは
teratailで質問しよう!

ただいまの回答率
85.49%

質問をまとめることで
思考を整理して素早く解決

テンプレート機能で
簡単に質問をまとめる

質問する

関連した質問