简体   繁体   English

节点JS NPM安装错误

[英]Node JS NPM install error

I keep getting errors after errors while trying to get a package with NPM. 尝试获取NPM软件包时,我总是接连出现错误。 I have solved most of them but now i'm getting this : 我已经解决了大多数问题,但是现在我得到了:

rs\kevin\Desktop\adwordsapi\node_modules\ursa\build\ursaNative.vcxproj]
LINK : fatal error LNK1181: cannot open input file 'C:\OpenSSL-Win64\lib\libeay32.lib' [C:\Users\kevin\Desktop\adwordsa
pi\node_modules\ursa\build\ursaNative.vcxproj]
gyp ERR! build error
gyp ERR! stack Error: `C:\Program Files (x86)\MSBuild\14.0\bin\msbuild.exe` failed with exit code: 1
gyp ERR! stack     at ChildProcess.onExit (C:\Users\kevin\AppData\Roaming\npm\node_modules\npm\node_modules\node-gyp\lib
\build.js:258:23)
gyp ERR! stack     at emitTwo (events.js:106:13)
gyp ERR! stack     at ChildProcess.emit (events.js:191:7)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:215:12)
gyp ERR! System Windows_NT 6.3.9600
gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "C:\\Users\\kevin\\AppData\\Roaming\\npm\\node_modules\\npm\\node
_modules\\node-gyp\\bin\\node-gyp.js" "rebuild"
gyp ERR! cwd C:\Users\kevin\Desktop\adwordsapi\node_modules\ursa
gyp ERR! node -v v6.11.0
gyp ERR! node-gyp -v v3.6.2
gyp ERR! not ok
npm WARN saveError ENOENT: no such file or directory, open 'C:\Users\kevin\Desktop\adwordsapi\package.json'
npm notice created a lockfile as package-lock.json. You should commit this file.
npm WARN enoent ENOENT: no such file or directory, open 'C:\Users\kevin\Desktop\adwordsapi\package.json'
npm WARN adwordsapi No description
npm WARN adwordsapi No repository field.
npm WARN adwordsapi No README data
npm WARN adwordsapi No license field.
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: ursa@0.9.4 (node_modules\ursa):
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: ursa@0.9.4 install: `node-gyp rebuild`
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: Exit status 1

I have no idea what's going on and hoped some of you could help 我不知道发生了什么事,希望你们中的一些可以帮忙

Looking at the link error in you error output, it seems that you are missing some required dependencies to compile the native module. 查看错误输出中的链接错误,看来您缺少一些编译本机模块所需的依赖项。

Installing the ursa node module on Windows requires some extra preparation steps. 在Windows上安装ursa节点模块需要一些额外的准备步骤。 Check https://www.npmjs.com/package/ursa#windows-install for further documentation. 检查https://www.npmjs.com/package/ursa#windows-install以获取更多文档。

Hope this helps. 希望这可以帮助。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM