We use maven + frontend to execute npm, node and ember to create an ember app. Sometimes this process hangs on 'npm install' with no useful data in log files. I'd like to:
In a perfect world, I'd add command line options to
Then, I'd use a maven profile for ensure the build system always logs with max verbosity while still allowing developers to see important log info.
If you can tell me the command line options or file settings or direct me to the relevant docs then I'll happily modify my pom and post that as a solution here.
Thanks
Peter
This plugin downloads/installs Node and NPM locally for your project, runs npm install , and then any combination of Bower, Grunt, Gulp, Jspm, Karma, or Webpack. It's supposed to work on Windows, OS X and Linux.
When a package fails to install or publish, the npm CLI will generate an npm-debug. log file. This log file can help you figure out what went wrong. If you need to generate a npm-debug. log file, you can run one of these commands.
In the embedded Terminal ( Alt+F12 ) , type one of the following commands: npm install mocha for local installation in your project. npm install -g mocha for global installation. npm install --save-dev mocha to install Mocha as a development dependency.
com.github.eirslett » frontend-maven-pluginApache. This Maven plugin lets you install Node/NPM locally for your project, install dependencies with NPM, install dependencies with bower or jspm, run Grunt or gulp tasks, and/or run Karma tests. Last Release on Dec 29, 2021.
Have you tried these flags?
-dd, --verbose: --loglevel verbose
-ddd: --loglevel silly
As far as logging to a file, according to https://docs.npmjs.com/misc/config#loglevel any errors that occur will be logged to npm-debug.log
If you want to adjust that, you can redirect stdout and stderr to a file
npm install -ddd &> filename.txt
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With