windows npm install couchbase msbuild错误代码1

问题描述 投票:0回答:1

环境 - Windows 7企业版(Service Pack 1)

处理

安装了git

为git配置了user.name和user.email

安装了nodejs

node version - 8.11.3

npm version - 6.4.0

安装了Python 2.7.3

added environement variable and updated path statement

安装Visual Studio 2015社区版

installed Visual C== 2015 Tools for Windows Desktop

installed Windows XP Support for C++

安装node-gyp(本地和全局)

 npm config --global set msvs_version=2015

将环境变量GYP_MSVS_VERSION设置为2015年

安装的couchbase服务器(4.5)

完成所有这些设置后,我尝试执行npm install couchbase。

进程后我收到以下错误:

prebuild动词onExit

预建ERR!构建错误

预建ERR!堆栈错误:msbuild失败,退出代码:1信号为空

预建ERR!在ChildProcess.onExit堆栈(c:\ AJS \ Nexcal

发展\ nexcal \ node_modules \节点-GYP \ lib中\ build.js:270:23)

预建ERR!堆栈在emitTwo(events.js:126:13)

预建ERR!在ChildProcess.emit堆栈(events.js:214:7)

预建ERR!在Process.ChildProcess._handle.onexit堆栈

(内部/ child_process.js:198:12)

预建ERR!不好

预建ERR!构建错误:msbuild失败,退出代码:1信号为空

预建ERR!在ChildProcess.onExit构建(c:\ AJS \ Nexcal

发展\ nexcal \ node_modules \节点-GYP \ lib中\ build.js:270:23)

预建ERR!在emitTwo构建(events.js:126:13)

预建ERR!在ChildProcess.emit构建(events.js:214:7)

预建ERR!在Process.ChildProcess._handle.onexit构建(internal / child_process.js:198:12)

npm WARN [email protected]需要mocha @> = 1.20.0的对等,但没有安装。您必须自己安装对等依赖项。

错误的ERR!代码ELIFECYCLE

错误的ERR!错误2

错误的ERR! [email protected]安装:prebuild --install

错误的ERR!退出状态2

错误的ERR!

错误的ERR!在[email protected]安装脚本失败。

错误的ERR!这可能不是npm的问题。上面可能有额外的日志记录输出。

错误的ERR!可以在以下位置找到此运行的完整日志:

错误的ERR! NPM-cache_logs \ 2018-08-16T13_36_46_122Z-的debug.log

我已经重新安装了nodejs,python,node-gyp,couchbase服务器,安装/卸载的Visual Studio 2015 Professional和Visual Studio社区,我无法安装Couchbase Node.js SDK库。你能建议一个加载SDK的替代方案吗?

TIA AnthonyS

visual-studio npm install couchbase
1个回答
0
投票

为了纠正这个问题,我运行了git + github.com / couchbase / couchbase.git #master而不是npm install couchbase。

© www.soinside.com 2019 - 2024. All rights reserved.