-
Notifications
You must be signed in to change notification settings - Fork 51
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
_electronLog2.default.findLogPath 错误 #8
Comments
错误是来自 还有把electron 相关的包写进package.js里面把,运行npm start 提示少好几个包呢 |
@miaosun009 为什么把package分离成两部分请仔细看下文档说明 sorrycc/blog#13 |
@smackgg 还能碰到个活人,真感谢你, 顺便问一下,打包时候遇到的错误, PS D:\node\edva> npm run pack
Creating an optimized production build... Compiled successfully. File sizes after gzip: 83.5 KB app\dist\index.js 输出路径: D:\node\edva\app\dist
× Rebuild Failed Error: ENOENT: no such file or directory, open 'D:\node\edva\app\node_modules\package.json' 这是怎么回事呢? |
还是看文档 sorrycc/blog#13 |
@miaosun009 最后问题是怎么解决的?同样的问题,添加镜像,重新装包还是报同样的错误 |
请教下,那个问题是怎么解决的,我也遇到了同样的问题,把那个镜像加上,同样的错误,求赐教!补充一下,我这里的操作系统是win7,64位 |
刚才路径修改了下,可以了。electron-rebuild -m ./app/node_modules 修改成electron-rebuild -m ./app/ |
操作系统:win10
node:7.71
electron:1.6.8
运行 npm start 的时候出现以下错误
PS C:\Users\miaosun> d:
PS D:> cd node/edva
PS D:\node\edva> npm start
[11:26:26:0115] [info] (main/index) >>>>>>>>>>>>>>>>>>
[11:26:26:0130] [info] (main/index) app start
App threw an error during load
TypeError: _electronLog2.default.findLogPath is not a function
at Object. (D:\node\edva\app\dist\main.js:85:81)
at webpack_require (D:\node\edva\app\dist\main.js:20:30)
at D:\node\edva\app\dist\main.js:40:18
at Object. (D:\node\edva\app\dist\main.js:43:10)
at Object. (D:\node\edva\app\dist\main.js:293:3)
at Module._compile (module.js:571:32)
at Object.Module._extensions..js (module.js:580:10)
at Module.load (module.js:488:32)
at tryModuleLoad (module.js:447:12)
at Function.Module._load (module.js:439:3)
The text was updated successfully, but these errors were encountered: