在vue项目中运行npm install时

时间:2019-11-30 13:31:11

标签: npm vuejs2

node-pre-gyp WARN使用对node-pre-gyp的请求https下载node-pre-gyp WARN试图下载(404):https://node-precompiled-binaries.grpc.io/grpc/v1.19.0/node-v72-win32-x64-unknown.tar.gz node-pre-gyp WARN找不到预编译的二进制文件grpc@1.19.0和node@12.13.1(node-v72 ABI,未知)(使用node-gyp编译回源代码)gyp ERR!找到VS gyp ERR!找到未从命令行或npm config gyp ERR设置的VS msvs_version!发现未设置VS VCINSTALLDIR,未在VS命令提示符下运行gyp ERR! find VS无法使用PowerShell查找Visual Studio 2017或更高版本的gyp ERR!找到VS,寻找Visual Studio 2015 gy ERR!找到VS-找不到gyp ERR!发现VS不在寻找VS2013,因为仅支持Node.js 8 gyp ERR!找到VS gyp ERR!找到VS **************************************************** ************** gyp错误!找到VS您需要安装Visual Studio gyp ERR的最新版本!找到包括“使用C ++进行桌面开发”工作负载的VS。糟糕!查找VS有关更多信息,请参考以下文档:gyp ERR!找到VS https://github.com/nodejs/node-gyp#on-windows gyp错误!找到VS **************************************************** ************** gyp错误!找到VS gyp ERR!配置错误gyp ERR!堆栈错误:找不到任何Visual Studio安装来使用gyp ERR!堆栈在VisualStudioFinder.fail(C:\ Program Files \ nodejs \ node_modules \ npm \ node_modules \ node-gyp \ lib \ find-visualstudio.js:121:47)gyp ERR!堆栈在C:\ Program Files \ nodejs \ node_modules \ npm \ node_modules \ node-gyp \ lib \ find-visualstudio.js:74:16 gyp ERR!堆栈在VisualStudioFinder.findVisualStudio2013(C:\ Program Files \ nodejs \ node_modules \ npm \ node_modules \ node-gyp \ lib \ find-visualstudio.js:351:14)gyp ERR!堆栈在C:\ Program Files \ nodejs \ node_modules \ npm \ node_modules \ node-gyp \ lib \ find-visualstudio.js:70:14 gyp ERR!堆栈在C:\ Program Files \ nodejs \ node_modules \ npm \ node_modules \ node-gyp \ lib \ find-visualstudio.js:372:16 gyp ERR!堆栈在C:\ Program Files \ nodejs \ node_modules \ npm \ node_modules \ node-gyp \ lib \ util.js:54:7 gyp ERR!堆栈在C:\ Program Files \ nodejs \ node_modules \ npm \ node_modules \ node-gyp \ lib \ util.js:33:16 gyp ERR!堆栈在ChildProcess.exithandler(child_process.js:302:5)gyp ERR!堆栈在ChildProcess.emit(events.js:210:5)gyp ERR!堆栈在也许关闭(internal / child_process.js:1021:16)gyp错误!系统Windows_NT 6.1.7601 gyp ERR!命令“ C:\ Program Files \ nodejs \ node.exe”“ C:\ Program Files \ nodejs \ node_modules \ npm \ node_modules \ node-gyp \ bin \ node-gyp.js”“配置”“ --fallback-to -build“” --library = static_library“” --module = C:\ Users \ racksoftwares \ Desktop \ vueapp \ node_modules \ grpc \ src \ node \ extension_binary \ node-v72-win32-x64-unknown \ grpc_node.node“ “ --module_name = grpc_node”“ --module_path = C:\ Users \ racksoftwares \ Desktop \ vueapp \ node_modules \ grpc \ src \ node \ extension_binary \ node-v72-win32-x64-unknown”“ --napi_version = 5” “ --node_abi_napi = napi”“ --napi_build_version = 0”“ --node_napi_label = node-v72” gyp错误! CWD C:\ Users \ racksoftwares \ Desktop \ vueapp \ node_modules \ grpc gyp ERR!节点-v v12.13.1 gyp ERR! node-gyp -v v5.0.5 gyp错误!节点预gyp ERR错误!生成错误的节点预石膏错误!堆栈错误:无法执行'C:\ Program Files \ nodejs \ node.exe C:\ Program Files \ nodejs \ node_modules \ npm \ node_modules \ node-gyp \ bin \ node-gyp.js configure --fallback-to-构建--library = static_library --module = C:\ Users \ racksoftwares \ Desktop \ vueapp \ node_modules \ grpc \ src \ node \ extension_binary \ node-v72-win32-x64-unknown \ grpc_node.node --module_name = grpc_node- -module_path = C:\ Users \ racksoftwares \ Desktop \ vueapp \ node_modules \ grpc \ src \ node \ extension_binary \ node-v72-win32-x64-unknown --napi_version = 5 --node_abi_napi = napi --napi_build_version = 0- node_napi_label = node-v72'(1)节点预石膏错误!堆栈在ChildProcess上。 (C:\ Users \ racksoftwares \ Desktop \ vueapp \ node_modules \ grpc \ node_modules \ node-pre-gyp \ lib \ util \ compile.js:83:29)node-pre-gyp ERR!堆栈在ChildProcess.emit(events.js:210:5)节点预gyp ERR!堆栈可能在mayyClose(internal / child_process.js:1021:16)节点预gyp错误!堆栈位于Process.ChildProcess._handle.onexit(internal / child_process.js:283:5)节点预gyp错误!系统Windows_NT 6.1.7601 node-gyp ERR!命令“ C:\ Program Files \ nodejs \ node.exe”“ C:\ Users \ racksoftwares \ Desktop \ vueapp \ node_modules \ grpc \ node_modules \ node-pre-gyp \ bin \ node-pre-gyp”“安装”“ --fallback-to-build“” --library = static_library“节点预gyp错误! CWD C:\ Users \ racksoftwares \ Desktop \ vueapp \ node_modules \ grpc node-gyp ERR!节点-v v12.13.1节点预gyp错误!节点预石膏-v v0.12.0节点预石膏ERR!不正确无法执行'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 \ racksoftwares \ Desktop \ vueapp \ node_modules \ grpc \ src \ node \ extension_binary \ node-v72-win32-x64-unknown \ grpc_node.node --module_name = grpc_node- module_path = C:\ Users \ racksoftwares \ Desktop \ vueapp \ node_modules \ grpc \ src \ node \ extension_binary \ node-v72-win32-x64-unknown --napi_version = 5 --node_abi_napi = napi --napi_build_version = 0 --node_napi_label = node-v72'(1)npm警告可选的跳过可选依赖项:fsevents@1.2.7(node_modules \ fsevents):npm WARN notsup跳过可选依赖项:fsevents@1.2.7不受支持的平台:想要的{“ os”:“ darwin “,” arch“:” any“}(当前:{” os“:” win32“,” arch“:” x64“})npm ERR!代码ELIFECYCLE npm ERR! errno 1 npm错误! grpc@1.19.0安装:node-pre-gyp install --fallback-to-build --library=static_library npm错误!退出状态1 npm ERR! npm ERR!在grpc@1.19.0安装脚本上失败。 npm ERR! npm可能不是问题。上面可能还有其他日志记录输出。 npm ERR!可以在以下位置找到该运行的完整日志:npm ERR! C:\ Users \ racksoftwares \ AppData \ Roaming \ npm-cache_logs \ 2019-11-30T13_24_00_614Z-debug.log

1 个答案:

答案 0 :(得分:0)

您正在尝试使用不支持所使用的Node版本的gRPC版本。要解决此问题,请升级到gRPC的新版本或降级到Node的旧版本。