问题描述
环境
- Windows 10
- 电子伪造:6.0.0-beta.51
问题
我的电子应用使用DF <- structure(list(date = structure(c(18262,18263,18264,18265,18266,18267,18268,18269,18270,18271,18272,18273,18274,18275,18276,18277,18278,18279,18280,18281,18282,18283,18284,18285,18286,18287,18288,18289,18290,18291,18292,18293,18294,18295,18296,18297,18298,18299,18300,18301,18302,18303,18304,18305,18306,18307,18308,18309,18310,18311,18312,18313,18314,18315,18316,18317,18318,18319,18320,18321,18322,18323,18324,18325,18326,18327,18328,18329,18330,18331,18332,18333,18334,18335,18336,18337,18338,18339,18340,18341,18342,18343,18344,18345,18346,18347,18348,18349,18350,18351,18352,18353,18354,18355,18356,18357,18358,18359,18360,18361,18362,18363,18364,18365,18366,18367,18368,18369,18370,18371,18372,18373,18374,18375,18376,18377,18378,18379,18380,18381,18382,18383,18384,18385,18386,18387,18388,18389,18390,18391,18392,18393,18394,18395,18396,18397,18398,18399,18400,18401,18402,18403,18404,18405,18406,18407,18408,18409,18410,18411,18412,18413,18414,18415,18416,18417,18418,18419,18420,18421,18422,18423,18424,18425,18426,18427,18428,18429,18430,18431,18432,18433,18434,18435,18436,18437,18438,18439,18440,18441,18442,18443,18444,18445,18446,18447,18448,18449,18450,18451,18452,18453,18454,18455,18456,18457,18458,18459,18460,18461,18462,18463,18464,18465,18466,18467,18468,18469,18470,18471,18472,18473,18474,18475,18476,18477,18478,18479,18480,18481,18482,18483,18484,18485,18486,18487,18488,18489,18490,18491,18492,18493,18494,18495,18496,18497,18498,18499,18500,18501,18502,18503,18504,18505,18506,18507,18508,18509,18510,18511,18512,18513,18514,18515,18516,18517,18518,18519,18520,18521,18522,18523,18524,18525,18526,18527,18528,18529,18530,18531,18532,18533,18534,18535,18536,18537,18538,18539,18540,18541,18542,18543,18544,18545,18546,18547,18548,18549,18550,18551,18552,18553,18554,18555,18556,18557,18558,18559,18560,18561,18562,18563,18564,18565,18566,18567,18568,18569,18570,18571,18572),class = "Date"),country = c("A","A","A"),value = c(3,3,2,0.2,4,0),id = c("Cv","Cv","Cv")),class = "data.frame",row.names = c(NA,-311L))
进行包装。它可以在macOS上很好地构建,但是有一些错误,我无法通过搜索关键字找到任何线索
electron-forge
使用npm日志
G:\myproj>npm run make
> [email protected] make G:\myproj
> electron-forge make
An unhandled exception has occurred inside Forge:
Cannot find module '../innerSubscribe'
Require stack:
- G:\myproj\node_modules\rxjs\internal\operators\mergeMap.js
- G:\myproj\node_modules\rxjs\internal\operators\mergeAll.js
- G:\myproj\node_modules\rxjs\internal\operators\concatAll.js
- G:\myproj\node_modules\rxjs\internal\observable\concat.js
- G:\myproj\node_modules\rxjs\index.js
- G:\myproj\node_modules\spawn-rx\lib\src\index.js
- G:\myproj\node_modules\electron-rebuild\lib\src\rebuild.js
- G:\myproj\node_modules\electron-rebuild\lib\src\main.js
- G:\myproj\node_modules\@electron-forge\core\dist\util\rebuild.js
- G:\myproj\node_modules\@electron-forge\core\dist\api\package.js
- G:\myproj\node_modules\@electron-forge\core\dist\api\make.js
- G:\myproj\node_modules\@electron-forge\core\dist\api\index.js
- G:\myproj\node_modules\@electron-forge\cli\dist\util\check-system.js
- G:\myproj\node_modules\@electron-forge\cli\dist\electron-forge.js
Error: Cannot find module '../innerSubscribe'
Require stack:
- G:\myproj\node_modules\rxjs\internal\operators\mergeMap.js
- G:\myproj\node_modules\rxjs\internal\operators\mergeAll.js
- G:\myproj\node_modules\rxjs\internal\operators\concatAll.js
- G:\myproj\node_modules\rxjs\internal\observable\concat.js
- G:\myproj\node_modules\rxjs\index.js
- G:\myproj\node_modules\spawn-rx\lib\src\index.js
- G:\myproj\node_modules\electron-rebuild\lib\src\rebuild.js
- G:\myproj\node_modules\electron-rebuild\lib\src\main.js
- G:\myproj\node_modules\@electron-forge\core\dist\util\rebuild.js
- G:\myproj\node_modules\@electron-forge\core\dist\api\package.js
- G:\myproj\node_modules\@electron-forge\core\dist\api\make.js
- G:\myproj\node_modules\@electron-forge\core\dist\api\index.js
- G:\myproj\node_modules\@electron-forge\cli\dist\util\check-system.js
- G:\myproj\node_modules\@electron-forge\cli\dist\electron-forge.js
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:965:15)
at Function.Module._load (internal/modules/cjs/loader.js:841:27)
at Module.require (internal/modules/cjs/loader.js:1025:19)
at require (internal/modules/cjs/helpers.js:72:18)
at Object.<anonymous> (G:\myproj\node_modules\rxjs\src\internal\operators\mergeMap.ts:8:1)
at Module._compile (internal/modules/cjs/loader.js:1137:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1157:10)
at Module.load (internal/modules/cjs/loader.js:985:32)
at Function.Module._load (internal/modules/cjs/loader.js:878:14)
at Module.require (internal/modules/cjs/loader.js:1025:19)
at require (internal/modules/cjs/helpers.js:72:18)
at Object.<anonymous> (G:\myproj\node_modules\rxjs\src\internal\operators\mergeAll.ts:2:1)
at Module._compile (internal/modules/cjs/loader.js:1137:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1157:10)
at Module.load (internal/modules/cjs/loader.js:985:32)
at Function.Module._load (internal/modules/cjs/loader.js:878:14)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] make: `electron-forge make`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] make 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\me\AppData\Roaming\npm-cache\_logs\2020-08-27T10_09_38_091Z-debug.log
我用Google搜索0 info it worked if it ends with ok
1 verbose cli [
1 verbose cli 'C:\\Apps\\nodejs\\node.exe',1 verbose cli 'C:\\Apps\\nodejs\\node_modules\\npm\\bin\\npm-cli.js',1 verbose cli 'run',1 verbose cli 'make'
1 verbose cli ]
2 info using [email protected]
3 info using [email protected]
4 verbose run-script [ 'premake','make','postmake' ]
5 info lifecycle [email protected]~premake: [email protected]
6 info lifecycle [email protected]~make: [email protected]
7 verbose lifecycle [email protected]~make: unsafe-perm in lifecycle true
8 verbose lifecycle [email protected]~make: PATH: C:\Apps\nodejs\node_modules\npm\node_modules\npm-lifecycle\node-gyp-bin;G:\p4-mmt\mam\src\mam-hub\node_modules\.bin;C:\Program Files (x86)\Windows Kits\10\bin\10.0.17763.0\x64;C:\Program Files (x86)\Windows Kits\10\bin\x64;C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\\MSBuild\15.0\bin;C:\WINDOWS\Microsoft.NET\Framework64\v4.0.30319;C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\;C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\Tools\;C:\Apps\ConEmu\ConEmu\Scripts;C:\Apps\ConEmu;C:\Apps\ConEmu\ConEmu;C:\Python\python38\Scripts\;C:\Python\python38\;C:\Python27\;C:\Python27\Scripts;D:\Downloads\winflexbison-master\bison;C:\Python\python37-32\Scripts\;C:\Python\python37-32\;C:\Apps\ImageMagick;C:\Apps\ActiveTCL\bin;C:\Python\python37\Scripts\;C:\Python\python37\;C:\Program Files\Microsoft MPI\Bin\;C:\Program Files (x86)\Intel\iCLS Client\;C:\Program Files\Intel\iCLS Client\;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files (x86)\NVIDIA Corporation\physx\Common;C:\Apps\csound6_x64\bin;C:\Program Files\dotnet\;C:\Apps\WinMerge;C:\Apps\NextBuild;C:\ProgramData\chocolatey\bin;C:\Program Files\NVIDIA Corporation\NVIDIA NvDLISR;C:\Apps\Pandoc\;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\WINDOWS\System32\OpenSSH\;C:\Apps\Perforce\;C:\Apps\Mercurial\;C:\Apps\_shortcuts;C:\Apps\Android\sdk\platform-tools;C:\Apps\CMake\bin;C:\Apps\LLVM\bin;E:\_dev\Qt\5.13.0\msvc2017_64\bin;C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.16.27023\bin\Hostx64\x64;C:\Apps\ImageMagick;C:\Apps\nodejs\;C:\Apps\Yarn\bin\;C:\Python\python37-32\Scripts\;C:\Python\python37-32\;C:\Users\me\AppData\Local\Microsoft\WindowsApps;C:\Program Files\JetBrains\PyCharm Community Edition 2019.3.4\bin;;C:\Apps\Git\bin;C:\tools\dart-sdk\bin;C:\Users\me\AppData\Roaming\Pub\Cache\bin;C:\Program Files (x86)\Windows Kits\10\bin\10.0.17763.0\x64;C:\Apps\Nmap;C:\Apps\VSCode\bin;C:\Program Files\OpenSSL-Win64\bin;C:\Users\me\AppData\Roaming\npm;C:\Apps\nodejs\;C:\Users\me\AppData\Local\Yarn\bin
9 verbose lifecycle [email protected]~make: CWD: G:\p4-mmt\mam\src\mam-hub
10 silly lifecycle [email protected]~make: Args: [ '/d /s /c','electron-forge make' ]
11 silly lifecycle [email protected]~make: Returned: code: 1 signal: null
12 info lifecycle [email protected]~make: Failed to exec make script
13 verbose stack Error: [email protected] make: `electron-forge make`
13 verbose stack Exit status 1
13 verbose stack at EventEmitter.<anonymous> (C:\Apps\nodejs\node_modules\npm\node_modules\npm-lifecycle\index.js:332:16)
13 verbose stack at EventEmitter.emit (events.js:315:20)
13 verbose stack at ChildProcess.<anonymous> (C:\Apps\nodejs\node_modules\npm\node_modules\npm-lifecycle\lib\spawn.js:55:14)
13 verbose stack at ChildProcess.emit (events.js:315:20)
13 verbose stack at maybeClose (internal/child_process.js:1021:16)
13 verbose stack at Process.ChildProcess._handle.onexit (internal/child_process.js:286:5)
14 verbose pkgid [email protected]
15 verbose cwd G:\p4-mmt\mam\src\mam-hub
16 verbose Windows_NT 10.0.18362
17 verbose argv "C:\\Apps\\nodejs\\node.exe" "C:\\Apps\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "run" "make"
18 verbose node v12.18.3
19 verbose npm v6.14.6
20 error code ELIFECYCLE
21 error errno 1
22 error [email protected] make: `electron-forge make`
22 error Exit status 1
23 error Failed at the [email protected] make script.
23 error This is probably not a problem with npm. There is likely additional logging output above.
24 verbose exit [ 1,true ]
,但结果很少。因此,我怀疑这只是由其他原因引起的虚假错误。
这是我的innerSubscribe
package.json
期望
我希望给定我的{
"name": "myproj","productName": "myproj","version": "0.5.0","description": "my project","main": "src/main.js","scripts": {
"start": "electron-forge start","package": "electron-forge package","make": "electron-forge make","publish": "electron-forge publish","lint": "echo \"No linting configured\""
},"keywords": [],"author": {
"name": "me","email": "[email protected]"
},"license": "MIT","config": {
"forge": {
"packagerConfig": {
"icon": "src/images/mam"
},"makers": [
{
"name": "@electron-forge/maker-squirrel","config": {
"name": "mam_hub"
}
},{
"name": "@electron-forge/maker-zip","platforms": [
"darwin"
]
},{
"name": "@electron-forge/maker-deb","config": {}
},{
"name": "@electron-forge/maker-rpm","config": {}
}
]
}
},"dependencies": {
"electron-squirrel-startup": "^1.0.0","zeromq": "^6.0.0-beta.6"
},"devDependencies": {
"@electron-forge/cli": "6.0.0-beta.52","@electron-forge/maker-deb": "6.0.0-beta.52","@electron-forge/maker-rpm": "6.0.0-beta.52","@electron-forge/maker-squirrel": "6.0.0-beta.52","@electron-forge/maker-zip": "6.0.0-beta.52","electron": "9.0.5"
}
}
,该包装将在Windows和macOS上都能正常工作。一个月前,情况似乎还不错。不幸的是,我以前没有CI,并且在开始构建CI管道时碰到了这一权利。
问题
我该如何解决?
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)