How to see logs from npm installation?
Append the --loglevel verbose
argument to the command you want to run and all logs will be shown on STDERR and saved to npm-debug.log
file in the current working directory.
Example usage: npm install ionic --loglevel verbose
.
Running the npm
commands like this, shows the logs in realtime and saves the logs to the directory its running within.
For permanent solution, just edit the global npm
configuration. To do this, run npm config edit
command and add loglevel=verbose
. Now every npm
command will show detailed logs