npm install odbc在macOS Sierra上失败(版本10.12.6)

时间:2017-12-20 13:54:00

标签: node.js macos npm electron macos-sierra

我遇到问题在macOS Sierra上安装odbc软件包(版本10.12.6)

我在macOS Sierra上安装了unixODBC(版本10.12.6)

以下是发布" npm install odbc" 的输出:

  

odbc@1.3.0 install / Users / cspc106 / Documents / app / node_modules / odbc   node-gyp configure build

2017-12-20 19:11:51.288 xcodebuild [3376:23375] [MT] DVTSDK:警告:路径的SDK路径冲突':名称为' watchos4.0&的SDK #39;被SDK用“Watchos4.0'”取代。 2017-12-20 19:11:51.289 xcodebuild [3376:23375] [MT] DVTSDK:警告:路径的SDK路径冲突':名称为' iphonesimulator11.0'的SDK被SDK用“iphonesimulator11.0'”取代。 2017-12-20 19:11:51.290 xcodebuild [3376:23375] [MT] DVTSDK:警告:路径的SDK路径冲突':名称为' macosx10.13'的SDK被SDK取代并使用' macosx10.13'。 2017-12-20 19:11:51.291 xcodebuild [3376:23375] [MT] DVTSDK:警告:路径的SDK路径冲突'':具有名称' appletvsimulator11.0'的SDK被SDK用“appletvsimulator11.0'”取代。 2017-12-20 19:11:51.292 xcodebuild [3376:23375] [MT] DVTSDK:警告:路径的SDK路径冲突':名称为' watchsimulator4.0'的SDK被SDK用“watchsimulator4.0'”取代。 2017-12-20 19:11:51.293 xcodebuild [3376:23375] [MT] DVTSDK:警告:路径的SDK路径冲突':名称为' appletvos11.0'的SDK被“appletvos11.0'”用SDK取代。 2017-12-20 19:11:51.293 xcodebuild [3376:23375] [MT] DVTSDK:警告:路径的SDK路径冲突':名称为' iphoneos11.0'的SDK被“iphoneos11.0'”用SDK取代。 2017-12-20 19:11:51.466 xcodebuild [3376:23375] [MT] DVTPlugInManager:IDEDevkitRefactoring.ideplugin所需的插件兼容性UUID DF11C142-1584-4A99-87AC-1925D5F5652A(com.apple.dt.IDE.IDEDevkitRefactoring ) 不存在 2017-12-20 19:11:51.540 xcodebuild [3376:23375] [MT] DVTPlugInLoading:无法加载插件的代码com.apple.dt.IDE.IDEiOSSupportCore(/Applications/Xcode.app/Contents/PlugIns/ IDEiOSSupportCore.ideplugin),错误=错误域= NSCocoaErrorDomain代码= 3588" dlopen(/Applications/Xcode.app/Contents/PlugIns/IDEiOSSupportCore.ideplugin/Contents/MacOS/IDEiOSSupportCore,265):找不到符号:_OBJC_CLASS_ $ _FXPCSessionManager   参考自:/ Library /Developer/PrivateFrameworks/CoreSimulator.framework/Versions/A/CoreSimulator(为Mac OS X 10.12构建)   预期在:/Applications/Xcode.app/Contents/Developer/Library/PrivateFrameworks/CoreSimulator.framework/Versions/A/Frameworks/FoundationXPC.framework/Versions/A/FoundationXPC  in /Library/Developer/PrivateFrameworks/CoreSimulator.framework/Versions/A/CoreSimulator" UserInfo = {NSLocalizedFailureReason =无法加载包。,NSLocalizedRecoverySuggestion =尝试重新安装包。,NSFilePath = / Applications / Xcode.app / Contents / PlugIns / IDEiOSSupportCore.ideplugin / Contents / MacOS / IDEiOSSupportCore,NSDebugDescription = dlopen(/ Applications / Xcode.app / Contents / PlugIns / IDEiOSSupportCore.ideplugin / Contents / MacOS / IDEiOSSupportCore,265):找不到符号:_OBJC_CLASS _ $ _ FXPCSessionManager   参考自:/ Library /Developer/PrivateFrameworks/CoreSimulator.framework/Versions/A/CoreSimulator(为Mac OS X 10.12构建)   预期在:/Applications/Xcode.app/Contents/Developer/Library/PrivateFrameworks/CoreSimulator.framework/Versions/A/Frameworks/FoundationXPC.framework/Versions/A/FoundationXPC  在/Library/Developer/PrivateFrameworks/CoreSimulator.framework/Versions/A/CoreSimulator,NSBundlePath = / Applications / Xcode.app / Contents / PlugIns / IDEiOSSupportCore.ideplugin,NSLocalizedDescription =无法加载软件包“IDEiOSSupportCore”。}, dyldError = dlopen(/Applications/Xcode.app/Contents/PlugIns/IDEiOSSupportCore.ideplugin/Contents/MacOS/IDEiOSSupportCore,0):找不到符号:_OBJC_CLASS _ $ _ FXPCSessionManager   参考自:/ Library /Developer/PrivateFrameworks/CoreSimulator.framework/Versions/A/CoreSimulator(为Mac OS X 10.12构建)   预期在:/Applications/Xcode.app/Contents/Developer/Library/PrivateFrameworks/CoreSimulator.framework/Versions/A/Frameworks/FoundationXPC.framework/Versions/A/FoundationXPC  in /Library/Developer/PrivateFrameworks/CoreSimulator.framework/Versions/A/CoreSimulator 2017-12-20 19:11:51.541 xcodebuild [3376:23375] [MT] DVTAssertions:/ Library/Caches/com.apple.xbs/Sources/IDEFrameworks/IDEFrameworks-13247/IDEFoundation/Initialization/IDEInitialization.m中的警告: 264 详细信息:Xcode初始插件扫描失败,错误=错误域= DVTPlugInErrorDomain代码= 2"加载插件失败。" UserInfo = {DVTPlugInIdentifierErrorKey = com.apple.dt.IDE.IDEiOSSupportCore,DVTPlugInExecutablePathErrorKey = / Applications / Xcode.app / Contents / PlugIns / IDEiOSSupportCore.ideplugin / Contents / MacOS / IDEiOSSupportCore,NSLocalizedRecoverySuggestion =插件或其必备插件之一-ins可能丢失或损坏,可能需要重新安装。,DVTPlugInDYLDErrorMessageErrorKey = dlopen(/Applications/Xcode.app/Contents/PlugIns/IDEiOSSupportCore.ideplugin/Contents/MacOS/IDEiOSSupportCore,0):找不到符号:_OBJC_CLASS _ $ _ FXPCSessionManager   参考自:/ Library /Developer/PrivateFrameworks/CoreSimulator.framework/Versions/A/CoreSimulator(为Mac OS X 10.12构建)   预期在:/Applications/Xcode.app/Contents/Developer/Library/PrivateFrameworks/CoreSimulator.framework/Versions/A/Frameworks/FoundationXPC.framework/Versions/A/FoundationXPC  in /Library/Developer/PrivateFrameworks/CoreSimulator.framework/Versions/A/CoreSimulator,NSLocalizedDescription =加载插件失败。,NSFilePath = / Applications / Xcode.app / Contents / PlugIns / IDEiOSSupportCore.ideplugin,NSLocalizedFailureReason =插件在“com.apple.dt.IDE.IDEiOSSupportCore”的路径“/Applications/Xcode.app/Contents/PlugIns/IDEiOSSupportCore.ideplugin”中无法加载。插件或其中一个必备插件可能会丢失或损坏。,NSUnderlyingError = 0x7ff0ce6900b0 {错误域= NSCocoaErrorDomain代码= 3588" dlopen(/Applications/Xcode.app/Contents/PlugIns/IDEiOSSupportCore.ideplugin / Contents / MacOS / IDEiOSSupportCore,265):找不到符号:_OBJC_CLASS _ $ _ FXPCSessionManager   参考自:/ Library /Developer/PrivateFrameworks/CoreSimulator.framework/Versions/A/CoreSimulator(为Mac OS X 10.12构建)   预期在:/Applications/Xcode.app/Contents/Developer/Library/PrivateFrameworks/CoreSimulator.framework/Versions/A/Frameworks/FoundationXPC.framework/Versions/A/FoundationXPC  in /Library/Developer/PrivateFrameworks/CoreSimulator.framework/Versions/A/CoreSimulator" UserInfo = {NSLocalizedFailureReason =无法加载包。,NSLocalizedRecoverySuggestion =尝试重新安装包。,NSFilePath = / Applications / Xcode.app / Contents / PlugIns / IDEiOSSupportCore.ideplugin / Contents / MacOS / IDEiOSSupportCore,NSDebugDescription = dlopen(/ Applications / Xcode.app / Contents / PlugIns / IDEiOSSupportCore.ideplugin / Contents / MacOS / IDEiOSSupportCore,265):找不到符号:_OBJC_CLASS _ $ _ FXPCSessionManager   参考自:/ Library /Developer/PrivateFrameworks/CoreSimulator.framework/Versions/A/CoreSimulator(为Mac OS X 10.12构建)   预期在:/Applications/Xcode.app/Contents/Developer/Library/PrivateFrameworks/CoreSimulator.framework/Versions/A/Frameworks/FoundationXPC.framework/Versions/A/FoundationXPC  在/Library/Developer/PrivateFrameworks/CoreSimulator.framework/Versions/A/CoreSimulator,NSBundlePath = / Applications / Xcode.app / Contents / PlugIns / IDEiOSSupportCore.ideplugin,NSLocalizedDescription =无法加载软件包“IDEiOSSupportCore”。}} } 功能:BOOL _IDEInitializePlugInManager(IDEInitializationOptions,NSError * __ autoreleasing *) 线程:{number = 1,name = main} 请在http://bugreport.apple.com上提交此警告消息以及您可以提供的任何有用信息。 xcodebuild:错误:初始化失败。     原因:加载插件失败。

