question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Getting failure with install-node-and-npm goal

See original GitHub issue

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>

Issue Analytics

  • State:closed
  • Created 10 years ago
  • Comments:22 (4 by maintainers)

github_iconTop GitHub Comments

27reactions
csvancommented, Oct 2, 2016

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

2reactions
arsalazarjrcommented, Jan 21, 2015

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.

Read more comments on GitHub >

github_iconTop Results From Across the Web

frontend-maven-plugin fails npm install - Stack Overflow
I changed my pom to use a different node version. <nodeVersion>v9.11.1</nodeVersion>. I then ran mvn clean install . That failed but it got ......
Read more >
Solved: [ERROR] Failed to execute goal com.github.eirslett...
You are probably getting this error maybe because you have not completed a "npm install". NPM install will download all the dependencies that...
Read more >
eirslett / frontend-maven-plugin Download - JitPack
A Maven plugin that downloads/installs Node and NPM locally, runs NPM install, Grunt, ... Environment variables; Ignoring Failure; Skipping Execution.
Read more >
ts-node - npm
This error is thrown by node when a module is require() d, but node believes it should execute as native ESM. This can...
Read more >
Getting error while doing maven clean install - Eclipse
[ERROR] mvn <goals> -rf :org.eclipse.smarthome.ui.paper ... [INFO] --- frontend-maven-plugin:1.0:install-node-and-npm (Install node and npm) ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found