-
Notifications
You must be signed in to change notification settings - Fork 28
Unable to (un-)install plugins wit node.js 16x or 17.x #683
Comments
Thanks for reporting, we are investigating this issue. Until an official fix is published, a workaround is to downgrade your version of NPM from 8 to 7: Also, please note that Zowe CLI only supports LTS versions of Node.js. Node.js 16 is not technically LTS yet, but is expected to be released as LTS later today so it will be supported. However, Node.js 17 is not an LTS version and will not be supported. For the Node.js release schedule, see https://nodejs.org/en/about/releases/ |
Thanks for reply. We are trying this... However in our Jenkins Build environment we are running the NPM Plugin and use its environment also for the zowe CLI - until last week it worked fine - but somehow the Jenkins NPM plugin must have been updated :( and installed a newer version of NPM - we did not control this. |
I'm not familiar with the NPM Plugin for Jenkins. If it has an option in Jenkins settings to use an older version of NPM, that could work around the issue. Otherwise, I'm afraid the only workaround would be shell commands as you mentioned. We have found a fix for the issue, and hope to publish it soon. We'll let you know when an official fix is available, which should work without any extra shell commands or configuration changes to your NPM Plugin 🙂 |
Hello, I took a look and determined that a change in NPM version 8 results in Imperative failing to find the global NPM module. This makes sense, as Node 16 and 17 both ship with NPM version 8 by default, and Node 16 just became LTS. I've made changes to how Imperative resolves the npm module, and updated the CLI to absorb these changes. We have done some testing locally, verified that we could reproduce the issue before the change, and verified that the updated CLI no longer reproduces the issue in our environment. We have just published the updated CLI to NPM. Can you please update the CLI installed in your environment to the latest version (using any of the following as the package tag: |
Hello, thanks for the quick update! I updated to the @latest version of Zowe CLI and was now able to use it without anny issues with Node 16 or 17 (including NPM v8). Great! |
Thanks for the feedback! We are going to go ahead and close this issue. |
Since a couple of days we encounter problems using zowe CLI to install or uninstall plug-ins. First we encountered the problem in our Jenkins build - when trying to automatically install our self developed plug-in
However - even on our Linux development machine we have now same problem with 16.x or 17.x
The problem looks like:
`zowe plugins install @ask Zowe/secure-credential-store-for-zowe-cli@zowe-v1-lts
node:internal/modules/cjs/loader:936
throw err;
^
Error: Cannot find module '/home/friessin/.nvm/versions/node/v17.0.1/lib/node_modules'
at Function.Module._resolveFilename (node:internal/modules/cjs/loader:933:15)
at Function.Module._load (node:internal/modules/cjs/loader:778:27)
at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:81:12)
at node:internal/main/run_main_module:17:47 {
code: 'MODULE_NOT_FOUND',
requireStack: []
}
Node.js v17.0.1
Command Error:
Install Failed`
Is this already a known problem? Any suggestions?
The text was updated successfully, but these errors were encountered: