zowe / zowe-cli-db2-plugin

DB2 Plugin for the Zowe CLI
Eclipse Public License 2.0
8 stars 16 forks source link

Failure to install on Windows with Node 18.16.0 #121

Closed t1m0thyj closed 1 year ago

t1m0thyj commented 1 year ago

Related to https://github.com/ibmdb/node-ibm_db/issues/920

@anaxceron Can we document this as a known issue? Affected users: Anyone installing the DB2 plugin for Zowe CLI on Windows with Node 18.16.0 Workaround: Uninstall Node.js 18.16.x and downgrade to Node.js 18.15.x, then reinstall the plugin.

_____ 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')
Problems detected during plugin validation. Please check above for more information.
    return globSync(pattern, options)
  }

  return new Glob(pattern, options, cb)
}: \\?\C:\Users\runneradmin\.zowe\plugins\installed\node_modules\@zowe\db2-for-zowe-cli\node_modules\ibm_db\build\Release\odbc_bindings.node is not a valid Win32 application.
\\?\C:\Users\runneradmin\.zowe\plugins\installed\node_modules\@zowe\db2-for-zowe-cli\node_modules\ibm_db\build\Release\odbc_bindings.node
anaxceron commented 1 year ago

I will start working on this today, @t1m0thyj

anaxceron commented 1 year ago

Closing w/ PR 2850