Zowe DB2 plugin Installation

book

Article ID: 241875

calendar_today

Updated On:

Products

Brightside

Issue/Introduction

Tried to install the plugin for DB2 using Zowe V2 V7.1.1
Created a folder obdc_cli on the C drive and put ntx64_odbc_cli.zip to this folder.


Open command prompt and set IBM_DB_INSTALLER_URL=C:\odbc_cli

V:\>zowe plugins install @zowe/[email protected]
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.

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

_______________________________________________________________
npm ERR! code ETARGET
npm ERR! notarget No matching version found for @zowe/[email protected]
npm ERR! notarget In most cases you or one of your dependencies are requesting
npm ERR! notarget a package version that doesn't exist.

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\brlau01\AppData\Local\npm-cache\_logs\2022-05-04T16_38_26_985Z-debug-0.log
Command Error:
Install Failed

---

the debug log shows:

41 error notarget No matching version found for @zowe/[email protected]
0 verbose cli [
0 verbose cli   'C:\\Program Files (x86)\\nodejs\\node.exe',
0 verbose cli   'C:\\Program Files (x86)\\nodejs\\node_modules\\npm\\bin\\npm-cli.js',
0 verbose cli   'install',
0 verbose cli   '@zowe/[email protected]',
0 verbose cli   '--prefix',
0 verbose cli   'C:\\Users\\brlau01\\.zowe\\plugins\\installed',
0 verbose cli   '-g',
0 verbose cli   '--registry',
0 verbose cli   'https://registry.npmjs.org/',
0 verbose cli   '--legacy-peer-deps'
0 verbose cli ]
1 info using [email protected]
2 info using [email protected]
3 timing npm:load:whichnode Completed in 0ms
4 timing config:load:defaults Completed in 2ms
5 timing config:load:file:C:\Program Files (x86)\nodejs\node_modules\npm\npmrc Completed in 7ms
6 timing config:load:builtin Completed in 7ms
7 timing config:load:cli Completed in 3ms
8 timing config:load:env Completed in 1ms
9 timing config:load:project Completed in 0ms
10 timing config:load:file:C:\Users\brlau01\.npmrc Completed in 1ms
11 timing config:load:user Completed in 1ms
12 timing config:load:file:C:\Users\brlau01\.zowe\plugins\installed\etc\npmrc Completed in 0ms
13 timing config:load:global Completed in 1ms
14 timing config:load:validate Completed in 1ms
15 timing config:load:credentials Completed in 0ms
16 timing config:load:setEnvs Completed in 1ms
17 timing config:load Completed in 18ms
18 timing npm:load:configload Completed in 18ms
19 timing npm:load:setTitle Completed in 0ms
20 timing config:load:flatten Completed in 4ms
21 timing npm:load:display Completed in 5ms
22 verbose logfile C:\Users\brlau01\AppData\Local\npm-cache\_logs\2022-05-04T16_38_26_985Z-debug-0.log
23 timing npm:load:logFile Completed in 8ms
24 timing npm:load:timers Completed in 0ms
25 timing npm:load:configScope Completed in 0ms
26 timing npm:load Completed in 31ms
27 timing arborist:ctor Completed in 1ms
28 silly logfile start cleaning logs, removing 4 files
29 timing idealTree:init Completed in 6ms
30 http fetch GET 200 https://registry.npmjs.org/@zowe%2fdb2-for-zowe-cli 1505ms (cache revalidated)
31 timing idealTree Completed in 1518ms
32 timing command:install Completed in 1548ms
33 verbose type tag
34 verbose stack @zowe/db2-for-zowe-cli: No matching version found for @zowe/[email protected]
34 verbose stack     at module.exports (C:\Program Files (x86)\nodejs\node_modules\npm\node_modules\npm-pick-manifest\index.js:209:23)
34 verbose stack     at C:\Program Files (x86)\nodejs\node_modules\npm\node_modules\pacote\lib\registry.js:118:26
34 verbose stack     at async Arborist.[retrieveSpecName] (C:\Program Files (x86)\nodejs\node_modules\npm\node_modules\@npmcli\arborist\lib\arborist\build-ideal-tree.js:549:18)
34 verbose stack     at async C:\Program Files (x86)\nodejs\node_modules\npm\node_modules\@npmcli\arborist\lib\arborist\build-ideal-tree.js:520:20
34 verbose stack     at async Promise.all (index 0)
34 verbose stack     at async Arborist.[applyUserRequestsToNode] (C:\Program Files (x86)\nodejs\node_modules\npm\node_modules\@npmcli\arborist\lib\arborist\build-ideal-tree.js:488:7)
34 verbose stack     at async Arborist.[applyUserRequests] (C:\Program Files (x86)\nodejs\node_modules\npm\node_modules\@npmcli\arborist\lib\arborist\build-ideal-tree.js:425:7)
34 verbose stack     at async Arborist.buildIdealTree (C:\Program Files (x86)\nodejs\node_modules\npm\node_modules\@npmcli\arborist\lib\arborist\build-ideal-tree.js:214:7)
34 verbose stack     at async Arborist.reify (C:\Program Files (x86)\nodejs\node_modules\npm\node_modules\@npmcli\arborist\lib\arborist\reify.js:152:5)
34 verbose stack     at async Install.exec (C:\Program Files (x86)\nodejs\node_modules\npm\lib\commands\install.js:157:5)
35 verbose cwd C:\Users\brlau01\.zowe\plugins
36 verbose Windows_NT 10.0.19044
37 verbose argv "C:\\Program Files (x86)\\nodejs\\node.exe" "C:\\Program Files (x86)\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install" "@zowe/[email protected]" "--prefix" "C:\\Users\\brlau01\\.zowe\\plugins\\installed" "-g" "--registry" "https://registry.npmjs.org/" "--legacy-peer-deps"
38 verbose node v16.14.2
39 verbose npm  v8.5.0
40 error code ETARGET
41 error notarget No matching version found for @zowe/[email protected]
42 error notarget In most cases you or one of your dependencies are requesting
42 error notarget a package version that doesn't exist.
43 verbose exit 1
44 timing npm Completed in 1940ms
45 verbose unfinished npm timer reify 1651682307372
46 verbose unfinished npm timer reify:loadTrees 1651682307398
47 verbose unfinished npm timer idealTree:userRequests 1651682307405
48 verbose code 1
49 error A complete log of this run can be found in:
49 error     C:\Users\brlau01\AppData\Local\npm-cache\_logs\2022-05-04T16_38_26_985Z-debug-0.log






Environment

Release : 3.0

Component : ZOWE COMMAND LINE INTERFACE

Resolution

Node commands indicates customer is using a 32-bit version of NodeJS, the db2 plug-in does not support 32-bit node on Windows, need to install 64 bit of NodeJS.

Set IBM_DB_INSTALLER_URL to "C:\odbc_cli\" with the last backslash included. The logic to perform the driver installation from a local file requires the last backslash.

Use the correct installation command: zowe plugins install @zowe/[email protected] (and not zowe plugins install @zowe/[email protected])