make:错误:无法找到实用程序" make",而不是开发人员工具或PATH gyp ERR!构建错误 gyp ERR!堆栈错误:make失败并退出代码:72 gyp ERR!在ChildProcess.onExit堆栈(/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:258:23) gyp ERR!堆栈在emitTwo(events.js:126:13) gyp ERR!在ChildProcess.emit堆栈(events.js:214:7) gyp ERR! Process.ChildProcess._handle.onexit的堆栈(internal / child_process.js:198:12) gyp ERR!系统达尔文16.7.0 gyp ERR!命令" / usr / local / bin / node" " /usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "配置" "建立" gyp ERR! cwd / Users / cspc106 / Documents / app / node_modules / odbc gyp ERR! node -v v8.9.3 gyp ERR! node-gyp -v v3.6.2 gyp ERR!不好 npm WARN可选SKIPPING OPTIONAL DEPENDENCY:bufferutil@1.2.1(node_modules / bufferutil): npm WARN可选SKIPPING OPTIONAL DEPENDENCY:bufferutil@1.2.1安装:node-gyp rebuild npm WARN可选SKIPPING OPTIONAL DEPENDENCY:退出状态1 npm WARN可选SKIPPING OPTIONAL DEPENDENCY:utf-8-validate@1.2.2(node_modules / utf-8-validate): npm WARN可选SKIPPING OPTIONAL DEPENDENCY:utf-8-validate@1.2.2 install:node-gyp rebuild npm WARN可选SKIPPING OPTIONAL DEPENDENCY:退出状态1

npm ERR!代码ELIFECYCLE 错误的ERR!错误1 错误的ERR! odbc@1.3.0安装:node-gyp configure build 错误的ERR!退出状态1 错误的ERR! 错误的ERR! odbc@1.3.0安装脚本失败。 错误的ERR!这可能不是npm的问题。上面可能有额外的日志记录输出。

npm ERR!可以在以下位置找到此运行的完整日志: 错误的ERR! /Users/cspc106/.npm/_logs/2017-12-20T13_41_52_231Z-debug.log

1 个答案:

答案 0 :(得分:0)

问题是由系统中缺少make实用程序引起的,正如您在此处所见:

  

make:错误:无法找到实用程序" make",而不是开发人员工具或PATH gyp ERR!构建错误gyp ERR! stack错误:使用退出代码失败:72 gyp ERR!

要在Mac上获得该实用程序,您需要先安装XCode。然后你应该能够毫无问题地进行安装。

作为旁注;任何使用本机模块的NPM软件包都需要命令行工具(用C / C ++编写,需要在安装时构建)。