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.

npm WARN generates a Maven ERROR

See original GitHub issue

In my npm install phase some node_modules generate some warnings about deprecated versions (like grunt). But in the Maven log, this is an ERROR instead of a WARNING. We’re using Jenkins as our build tool and these errors cause wrong log analysis.

[INFO] --- frontend-maven-plugin:0.0.27:npm (install node, npm and dependencies) @ theme ---
[INFO] Found proxies: []
[INFO] Running 'npm install --color=false' in C:\theme
[ERROR] npm WARN deprecated lodash@0.9.2: lodash@<2.0.0 is no longer maintained. Upgrade to lodash@^3.0.0
[ERROR] npm WARN deprecated lodash@1.0.2: lodash@<2.0.0 is no longer maintained. Upgrade to lodash@^3.0.0
[ERROR] npm WARN deprecated npmconf@2.1.2: this package has been reintegrated into npm and is now out of date with respect to npm
[ERROR] npm WARN prefer global node-gyp@3.2.1 should be installed with -g

Changing the logging from ERROR to WARNING would be nice.

Issue Analytics

  • State:closed
  • Created 8 years ago
  • Comments:20 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
pritish-devurkarcommented, Aug 28, 2017

Even with the --verbose flag too, I do not see any additional error messages:

[WARNING] npm WARN sample-typescript-project@1.0.0 No repository field.
[WARNING] npm WARN sample-typescript-project@1.0.0 No license field.
[ERROR]
[INFO] added 806 packages in 379.959s

Also, tried to with -X command to see if maven prints any additional log messages, still do not really see anything in particular.

Is the plugin reporting this [ERROR], which is causing our CI to break? @eirslett @mriehema

0reactions
stefan123tcommented, Jun 17, 2020

Though upgrading to frontend-maven-plugin 1.10.0 fixed it for me.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Ask Question - Stack Overflow
NPM install not working with maven (Error: Cannot find module '../lib/utils/unsupported.js') ... I am using a MAC. The Node_Path environment ...
Read more >
Solved: Re: [ERROR] Failed to execute goal com.github.eirs...
[ERROR] Failed to execute goal com.github.eirslett:frontend-maven-plugin:1.7.6:npm (npm install) on project aem-magazine.ui.frontend: Failed to run task: 'npm ...
Read more >
[#NIFI-3936] Follow the instructions step, maven build fails
When i execute “mvn -T 2.0C clean install ” or "mvn clean install" to compile nifi source, The following error occurred. How can...
Read more >
Eclipse Scout » Cannot build project
Hi, I created new Scout 10 project using latest Eclipse. I have Node installed. I can run app localy. But problem is when...
Read more >
Running NPM Scripts through maven - Popular Blocks
Running NPM Scripts through maven. I am in the process of introducing single page applications to where I work. For development, using node...
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