Error install Zowe secure-credential-store plugin using NPM 7
search cancel

Error install Zowe secure-credential-store plugin using NPM 7

book

Article ID: 221386

calendar_today

Updated On:

Products

Brightside

Issue/Introduction

Node Version : v16.0.0
npm Version : 7.10.0

Y:\zowe-cli-package-1.20.0>zowe plugins install secure-credential-store-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 ERR! code 1
npm ERR! path C:\Users\XXXX\.zowe\plugins\installed\node_modules\@zowe\secure-credential-store-for-zowe-cli\node_modules\keytar
npm ERR! command failed
npm ERR! command C:\WINDOWS\system32\cmd.exe /d /s /c prebuild-install || node-gyp rebuild
npm ERR! 'prebuild-install' is not recognized as an internal or external command,
npm ERR! operable program or batch file.
npm ERR! gyp info it worked if it ends with ok
npm ERR! gyp info using [email protected]
npm ERR! gyp info using [email protected] | win32 | x64
npm ERR! gyp info find Python using Python version 3.9.6 found at "C:\Python39\python.exe"
npm ERR! gyp http GET https://nodejs.org/download/release/v16.0.0/node-v16.0.0-headers.tar.gz
npm ERR! gyp WARN install got an error, rolling back install
npm ERR! gyp ERR! configure error
npm ERR! gyp ERR! stack Error: This is most likely not a problem with node-gyp or the package itself and
npm ERR! gyp ERR! stack is related to network connectivity. In most cases you are behind a proxy or have bad
npm ERR! gyp ERR! stack network settings.
npm ERR! gyp ERR! stack     at Request.<anonymous> (C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\install.js:170:21)
npm ERR! gyp ERR! stack     at Request.emit (node:events:365:28)
npm ERR! gyp ERR! stack     at Request.onRequestError (C:\Program Files\nodejs\node_modules\npm\node_modules\request\request.js:877:8)
npm ERR! gyp ERR! stack     at ClientRequest.emit (node:events:365:28)
npm ERR! gyp ERR! stack     at TLSSocket.socketErrorListener (node:_http_client:447:9)
npm ERR! gyp ERR! stack     at TLSSocket.emit (node:events:365:28)
npm ERR! gyp ERR! stack     at emitErrorNT (node:internal/streams/destroy:193:8)
npm ERR! gyp ERR! stack     at emitErrorCloseNT (node:internal/streams/destroy:158:3)
npm ERR! gyp ERR! stack     at processTicksAndRejections (node:internal/process/task_queues:83:21)
npm ERR! gyp ERR! System Windows_NT 10.0.17763
npm ERR! gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js" "rebuild"
npm ERR! gyp ERR! cwd C:\Users\XXXX\.zowe\plugins\installed\node_modules\@zowe\secure-credential-store-for-zowe-cli\node_modules\keytar
npm ERR! gyp ERR! node -v v16.0.0
npm ERR! gyp ERR! node-gyp -v v7.1.2
npm ERR! gyp ERR! not ok

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\XXXX\AppData\Local\npm-cache\_logs\2021-08-09T14_10_09_770Z-debug.log
Command Error:
Install Failed


Environment

Release : 3.0

Component : BRIGHTSIDE ZOWE CLI

Resolution

There are currently bugs in NPM version 7, which is included in Node version 16, that prevent the Secure Credential Store plugin from installing properly. 
The problem does not exist in the version of NPM bundled by default with Node versions 12 and 14, which are the versions that Node officially supports as their Long Term Support releases, 
Brightside's officially support  Node.js LTS version. 

Use Node 12 or 14, and do not update the version of NPM to NPM 7, the Secure Credential Store should install successfully without any additional action.