Node.js 无法通过依赖于节点gyp的npm安装程序包

Node.js 无法通过依赖于节点gyp的npm安装程序包,node.js,vue.js,npm,webpack,npm-install,Node.js,Vue.js,Npm,Webpack,Npm Install,每当我试图通过npm在该特定项目上安装任何软件包时,都会出现此错误 *C:\Users\6030213004\Desktop\FAX2>npm install vue2-timepicker --save npm ERR! code 1 npm ERR! path C:\Users\6030213004\Desktop\FAX2\node_modules\libxmljs npm ERR! command failed npm ERR! command C:\Windows\system3

每当我试图通过npm在该特定项目上安装任何软件包时,都会出现此错误

*C:\Users\6030213004\Desktop\FAX2>npm install vue2-timepicker --save
npm ERR! code 1
npm ERR! path C:\Users\6030213004\Desktop\FAX2\node_modules\libxmljs
npm ERR! command failed
npm ERR! command C:\Windows\system32\cmd.exe /d /s /c node-pre-gyp install --fallback-to-build --loglevel http
npm ERR! Failed to execute 'C:\Program Files\nodejs\node.exe C:\Users\6030213004\AppData\Roaming\npm\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js configure --fallback-to-build --loglevel=http --module=C:\Users\6030213004\Desktop\FAX2\node_modules\libxmljs\build\Release\xmljs.node --module_name=xmljs --module_path=C:\Users\6030213004\Desktop\FAX2\node_modules\libxmljs\build\Release --napi_version=7 --node_abi_napi=napi' (1)
npm ERR! node-pre-gyp http GET https://github.com/libxmljs/libxmljs/releases/download/v0.18.8/node-v88-win32-x64.tar.gz
npm ERR! node-pre-gyp http 404 https://github.com/libxmljs/libxmljs/releases/download/v0.18.8/node-v88-win32-x64.tar.gz
npm ERR! node-pre-gyp ERR! Tried to download(404): https://github.com/libxmljs/libxmljs/releases/download/v0.18.8/node-v88-win32-x64.tar.gz 
npm ERR! node-pre-gyp ERR! Pre-built binaries not found for libxmljs@0.18.8 and node@15.7.0 (node-v88 ABI, unknown) (falling back to source compile with node-gyp) 
npm ERR! node-pre-gyp http 404 status code downloading tarball https://github.com/libxmljs/libxmljs/releases/download/v0.18.8/node-v88-win32-x64.tar.gz
npm ERR! gyp info it worked if it ends with ok
npm ERR! gyp info using node-gyp@7.1.2
npm ERR! gyp info using node@15.7.0 | win32 | x64
npm ERR! gyp info ok
npm ERR! gyp ERR! find VS
npm ERR! gyp ERR! find VS msvs_version not set from command line or npm config
npm ERR! gyp ERR! find VS VCINSTALLDIR not set, not running in VS Command Prompt
npm ERR! gyp ERR! find VS could not use PowerShell to find Visual Studio 2017 or newer, try re-running with '--loglevel silly' for more details
npm ERR! gyp ERR! find VS looking for Visual Studio 2015
npm ERR! gyp ERR! find VS - not found
npm ERR! gyp ERR! find VS not looking for VS2013 as it is only supported up to Node.js 8
npm ERR! gyp ERR! find VS 
npm ERR! gyp ERR! find VS **************************************************************
npm ERR! gyp ERR! find VS You need to install the latest version of Visual Studio
npm ERR! gyp ERR! find VS including the "Desktop development with C++" workload.
npm ERR! gyp ERR! find VS For more information consult the documentation at:
npm ERR! gyp ERR! find VS https://github.com/nodejs/node-gyp#on-windows
npm ERR! gyp ERR! find VS **************************************************************
npm ERR! gyp ERR! find VS
npm ERR! gyp ERR! configure error
npm ERR! gyp ERR! stack Error: Could not find any Visual Studio installation to use
npm ERR! gyp ERR! stack     at VisualStudioFinder.fail (C:\Users\6030213004\AppData\Roaming\npm\node_modules\npm\node_modules\node-gyp\lib\find-visualstudio.js:121:47)
npm ERR! gyp ERR! stack     at C:\Users\6030213004\AppData\Roaming\npm\node_modules\npm\node_modules\node-gyp\lib\find-visualstudio.js:74:16
npm ERR! gyp ERR! stack     at VisualStudioFinder.findVisualStudio2013 (C:\Users\6030213004\AppData\Roaming\npm\node_modules\npm\node_modules\node-gyp\lib\find-visualstudio.js:351:14)
npm ERR! gyp ERR! stack     at C:\Users\6030213004\AppData\Roaming\npm\node_modules\npm\node_modules\node-gyp\lib\find-visualstudio.js:70:14
npm ERR! gyp ERR! stack     at C:\Users\6030213004\AppData\Roaming\npm\node_modules\npm\node_modules\node-gyp\lib\find-visualstudio.js:372:16
npm ERR! gyp ERR! stack     at C:\Users\6030213004\AppData\Roaming\npm\node_modules\npm\node_modules\node-gyp\lib\util.js:54:7
npm ERR! gyp ERR! stack     at C:\Users\6030213004\AppData\Roaming\npm\node_modules\npm\node_modules\node-gyp\lib\util.js:33:16
npm ERR! gyp ERR! stack     at ChildProcess.exithandler (node:child_process:340:5)
npm ERR! gyp ERR! stack     at ChildProcess.emit (node:events:379:20)
npm ERR! gyp ERR! stack     at maybeClose (node:internal/child_process:1069:16)
npm ERR! gyp ERR! System Windows_NT 10.0.18363
npm ERR! gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "C:\\Users\\6030213004\\AppData\\Roaming\\npm\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js" "configure" "--fallback-to-build" "--loglevel=http" "--module=C:\\Users\\6030213004\\Desktop\\FAX2\\node_modules\\libxmljs\\build\\Release\\xmljs.node" "--module_name=xmljs" "--module_path=C:\\Users\\6030213004\\Desktop\\FAX2\\node_modules\\libxmljs\\build\\Release" "--napi_version=7" "--node_abi_napi=napi"
npm ERR! gyp ERR! cwd C:\Users\6030213004\Desktop\FAX2\node_modules\libxmljs
npm ERR! gyp ERR! node -v v15.7.0
npm ERR! gyp ERR! node-gyp -v v7.1.2
npm ERR! gyp ERR! not ok
npm ERR! node-pre-gyp ERR! build error
npm ERR! node-pre-gyp ERR! stack Error: Failed to execute 'C:\Program Files\nodejs\node.exe C:\Users\6030213004\AppData\Roaming\npm\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js configure --fallback-to-build --loglevel=http --module=C:\Users\6030213004\Desktop\FAX2\node_modules\libxmljs\build\Release\xmljs.node --module_name=xmljs --module_path=C:\Users\6030213004\Desktop\FAX2\node_modules\libxmljs\build\Release --napi_version=7 --node_abi_napi=napi' (1)
npm ERR! node-pre-gyp ERR! stack     at ChildProcess.<anonymous> (C:\Users\6030213004\Desktop\FAX2\node_modules\node-pre-gyp\lib\util\compile.js:83:29)
npm ERR! node-pre-gyp ERR! stack     at ChildProcess.emit (node:events:379:20)
npm ERR! node-pre-gyp ERR! stack     at maybeClose (node:internal/child_process:1069:16)
npm ERR! node-pre-gyp ERR! stack     at Process.ChildProcess._handle.onexit (node:internal/child_process:300:5)
npm ERR! node-pre-gyp ERR! System Windows_NT 10.0.18363
npm ERR! node-pre-gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "C:\\Users\\6030213004\\Desktop\\FAX2\\node_modules\\node-pre-gyp\\bin\\node-pre-gyp" "install" "--fallback-to-build" "--loglevel" "http"
npm ERR! node-pre-gyp ERR! cwd C:\Users\6030213004\Desktop\FAX2\node_modules\libxmljs
npm ERR! node-pre-gyp ERR! node -v v15.7.0
npm ERR! node-pre-gyp ERR! node-pre-gyp -v v0.9.1
npm ERR! node-pre-gyp ERR! not ok
npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\6030213004\AppData\Local\npm-cache\_logs\2021-04-09T07_54_58_609Z-debug.log*
*C:\Users\6030213004\Desktop\FAX2>npm安装vue2计时器-保存
npm错误!代码1
npm错误!路径C:\Users\603021304\Desktop\FAX2\node\u modules\libxmljs
npm错误!命令失败
npm错误!命令C:\Windows\system32\cmd.exe/d/s/C node pre-gyp install--回退到构建--日志级别http
npm错误!无法执行'C:\Program Files\nodejs\node.exe C:\Users\6030213004\AppData\Roaming\npm\node\U modules\npm\node\U modules\node gyp\bin\node-gyp.js配置--回退到生成--loglevel=http--module=C:\Users\6030213004\Desktop\FAX2\node\U modules\libxmljs\build\Release\xmljs.node--module--module\U name=xmljs--模块\路径=C:\Users\603021304\Desktop\FAX2\node\模块\libxmljs\build\Release--napi\版本=7--node\ abi\ U napi=napi'(1)
npm错误!节点预gyp http GEThttps://github.com/libxmljs/libxmljs/releases/download/v0.18.8/node-v88-win32-x64.tar.gz
npm错误!gyp http 404之前的节点https://github.com/libxmljs/libxmljs/releases/download/v0.18.8/node-v88-win32-x64.tar.gz
npm错误!节点前gyp错误!已尝试下载(404):https://github.com/libxmljs/libxmljs/releases/download/v0.18.8/node-v88-win32-x64.tar.gz 
npm错误!节点前gyp错误!找不到的预构建二进制文件libxmljs@0.18.8及node@15.7.0(node-v88 ABI,未知)(使用node-gyp返回到源代码编译)
npm错误!节点前gyp http 404状态代码下载tarballhttps://github.com/libxmljs/libxmljs/releases/download/v0.18.8/node-v88-win32-x64.tar.gz
npm错误!gyp信息如果以ok结尾,它就起作用了
npm错误!gyp信息使用节点-gyp@7.1.2
npm错误!gyp信息使用node@15.7.0| win32 | x64
npm错误!gyp信息正常
npm错误!哎呀!查找VS
npm错误!哎呀!查找未从命令行或npm配置设置的VS msvs_版本
npm错误!哎呀!查找VS VCINSTALLDIR未设置,未在VS命令提示符下运行
npm错误!哎呀!find VS无法使用PowerShell查找Visual Studio 2017或更高版本,请尝试使用“--loglevel Styly”重新运行以了解更多详细信息
npm错误!哎呀!查找VS查找Visual Studio 2015
npm错误!哎呀!查找VS-未找到
npm错误!哎呀!查找VS不查找VS2013,因为它最多只支持Node.js 8
npm错误!哎呀!查找VS
npm错误!哎呀!查找VS**************************************************************
npm错误!哎呀!查找需要安装最新版本Visual Studio的VS
npm错误!哎呀!查找包含“使用C++进行桌面开发”工作负载的VS。
npm错误!哎呀!查找VS有关更多信息,请参阅以下文档:
npm错误!哎呀!查找VShttps://github.com/nodejs/node-gyp#on-窗户
npm错误!哎呀!查找VS**************************************************************
npm错误!哎呀!查找VS
npm错误!哎呀!配置错误
npm错误!哎呀!堆栈错误:找不到任何要使用的Visual Studio安装
npm错误!哎呀!VisualStudioFinder.fail上的堆栈(C:\Users\603021304\AppData\Roaming\npm\node\u modules\npm\node\u modules\node gyp\lib\find visualstudio.js:121:47)
npm错误!哎呀!堆栈位于C:\Users\603021304\AppData\Roaming\npm\node\u modules\npm\node\u modules\node gyp\lib\find visualstudio.js:74:16
npm错误!哎呀!堆栈位于VisualStudioFinder.FindVisualStudio 2013(C:\Users\603021304\AppData\Roaming\npm\node\U modules\npm\node\U modules\node gyp\lib\find visualstudio.js:351:14)
npm错误!哎呀!堆栈位于C:\Users\603021304\AppData\Roaming\npm\node\u modules\npm\node\u modules\node gyp\lib\find visualstudio.js:70:14
npm错误!哎呀!堆栈位于C:\Users\603021304\AppData\Roaming\npm\node\u modules\npm\node\u modules\node gyp\lib\find visualstudio.js:372:16
npm错误!哎呀!堆栈位于C:\Users\603021304\AppData\Roaming\npm\node\u modules\npm\node\u modules\node gyp\lib\util.js:54:7
npm错误!哎呀!堆栈位于C:\Users\6030213004\AppData\Roaming\npm\node\u modules\npm\node\u modules\node gyp\lib\util.js:33:16
npm错误!哎呀!ChildProcess.exithandler处的堆栈(节点:child_进程:340:5)
npm错误!哎呀!ChildProcess.emit处的堆栈(节点:事件:379:20)
npm错误!哎呀!maybeClose的堆栈(节点:内部/子进程:1069:16)
npm错误!哎呀!系统Windows\u NT 10.0.18363
npm错误!哎呀!命令“C:\\Program Files\\nodejs\\node.exe”“C:\\Users\\603021304\\AppData\\Roaming\\npm\\node\U modules\\npm\\node\U modules\\node gyp\\bin\\node gyp.js”“configure”“--fallback to build”“--loglevel=http”“--module=C:\\Users\\6030213004\\Desktop\\FAX2\\node\U modules\\libxmljs\\build\\Release\\xmljs\\xmljs.node”“--模块名=xmljs”“--module_path=C:\\Users\\603021304\\Desktop\\FAX2\\node_modules\\libxmljs\\build\\Release”“--napi_version=7”“--node_abi_napi=napi”
npm ERR!gyp ERR!cwd C:\Users\603021304\Desktop\FAX2\node\u modules\libxmljs
npm ERR!gyp ERR!节点-v v15.7.0
npm ERR!gyp ERR!节点gyp-v7.1.2
npm错误!gyp错误!不正常
npm错误!节点预gyp错误!生成错误
npm ERR!node pre gyp ERR!堆栈错误:未能执行'C:\Program Files\nodejs\node.exe C:\Users\603021304\AppData\Roaming\npm\node\U modules\npm\node\U modules\node gyp\bin\node-gyp.js configure--fallback to build----loglevel=http--=C:\Users\6030213004\Desktop\FAX2\node\U modules\libxmljs\build\Release\xmljs\xmljs.node----模块名=xmljs--模块e_path=C:\Users\603021304\Desktop\FAX2\node_modules\libxmljs\build\Release--napi_version=7--node_abi_napi=napi'(1)
ChildProcess上的npm ERR!node pre gyp ERR!堆栈。(C:\Users\6030213004\Desktop\FAX2\node\U modules\node pre gyp\lib\util\compile.js:83:29)
ChildProcess.emit上的npm ERR!node pre-gyp ERR!堆栈(节点:事件:379:20)
在maybeClose的npm ERR!节点前gyp ERR!堆栈(节点:内部/子进程:1069:16)
npm ERR!node pre-gyp ERR!在Process.ChildProcess.\u handle.onexit处堆栈(node:internal/child\u Process:300:5)
npm ERR!节点预gyp ERR!系统Windows\u NT 10.0.18363
npm ERR!node pre-gyp ERR!命令“C:\\Program Files\\nodejs\\node.exe”“C:\\Users\\6030213