After upgrading to the latest version of npm
, the requests are not shown anymore.
$ npm --version
1.4.13
Now, pretty ASCII animation is displayed when the packages are installed - that I love, but how can I see the requests that are made? I mean these ones:
npm http GET https://registry.npmjs.org/<package-name>
...
Is there any option for npm install
to enable this feature?
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.
When npm install is run with a specified package argument, it installs the package in the existing node_modules directory. You can optionally provide a specific version as well... When a version is not provided, npm automatically downloads the latest stable version.
The default location of the logs directory is a directory named _logs inside the npm cache. This can be changed with the logs-dir config option.
Seems like they have changed default loglevel
.
npm install --loglevel http
You can also add this line to your ~/.npmrc
:
loglevel = http
Note that this is ini
format. You must add this line at the global section, e.g. at the first line of the file.
More info: https://www.npmjs.org/doc/misc/npm-config.html
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