Getting failure with install-node-and-npm goal
See original GitHub issueI’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:
- Created 10 years ago
- Comments:22 (4 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
FWIW, I managed to resolve this by moving the configuration from the
execution
level to theplugin
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.