Closed FALLAI-Denis closed 3 months ago
Thank you for creating a bug report. We will investigate the bug and evaluate its impact on the product. If you haven't already, please ensure you have provided steps to reproduce the bug and as much context as possible.
@FALLAI-Denis Based on the logs your environment is using Node.js 14 and npm@6. Zowe CLI only supports active LTS (Long Term Support) releases of Node, which currently are Node.js 18 and 20.
We believe the offline install error should be fixed in newer versions of npm which is distributed with Node. Please update your installation of Node.js to an actively supported version.
Hi @t1m0thyj,
A priori this is not a node.js / npm version problem, but rather an Internet access problem. And moreover we do not have the possibility of changing the version of node.js / npm on our workstations.
By using a proxy server, (Artifactory), to access the npmjs registry, the installation could be carried out both in download mode, (npm install -g @zowe/cli@zowe-v2-lts
), and from the latest archive file (npm install -g zowe-cli.tgz
).
The problem is that the zowe-cli.tgz
archive file still downloads from the Internet, for the plugin cpu-features
, which itself downloads for the nan
plugin.
This problem should be fixed to allow 100% offline installation.
Furthermore, in the case of installation by npm install -g @zowe/cli@zowe-v2-lts
, which is version 7.23.8
, it is then impossible to install a plugin: this triggers an error:
>zowe plugins install @zowe/zos-ftp-for-zowe-cli
Handler Instantiation Failed:
Could not instantiate the handler C:\ProgramData\nvm\v14.18.0\node_modules\@zowe\cli\node_modules\@zowe\imperative\lib\imperative\src\plugins\cmd\install\install.handler for command install
Error Details:
Unexpected token '??='
This problem does not appear with the npm install -g zowe-cli.tgz
installation, which is in version 7.23.3
.
With Node 16, 18, and 20, Zowe CLI can be installed offline from the zowe-cli.tgz available at zowe.org and plug-in installation works without any issues. However, with Node 14, the offline installation fails and plug-ins cannot be installed.
Zowe CLI supports LTS versions of Node that are actively maintained (currently Node 18 and 20). https://docs.zowe.org/stable/user-guide/systemrequirements-cli
Because these issues only occur in an unsupported version of Node.js, no fix is planned.
Describe the bug
We don't have the possibility to install Zowe CLI using npm and downloading from the npmjs registry on the internet, (enterprise proxy blocking Internet access outside of web navigator). We therefore carry out installations from the zowe-cli.tgz packages previously downloaded from the zowe.org internet site.
Expected and actual results
Details about the behavior:
npm install -g zowe-cli.tgz
Installation successfull...
The installation fails with the following messages:
Apparently, although the installation is intended to be offline, there is an attempt to download the component
cpu-features
(line 292) from the npmjs registry, which triggers in our context an http 407 status:Describe your environment
zowe --version
): N/Azowe plugins list --short
): N/Anode --version
,npm --version
):v14.18.0
/6.14.15
Windows 10 Enterprise 22H2 x64
Additional context
Direct installation of the
cpu-features-0.0.1.tgz
package triggers another error this time on the pluginnan
:http fetch GET 407 https://registry.npmjs.org/nan