我有一个角度的项目试图在windows应用程序中运行。项目包括火力点、电子。我正在尝试构建和发布windows桌面应用程序,但它失败了,出现了许多错误
package.json
"@angular/cdk": "~7.3.2",
"@angular/common": "^7.2.4",
"@angular/compiler": "^7.2.4",
"@angular/core": "^7.2.4",
"@angular/fire": "^5.2.1",
"@angular/flex-layout": "^7.0.0-beta.23",
"@angular/forms": "^7.2.4",
"@angular/http": "^7.2.4",
"@angular/material": "^7.0.2",
"@angular/platform-browser": "^7.2.4",
"@angular/platform-browser-dynamic": "^7.2.4",
"firebase": "^6.4.0",
*dev dependencies*
"@angular-devkit/build-angular": "^0.13.8",
"@angular/cli": "^7.3.9",
"@angular/compiler-cli": "^7.2.6",
"@angular/language-service": "^7.2.4",
"@types/jasmine": "~3.3.8",
"@types/jasminewd2": "~2.0.3",
"@types/node": "^11.9.3",
"codelyzer": "~4.5.0",
"electron": "^6.0.10",
"electron-builder": "^21.2.0",
"jasmine-core": "~3.3.0",
"jasmine-spec-reporter": "~4.2.1",
"karma": "^4.0.1",
"karma-chrome-launcher": "~2.2.0",
"karma-cli": "~2.0.0",
"karma-coverage-istanbul-reporter": "^2.0.4",
"karma-jasmine": "~2.0.1",
"karma-jasmine-html-reporter": "^1.0.0",
"protractor": "~5.4.0",
"ts-node": "~8.0.2",
"tslint": "~5.12.1",
"typescript": "~3.2.4"
为电子建设和出版我使用
electron-builder build --win --publish never
当我执行上面的命令时,我得到了下面的日志
electron-builder version=21.2.0 os=10.0.18362
description is missed in the package.json appPackageFile=C:\User\example\package.json
author is missed in the package.json appPackageFile=C:\User\example\package.json
rebuilding native dependencies dependencies=grpc@1.23.3 platform=win32 arch=x64
⨯ cannot execute cause=exit status 1
out=
> grpc@1.23.3 install C:\User\example\node_modules\grpc
> node-pre-gyp install --fallback-to-build --library=static_library
Failed to execute 'C:\Program Files\nodejs\node.exe C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js configure --fallback-to-build --library=static_library --module=C:\Users\Sandeep.Lagishetty\Desktop\TextusUI\desktop-app-demo\beetextui\node_modules\grpc\src\node\extension_binary\electron-v6.1-win32-x64-unknown\grpc_node.node --module_name=grpc_node --module_path=C:\Users\Sandeep.Lagishetty\Desktop\TextusUI\desktop-app-demo\beetextui\node_modules\grpc\src\node\extension_binary\electron-v6.1-win32-x64-unknown --napi_version=5 --node_abi_napi=napi --napi_build_version=0 --node_napi_label=electron-v6.1' (1)
errorOut=node-pre-gyp WARN Using request for node-pre-gyp https download
node-pre-gyp WARN Tried to download(404): https://node-precompiled-binaries.grpc.io/grpc/v1.23.3/electron-v6.1-win32-x64-unknown.tar.gz
node-pre-gyp WARN Pre-built binaries not found for grpc@1.23.3 and electron@6.1.4 (electron-v6.1 ABI, unknown) (falling back to source compile with node-gyp)
gyp ERR! find VS
gyp ERR! find VS msvs_version not set from command line or npm config
gyp ERR! find VS VCINSTALLDIR not set, not running in VS Command Prompt
gyp ERR! find VS could not use PowerShell to find Visual Studio 2017 or newer
gyp ERR! find VS looking for Visual Studio 2015
gyp ERR! find VS - not found
gyp ERR! find VS looking for Visual Studio 2013
gyp ERR! find VS - not found
gyp ERR! find VS
gyp ERR! find VS **************************************************************
gyp ERR! find VS You need to install the latest version of Visual Studio
gyp ERR! find VS including the "Desktop development with C++" workload.
gyp ERR! find VS For more information consult the documentation at:
gyp ERR! find VS https://github.com/nodejs/node-gyp#on-windows
gyp ERR! find VS **************************************************************
gyp ERR! find VS
gyp ERR! configure error
gyp ERR! stack Error: Could not find any Visual Studio installation to use
gyp ERR! stack at VisualStudioFinder.fail (C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\find-visualstudio.js:121:47)
gyp ERR! stack at C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\find-visualstudio.js:74:16
gyp ERR! stack at C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\find-visualstudio.js:372:16
gyp ERR! stack at C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\util.js:54:7
gyp ERR! stack at C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\util.js:33:16
gyp ERR! stack at ChildProcess.exithandler (child_process.js:302:5)
gyp ERR! stack at ChildProcess.emit (events.js:210:5)
gyp ERR! stack at maybeClose (internal/child_process.js:1021:16)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:283:5)
gyp ERR! System Windows_NT 10.0.18362
gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js" "configure" "--fallback-to-build" "--library=static_library" "--module=C:\\Users\\Sandeep.Lagishetty\\Desktop\\TextusUI\\desktop-app-demo\\beetextui\\node_modules\\grpc\\src\\node\\extension_binary\\electron-v6.1-win32-x64-unknown\\grpc_node.node" "--module_name=grpc_node" "--module_path=C:\\Users\\Sandeep.Lagishetty\\Desktop\\TextusUI\\desktop-app-demo\\beetextui\\node_modules\\grpc\\src\\node\\extension_binary\\electron-v6.1-win32-x64-unknown" "--napi_version=5" "--node_abi_napi=napi" "--napi_build_version=0" "--node_napi_label=electron-v6.1"
gyp ERR! cwd C:\Users\Sandeep.Lagishetty\Desktop\TextusUI\desktop-app-demo\beetextui\node_modules\grpc
gyp ERR! node -v v12.13.0
gyp ERR! node-gyp -v v5.0.5
gyp ERR! not ok
node-pre-gyp ERR! build error
node-pre-gyp ERR! stack Error: Failed to execute 'C:\Program Files\nodejs\node.exe C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js configure --fallback-to-build --library=static_library --module=C:\Users\Sandeep.Lagishetty\Desktop\TextusUI\desktop-app-demo\beetextui\node_modules\grpc\src\node\extension_binary\electron-v6.1-win32-x64-unknown\grpc_node.node --module_name=grpc_node --module_path=C:\User\example\node_modules\grpc\src\node\extension_binary\electron-v6.1-win32-x64-unknown --napi_version=5 --node_abi_napi=napi --napi_build_version=0 --node_napi_label=electron-v6.1' (1)
node-pre-gyp ERR! stack at ChildProcess.<anonymous> (C:\User\example\node_modules\grpc\node_modules\node-pre-gyp\lib\util\compile.js:83:29)
node-pre-gyp ERR! stack at ChildProcess.emit (events.js:210:5)
node-pre-gyp ERR! stack at maybeClose (internal/child_process.js:1021:16)
node-pre-gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:283:5)
node-pre-gyp ERR! System Windows_NT 10.0.18362
node-pre-gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "C:\User\example\\node_modules\\grpc\\node_modules\\node-pre-gyp\\bin\\node-pre-gyp" "install""--fallback-to-build" "--library=static_library"
node-pre-gyp ERR! cwd C:\User\examplebeetextui\node_modules\grpc
node-pre-gyp ERR! node -v v12.13.0
node-pre-gyp ERR! node-pre-gyp -v v0.13.0
node-pre-gyp ERR! not ok
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! grpc@1.23.3 install: `node-pre-gyp install --fallback-to-build --library=static_library`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the grpc@1.23.3 install 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\2019-11-08T08_21_02_233Z-debug.log
command='C:\Program Files\nodejs\node.exe' 'C:\Program Files\nodejs\node_modules\npm\bin\npm-cli.js' rebuild grpc@1.23.3
workingDir=
npm错误!代码ELIFECYCLE npm错误!错误1 npm错误!ExampleApp包:Electronic-Builder build--win--publish never
npm err!退出状态%1 npm错误!npm错误!ExampleApp包脚本失败。npm错误!这可能不是NPM的问题。上面可能有其他日志记录输出。
npm错误!此运行的完整日志可以在:npm err!C:\users\appdata\roaming\npm-cache_logs\2019-11-08t0821_02_483z-debug.log
错误表示需要windows-build-tools
。
Error logs将您引导到node-gyp存储库,从那里您可以找到关于如何安装的指令。安装windows-build-tools
后重试。
我正在尝试安装构建工具26.0.2和同步项目 我单击“安装构建工具26.0.2和同步项目”,但仍然失败。。。从外部链接下载。。但我不知道我把它放在哪里了。那么,我该怎么办?谢谢 图1图2
//我有这个问题,我不能解决它,我尝试了4天,但这对我作为初学者来说太难了Gjvkhkbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb
本文向大家介绍解决Android中自定义DialogFragment解决宽度和高度问题,包括了解决Android中自定义DialogFragment解决宽度和高度问题的使用技巧和注意事项,需要的朋友参考一下 关于详解Android应用中DialogFragment的基本用法,大家可以参考下。 1、 概述 DialogFragment在android 3.0时被引入。是一种特殊的Fragment,用
问题内容: 我该如何克服Java android中双精度乘法的精度问题?请注意,我正在将字符串值转换为double值。 例如:当我将两个double值相乘时: 我得到以下结果:0.8999999999999999 我得到的一些结果是。 0.6 * 3 = 1.7999999999999998; 0.2 * 0.2 = 0.04000000000000001; 等等 除了上述结果外,我想得到以下结果
我正在用Java和为我的GRPC api构建一个客户端。网我想了解java和之间是否有任何映射。net库。我可以看到google protobuf库与。net和java世界。例如3.19。x版本是java和中最新的版本之一。网络世界。https://mvnrepository.com/artifact/com.google.protobuf/protobuf-java 当涉及到使用的grpc库时,
问题内容: 我正在尝试更新我的棱角分明的版本,而且我认为凉亭发疯了。 我的部门: 重要的是:所有的角度模块都是1.2.0-rc.2版本 但是当做 结果如下: 鲍尔似乎认为角度方案1.2.0-rc2需要角度1.0.8 … 这实际上只是错误的:https : //github.com/angular/bower-angular- scenario/tree/v1.2.0-rc.2 bower.json