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.

Maven displays npm logs as errors

See original GitHub issue

I set the loglevel to http for my npm install. When npm install gets executed by the Maven Frontend Plugin, it is displayed as [ERROR] instead of [INFO].

Partial log below:

15:36:22 [INFO] Running 'npm --userconfig D:\sf\p2\sf-jobs\7942d5cf032b28f7\mockups\.npmrc install --no-optional' in D:\sf\p2\sf-jobs\7942d5cf032b28f7\mockups
15:36:28 [ERROR] npm http request GET https://registry.npmjs.org//bless
15:36:28 [ERROR] npm http request GET https://registry.npmjs.org//body-parser
15:36:28 [ERROR] npm http request GET https://registry.npmjs.org//bower
15:36:28 [ERROR] npm http request GET https://registry.npmjs.org//bower-art-resolver
15:36:28 [ERROR] npm http request GET https://registry.npmjs.org//commander
15:36:28 [ERROR] npm http request GET https://registry.npmjs.org//connect-gzip
15:36:28 [ERROR] npm http request GET https://registry.npmjs.org//del
15:36:28 [ERROR] npm http request GET https://registry.npmjs.org//express
15:36:28 [ERROR] npm http request GET https://registry.npmjs.org//fastclick
15:36:28 [ERROR] npm http request GET https://registry.npmjs.org//file
15:36:28 [ERROR] npm http request GET https://registry.npmjs.org//findup-sync
15:36:28 [ERROR] npm http request GET https://registry.npmjs.org//fontfaceobserver
15:36:28 [ERROR] npm http request GET https://registry.npmjs.org//glob
15:36:28 [ERROR] npm http request GET https://registry.npmjs.org//gulp
15:36:28 [ERROR] npm http request GET https://registry.npmjs.org//gulp-add-src
15:36:28 [ERROR] npm http request GET https://registry.npmjs.org//gulp-angular-htmlify
15:36:28 [ERROR] npm http request GET https://registry.npmjs.org//gulp-angular-templatecache
15:36:28 [ERROR] npm http request GET https://registry.npmjs.org//gulp-bless
15:36:28 [ERROR] npm http request GET https://registry.npmjs.org//gulp-changed
15:36:28 [ERROR] npm http request GET https://registry.npmjs.org//gulp-concat
15:36:28 [ERROR] npm http request GET https://registry.npmjs.org//gulp-debug
15:36:28 [ERROR] npm http request GET https://registry.npmjs.org//gulp-directory-map
15:36:28 [ERROR] npm http request GET https://registry.npmjs.org//gulp-help
15:36:28 [ERROR] npm http request GET https://registry.npmjs.org//gulp-htmlmin
15:36:28 [ERROR] npm http request GET https://registry.npmjs.org//gulp-if
15:36:28 [ERROR] npm http request GET https://registry.npmjs.org//gulp-livereload
15:36:28 [ERROR] npm http request GET https://registry.npmjs.org//gulp-ng-annotate
15:36:28 [ERROR] npm http request GET https://registry.npmjs.org//gulp-rename
15:36:28 [ERROR] npm http request GET https://registry.npmjs.org//gulp-replace
15:36:28 [ERROR] npm http request GET https://registry.npmjs.org//gulp-sass
15:36:28 [ERROR] npm http request GET https://registry.npmjs.org//gulp-sourcemaps
15:36:28 [ERROR] npm http request GET https://registry.npmjs.org//gulp-uglify
15:36:28 [ERROR] npm http request GET https://registry.npmjs.org//gulp-util
15:36:28 [ERROR] npm http request GET https://registry.npmjs.org//gulp-webserver
15:36:28 [ERROR] npm http request GET https://registry.npmjs.org//jasmine-core
15:36:28 [ERROR] npm http request GET https://registry.npmjs.org//jsdoc
15:36:28 [ERROR] npm http request GET https://registry.npmjs.org//karma

Do you think it is related to Maven or the Frontend plugin? Or is it NPM returning wrong code?

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Reactions:1
  • Comments:9 (4 by maintainers)

github_iconTop GitHub Comments

4reactions
eirslettcommented, Feb 2, 2017

This is something that should be fixed in npm, it doesn’t make sense that it logs stuff to stderr if it’s not errors.

2reactions
eirslettcommented, Feb 17, 2017

At least as far as this plugin is concerned, all it does is forward stdout to Maven’s stdout, and stderr to Maven’s stderr. I’d say it’s a feature, not a bug.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Debug NPM failures in maven build log - Stack Overflow
We use Maven to build our application. The backend is Java, but we use the frontend-maven-plugin to build the web apps. It runs...
Read more >
Job logs - GitLab Docs
Job logs are sent by a runner while it's processing a job. You can see logs in job pages, pipelines, email notifications, and...
Read more >
Re: [Opencast] Failed to run task: 'npm run build --no-color ...
Hi, I rerun the "mvn clean install -e" and got the error messages as listed below. I have attached the full output of...
Read more >
npm, pnpm, and Yarn | IntelliJ IDEA Documentation - JetBrains
IntelliJ IDEA also lets you run and debug npm, Yarn, and pnpm scripts. ... The tool window shows the npm or Yarn script...
Read more >
Viewing logs - Jenkins
Log files should be at /var/log/jenkins/jenkins.log , unless customized in org.jenkins-ci.plist . Docker. If you run Jenkins inside docker ...
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