###前提・実現したいこと
electronパッケージ化でエラーが発生しました。
どうすれば良いでしょうか。
###発生している問題・エラーメッセージ
$ sudo electron-packager . フォルダ名 --platform=darwin,win32,linux --arch=ia32,x64,armv7l --electron-version=1.4.13 Packaging app for platform win32 ia32 using electron v1.4.13 Command failed: npm prune --production npm ERR! Darwin 16.5.0 npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "prune" "--production" npm ERR! node v6.9.4 npm ERR! npm v3.10.10 npm ERR! path /private/tmp/electron-packager/win32-ia32/viewer-win32-ia32/resources/app/package.json npm ERR! code ENOENT npm ERR! errno -2 npm ERR! syscall open npm ERR! enoent ENOENT: no such file or directory, open '/private/tmp/electron-packager/win32-ia32/viewer-win32-ia32/resources/app/package.json' npm ERR! enoent ENOENT: no such file or directory, open '/private/tmp/electron-packager/win32-ia32/viewer-win32-ia32/resources/app/package.json' npm ERR! enoent This is most likely not a problem with npm itself npm ERR! enoent and is related to npm not being able to find a file. npm ERR! enoent npm ERR! Please include the following file with any support request: npm ERR! /private/tmp/electron-packager/win32-ia32/viewer-win32-ia32/resources/app/npm-debug.log
###該当のソースコード
package.json { "name": "アプリ名", "version": "1.0.0", "description": "", "main": "main.js", "scripts": { "test": "echo \"Error: no test specified\" && exit 1" }, "keywords": [], "author": "", "license": "ISC" }
回答2件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2017/06/08 02:27
2017/06/08 02:31 編集