-
Notifications
You must be signed in to change notification settings - Fork 28
Bug in UpdateImpConfig.js (?) #859
Comments
What is the command you used to install the zos-make plug-in? |
I cloned this project and use npm script "installPlugin": |
For the zos-make plug-in, the To use the Zowe v2 beta or prerelease version of the plug-in, you'd want to install either from the Or to install from source, use the |
Thanks for reporting 🙂 I investigated this some more and found there is a bug in Imperative and Zowe CLI that prevents you from installing plug-ins that don't define profiles. |
This should be fixed in the latest version of Zowe CLI (7.4.1). To update your Zowe CLI version, you can reinstall with the command Then you should be able to install the zos-make plug-in without any errors (there may still be warnings but that is expected). |
After reinstallation @zowe/cli the plugin was installed without any problems! |
Hi,
I got an error when I tried to install @zowe/zos-make-for-zowe-cli:
In the Imperative.log file there are some additional messages:
msg: 'Install Failed',
causeErrors: ImperativeError: profiles is not iterable
at Object. (C:\Users\Kirkorava_Y\AppData\Roaming\nvm\v18.7.0\node_modules@zowe\cli\node_modules@zowe\imperative\lib\imperative\src\plugins\utilities\npm-interface\install.js:134:19)
at Generator.next ()
at fulfilled (C:\Users\Kirkorava_Y\AppData\Roaming\nvm\v18.7.0\node_modules@zowe\cli\node_modules@zowe\imperative\lib\imperative\src\plugins\utilities\npm-interface\install.js:15:58) {
mDetails: {
msg: 'profiles is not iterable',
causeErrors: TypeError: profiles is not iterable
at UpdateImpConfig.addProfiles (C:\Users\Kirkorava_Y\AppData\Roaming\nvm\v18.7.0\node_modules@zowe\cli\node_modules@zowe\imperative\lib\imperative\src\UpdateImpConfig.js:54:40)
at Object. (C:\Users\Kirkorava_Y\AppData\Roaming\nvm\v18.7.0\node_modules@zowe\cli\node_modules@zowe\imperative\lib\imperative\src\plugins\utilities\npm-interface\install.js:127:51)
at Generator.next ()
at fulfilled (C:\Users\Kirkorava_Y\AppData\Roaming\nvm\v18.7.0\node_modules@zowe\cli\node_modules@zowe\imperative\lib\imperative\src\plugins\utilities\npm-interface\install.js:15:58)
},
mMessage: 'profiles is not iterable'
I try to change this plugin to run it with Zowe V2, and seems UpdateImpConfig.js is a potential place for the bug.
Thanks!
The text was updated successfully, but these errors were encountered: