The plugin is configured with these settings:
Running under Windows, the following happens:
The plugin downloads npm 1.4.9. It uses npm 1.4.9 to install the npm specified in the pom.xml, i.e. 6.4.1.
What happens is, the plugin tries to install the new npm into --prefix directory, but without the -g option, the old npm doesn't install where you tell it to, it will instead walk up the hierarchy looking for a node_modules/ directory or a package.json file.
Branching from this commit:
I changed AbstractNodeJsMojo.java:
To pass the "-g" argument and now it works as expected.