frontend-maven-plugin: Getting failure with install-node-and-npm goal

I’m hoping it’s something simple. I’ve gone through the guide a couple of times and I’m not finding what’s wrong. I also tried with 0.0.12 for the plugin, and some other pairs of Node/NPM versions from http://nodejs.org/dist. Any ideas?

The error message is:

The parameters ‘nodeVersion’, ‘npmVersion’ for goal com.github.eirslett:frontend-maven-plugin:0.0.11:install-node-and-npm are missing or invalid

My pom.xml has this:

        <plugin>
            <groupId>com.github.eirslett</groupId>
            <artifactId>frontend-maven-plugin</artifactId>
            <version>0.0.11</version>
            <!-- optional -->
            <configuration>
                <workingDirectory>src/main/webapp/websrc</workingDirectory>
            </configuration>
            <executions>
                <execution>
                    <id>install node and npm</id>
                    <goals>
                        <goal>install-node-and-npm</goal>
                    </goals>
                    <configuration>
                        <nodeVersion>v0.10.18</nodeVersion>
                        <npmVersion>1.3.8</npmVersion>
                    </configuration>
                </execution>
            </executions>
        </plugin>

About this issue

  • Original URL
  • State: closed
  • Created 10 years ago
  • Comments: 23 (4 by maintainers)

Most upvoted comments

FWIW, I managed to resolve this by moving the configuration from the execution level to the plugin level.

For whatever it is worth: seems like this might have to do with namespacing? I was able to get this to work by moving the configuration parameters ‘nodeVersion’ and ‘npmVersion’ into the global plugin parameters section.