failed to reinstall @zowe/db2-for-zowe-cli
search cancel

failed to reinstall @zowe/db2-for-zowe-cli

book

Article ID: 230753

calendar_today

Updated On:

Products

Brightside

Issue/Introduction

Installed DB2 plugin version 4.1.1 with the package Brightside-v3.0.14.

Tried to update zowe/db2-for-zowe-cli in Brightside-v3.0.17 and runs into the following error:

Y:\Brightside-v3.0.17>zowe plugins install db2-for-zowe-cli.tgz
Plug-ins within the Imperative CLI Framework can legitimately gain
control of the zowe CLI application during the execution of every command.
Install 3rd party plug-ins at your own risk.

Imperative's plugin installation program handles @zowe peer dependencies.
You can safely ignore NPM warnings about missing @zowe peer dependencies.

Registry = https://registry.npmjs.org/

_______________________________________________________________
npm WARN @zowe/[email protected] requires a peer of @zowe/imperative@^4.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN @zowe/[email protected] requires a peer of @zowe/cli@^6.0.0 but none is installed. You must install peer dependencies yourself.

Installed plugin name = '@zowe/db2-for-zowe-cli'

_____ Validation results for plugin '@zowe/db2-for-zowe-cli' _____

*** CmdError: Failed to combine command definitions. Reason = Encountered an error loading one of the files (cli/call/Call.definition.js) that matched the provided command module glob for the glob function glob (pattern, options, cb) {
  if (typeof options === 'function') cb = options, options = {}
  if (!options) options = {}

  if (options.sync) {
    if (cb)
      throw new TypeError('callback provided to sync glob')
    return globSync(pattern, options)
  }

  return new Glob(pattern, options, cb)
}: Could not locate the bindings file. Tried:
→ C:\Users\XXXX\.zowe\plugins\installed\node_modules\@zowe\db2-for-zowe-cli\node_modules\ibm_db\build\odbc_bindings.node
→ C:\Users\XXXX\.zowe\plugins\installed\node_modules\@zowe\db2-for-zowe-cli\node_modules\ibm_db\build\Debug\odbc_bindings.node
→ C:\Users\XXXX\.zowe\plugins\installed\node_modules\@zowe\db2-for-zowe-cli\node_modules\ibm_db\build\Release\odbc_bindings.node
→ C:\Users\XXXX\.zowe\plugins\installed\node_modules\@zowe\db2-for-zowe-cli\node_modules\ibm_db\out\Debug\odbc_bindings.node
→ C:\Users\XXXX\.zowe\plugins\installed\node_modules\@zowe\db2-for-zowe-cli\node_modules\ibm_db\Debug\odbc_bindings.node
→ C:\Users\XXXX\.zowe\plugins\installed\node_modules\@zowe\db2-for-zowe-cli\node_modules\ibm_db\out\Release\odbc_bindings.node
→ C:\Users\XXXX\.zowe\plugins\installed\node_modules\@zowe\db2-for-zowe-cli\node_modules\ibm_db\Release\odbc_bindings.node
→ C:\Users\XXXX\.zowe\plugins\installed\node_modules\@zowe\db2-for-zowe-cli\node_modules\ibm_db\build\default\odbc_bindings.node
→ C:\Users\XXXX\.zowe\plugins\installed\node_modules\@zowe\db2-for-zowe-cli\node_modules\ibm_db\compiled\14.17.4\win32\x64\odbc_bindings.node
→ C:\Users\XXXX\.zowe\plugins\installed\node_modules\@zowe\db2-for-zowe-cli\node_modules\ibm_db\addon-build\release\install-root\odbc_bindings.node
→ C:\Users\XXXX\.zowe\plugins\installed\node_modules\@zowe\db2-for-zowe-cli\node_modules\ibm_db\addon-build\debug\install-root\odbc_bindings.node
→ C:\Users\XXXX\.zowe\plugins\installed\node_modules\@zowe\db2-for-zowe-cli\node_modules\ibm_db\addon-build\default\install-root\odbc_bindings.node
→ C:\Users\XXXX\.zowe\plugins\installed\node_modules\@zowe\db2-for-zowe-cli\node_modules\ibm_db\lib\binding\node-v83-win32-x64\odbc_bindings.node







Environment

Brightside 3.0

Brightside 4.0

Component : BRIGHTSIDE ZOWE CLI 

Resolution

"Could not locate the bindings file" indicating ibm_db module is not installed successfully. 

Follow the instructions to  Address the ODBC Driver Requirement for Installing the Plug-in from Package

Then reinstall DB2 plugin.

C:\>set IBM_DB_INSTALLER_URL=C:\odbc_cli

C:\>y:

Y:\Brightside-v3.0.17>zowe plugins install db2-for-zowe-cli.tgz
Plug-ins within the Imperative CLI Framework can legitimately gain
control of the zowe CLI application during the execution of every command.
Install 3rd party plug-ins at your own risk.

Imperative's plugin installation program handles @zowe peer dependencies.
You can safely ignore NPM warnings about missing @zowe peer dependencies.

Registry = https://registry.npmjs.org/

_______________________________________________________________
npm WARN @zowe/[email protected] requires a peer of @zowe/imperative@^4.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN @zowe/[email protected] requires a peer of @zowe/cli@^6.0.0 but none is installed. You must install peer dependencies yourself.

Installed plugin name = '@zowe/db2-for-zowe-cli'

_____ Validation results for plugin '@zowe/db2-for-zowe-cli' _____
This plugin was successfully validated. Enjoy the plugin.

Additional Information

After downloading the ODBC driver, setting IBM_DB_INSTALLER_URL, If the plug-in still fails to install, run the following command in the folder where the TGZ is located to get more detailed information:
npm install db2-for-zowe-cli.tgz --verbose --foreground-scripts true

Navigate to the contents of the folder $ZOWE_CLI_HOME\Plugins\installed\node_modules\@zowe\db2-for-zowe-cli\node_modules\ibm_db\build, when the DB2 plug-in is properly installed, this folder should contain a "Release" subfolder that has a "odbc_bindings.node" file inside of it. 

If the ".node" file does not exist, follow the instructions in the Fixing a failed extraction section of the IBM Db2 Database Plug-in troubleshooting document.