0
在嘗試使用NPM獲取程序包時,出現錯誤後不斷收到錯誤。 我已經解決了大部分,但現在我得到這樣的:節點JS NPM安裝錯誤
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: [email protected] (node_modules\ursa):
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] install: `node-gyp rebuild`
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: Exit status 1
我不知道發生了什麼事情,希望你們中的一些可以幫助
它清楚地表明它無法找到你的'package.json'文件。移動到包含'package,json'的目錄,然後運行'npm install' –
似乎缺少用於編譯本地ursa模塊的「C:\ OpenSSL-Win64 \ lib \ libeay32.lib」文件。 – vincent