I've been struggling to install the db2 plugin on my Mac for a long time. @zFernand0 helped me debug the issue and we found that the plugin installation was failing because of xcode missing on my Mac. xcode is a pre-req for the node ibm-db package that is uses by the zowe cli db2 plugin. Once we installed xcode, the db2 plugin installation worked. The doc should probably be updated to indicate this requirement.
Following is the error I used to see:
npm WARN @zowe/db2@3.0.1 requires a peer of @zowe/imperative@^3.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN @zowe/db2@3.0.1 requires a peer of @zowe/cli@^3.0.0 but none is installed. You must install peer dependencies yourself.
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! ibm_db@2.5.0 install: `node installer/driverInstall.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the ibm_db@2.5.0 install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! /Users/solsu01/.npm/_logs/2019-05-29T12_09_33_512Z-debug.log
Command Error:
Install Failed
I've been struggling to install the db2 plugin on my Mac for a long time. @zFernand0 helped me debug the issue and we found that the plugin installation was failing because of xcode missing on my Mac. xcode is a pre-req for the node ibm-db package that is uses by the zowe cli db2 plugin. Once we installed xcode, the db2 plugin installation worked. The doc should probably be updated to indicate this requirement.
Following is the error I used to see: