not found: npm on zowe plugins install #1615
Labels
priority-medium
Not functioning - next quarter if capacity permits
severity-high
Bug for which there may be workaround but limits the usage of the Zowe for major use cases
Discussed in #1613
Originally posted by dkelosky January 24, 2023
Hi - a user is getting this error "not found: npm" when running
zowe plugins install ...
; however, as you can see below, npm version is 9.3.1. He's using zowe 7.9.7what do
In daemon mode on Windows, we use the spread operator to override
process.env
:https://github.com/zowe/imperative/blob/cb175d40b4460bfc0c1fe319f13170b38b7969e2/packages/cmd/src/CommandProcessor.ts#L468
This breaks Node.js magic that aliases
process.env.PATH
toprocess.env.Path
. We should replace the spread operator with a loop to assign properties.The text was updated successfully, but these errors were encountered: