0

目前我在 Node 和 Express 工作。服务器端运行并成功连接到 Mongo DB,但是 在客户端执行npm install时出现以下问题...

win32-x64-node-14` exists; testing
Problem with the binary; manual build incoming
stdout=
err=Error: Command failed: C:\Program Files\nodejs\node.exe quick-test.js
undefined:0

[Error: Invalid argument]


C:\Users\xxxxx\Desktop\Referral code base\ReferralSystem\client\node_modules\node-sspi>if not defined npm_config_node_gyp (node "C:\Program Files\nodejs\node_modules\npm\node_modules\npm-lifecycle\node-gyp-bin\\..\..\node_modules\node-gyp\bin\node-gyp.js" rebuild )  else (node "C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js" rebuild ) 
Building the projects in this solution one at a time. To enable parallel build, please add the "/m" switch.
  NodeSSPI.cpp
  win_delay_load_hook.cc
c:\users\xxxxx\desktop\referral code base\referralsystem\client\node_modules\node-sspi\src\nodesspi.h(10): fatal
 error C1083: Cannot open include file: 'atlenc.h': No such file or directory (compiling source file ..\src\NodeSSPI.cpp) [C:\U
sers\xxxxx\Desktop\Referral code base\ReferralSystem\client\node_modules\node-sspi\build\NodeSSPI.vcxproj]       
gyp ERR! build error 
gyp ERR! stack Error: C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\MSBuild\15.0\Bin\MSBuild.exe failed with 
exit code: 1
gyp ERR! stack     at ChildProcess.onExit (C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\build.js:194:23)  
gyp ERR! stack     at ChildProcess.emit (events.js:315:20)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:277:12)
gyp ERR! System Windows_NT 10.0.19042
gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js" "rebuild"
gyp ERR! cwd C:\Users\dayanidhi.paneerselv\Desktop\Referral code base\ReferralSystem\client\node_modules\node-sspi
gyp ERR! node -v v14.15.1
gyp ERR! node-gyp -v v5.1.0
gyp ERR! not ok
Build failed
npm WARN app@1.0.0 No repository field.
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@2.1.3 (node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@2.1.3: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})

npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! node-sspi@0.2.9 install: `node ./build.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the node-sspi@0.2.9 install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

请帮我解决这个问题。

4

0 回答 0