Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to get more info from npm install?

Tags:

node.js

npm

I'm using npm install on Windows, and want to get more information about this:

npm WARN install Couldn't install optional dependency: Unsupported
npm WARN install Couldn't install optional dependency: Unsupported

Earlier versions of npm dumped the installation progress into the console, but the current version (3.3.12) just displays a progress bar. The above warnings appear, but I have no idea what package they're referring to.

How can I get npm to behave as it used to and dump its output to the console? Or, how can I write a logfile of npm install?

like image 875
royco Avatar asked Dec 10 '15 18:12

royco


People also ask

How do I access npm logs?

To find your . npm directory, use npm config get cache . If you use a CI environment, your logs are likely located elsewhere. For example, in Travis CI, you can find them in the /home/travis/build directory.

Does npm install install everything?

In global mode (ie, with -g or --global appended to the command), it installs the current package context (ie, the current working directory) as a global package. By default, npm install will install all modules listed as dependencies in package.

What exactly does npm install do?

The npm install installs all modules that are listed on package. json file and their dependencies. npm update updates all packages in the node_modules directory and their dependencies.


1 Answers

To get npm to output more details you can try using npm install --verbose or if that isn't enough you could try npm install --loglevel silly

like image 136
lodlock Avatar answered Sep 25 '22 15:09

lodlock