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
?
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.
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.
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.
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
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