So we finally figured out what was going on, please read in the JIRA issue:
https://issues.apache.org/jira/browse/CB-14166?focusedCommentId=16605718&page=com.atlassian.jira.plugin.system.issuetabpanels%3Acomment-tabpanel#comment-16605718

Short version: 
Nodist, which the issue reported and creator of this PR are using to manage 
their local node/npm installations, installs a `npm.exe` next to `npm.cmd` 
which is then used to execute the command because `which npm` returns its path. 
It behaves differently, which causes the command to fail for them.

Thanks @AlmirKadric for creating this PR anyway, it helped to understand the 
problem better. 
Another PR seems to be incoming that will solve this problem in another way.

PS: `nvm-windows` doesn't have this problem: 
https://github.com/coreybutler/nvm-windows

[ Full content available at: https://github.com/apache/cordova-lib/pull/622 ]
This message was relayed via gitbox.apache.org for [email protected]

Reply via email to