Known Zowe CLI issues
Known Zowe CLI issues
The following topics contain information that can help you troubleshoot problems when you encounter unexpected behavior installing and using Zowe™ CLI.
npm install
command#
EACCESS error when issing Valid on Windows, Mac, or Linux
Symptom:
An EACCESS
error is returned when you issue the npm install -g
command to install a package from Zowe.org or npm.
Solution:
To resolve the issue, follow the steps described in Resolving EACCESS permissions errors when installing packages globally in the npm documentation.
npm install
commands#
Command not found message displays when issuing Valid on all supported platforms
Symptom:
When you issue NPM commands to install the CLI, the message command not found displays. The message indicates that Node.js and NPM are not installed on your computer, or that PATH does not contain the correct path to the NodeJS folder.
Solution:
To correct this behavior, verify the following:
- Node.js and NPM are installed.
- PATH contains the correct path to the NodeJS folder.
More Information: System requirements for Zowe CLI
npm install -g
Command Fails Due to an EPERM Error#
Valid on Windows
Symptom:
This behavior is due to a problem with Node Package Manager (npm). There is an open issue on the npm GitHub repository to fix the defect.
Solution:
If you encounter this problem, some users report that repeatedly attempting to install Zowe CLI yields success. Some users also report success using the following workarounds:
Issue the
npm cache clean
command.Uninstall and reinstall Zowe CLI. For more information, see Install Zowe CLI.
Add the --no-optional
flag to the end of thenpm install
command.
Sudo
syntax required to complete some installations#
Valid on Linux and macOS
Symptom:
The installation fails on Linux or macOS.
Solution:
Depending on how you configured Node.js on Linux or macOS, you might need to add the prefix sudo
before the npm install -g
command or the npm uninstall -g
command. This step gives Node.js write access to the installation directory.
npm install -g
command fails due to npm ERR! Cannot read property 'pause' of undefined
error#
Valid on Windows or Linux
Symptom:
You receive the error message npm ERR! Cannot read property 'pause' of undefined
when you attempt to install the product.
Solution:
This behavior is due to a problem with Node Package Manager (npm). If you encounter this problem, revert to a previous version of npm that does not contain this defect. To revert to a previous version of npm, issue the following command:
npm install npm@5.3.0 -g
#
Node.js commands do not respond as expectedValid on Windows or Linux
Symptom:
You attempt to issue node.js commands and you do not receive the expected output.
Solution:
There might be a program that is named node on your path. The Node.js installer automatically adds a program that is named node to your path. When there are pre-existing programs that are named node on your computer, the program that appears first in the path is used. To correct this behavior, change the order of the programs in the path so that Node.js appears first.
#
Installation fails on Oracle Linux 6Valid on Oracle Linux 6
Symptom:
You receive error messages when you attempt to install the product on an Oracle Linux 6 operating system.
Solution:
Install the product on Oracle Linux 7 or another Linux or Windows OS. Zowe CLI is not compatible with Oracle Linux 6.