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.

For installing packages:

npm install --timing

For publishing packages:

npm publish --timing

You can find the npm-debug.log file in your .npm directory. 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.

Edit this page on GitHub
2 contributorslukekarrysethomson
Last edited by lukekarrys on October 22, 2023
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy