A Node.js debugging utility.
Questions tagged [npm-debug]
14 questions
5
votes
1 answer
ignore files named npm-debug.log.XXXXXX in .gitignore
Does anyone knows how to ignore this file from the repository with .gitignore?
I'm using Gitlab.
I've already tried this:
Thanks in advance

Pedro Tainha
- 497
- 2
- 6
- 14
3
votes
2 answers
Nodejs - How to use morgan with debug
Morgan outputs requests directly to the console.
How can I redirect them to npm debug so that it follows the same format as the other stuff which is being logged?
My debug.js config looks like the following:
import debug from 'debug';
const…

zurfyx
- 31,043
- 20
- 111
- 145
1
vote
0 answers
Yarn install is giving error "https://registry.npmjs.org/esprima-fb/-/esprima-fb-3001.0001.0000-dev-harmony-fb.tgz: incorrect data check"
I have node version as v12.20.0 and npm version as 6.14.8 and when i do Yarn install i have been getting this "https://registry.npmjs.org/esprima-fb/-/esprima-fb-3001.0001.0000-dev-harmony-fb.tgz: incorrect data check" kind error constantly. I work…

Dipika Mishra
- 45
- 6
1
vote
1 answer
npm-debug module: how to enable and disable debug targets programatically?
In the documentation for visionmedia's debug module for Node.js, I see that it is possible to enable and disable different debug targets programmatically.
My attempts to do this have not been very successful.
I created a barebones script:…

James Newton
- 6,623
- 8
- 49
- 113
1
vote
0 answers
Cannot show debug messages inside the Nuxt project files
I am using nuxt 2.5.1 and want to log some messages by debug. I tried start up the project by "DEBUG=* nuxt" and tons of debug messages flooding in, so I expect the setup is OK.
But when I try showing my custom messages in a project file, the debug…

Wonderjimmy
- 499
- 1
- 6
- 15
1
vote
1 answer
Gitbash is not setting environment variable correctly
I am trying to use npm install debug in my node server.
var debugModule = require('debug');
var debugMainApp = debugModule('debugMainApp')
const express = require('express');
const app = express();
const port ='3000';
const domain =…

Jorge González
- 2,898
- 1
- 9
- 12
1
vote
2 answers
How to import debug into a TypeScript project you'll use rollup on?
I've got an Angular 2 project and have been using debug with no problems. I'm now trying to use rollup and I get the error:
Cannot call a namespace ('debugModule')
This refers to the way I import debug:
import * as debugModule from 'debug';
I've…

WillyC
- 3,917
- 6
- 35
- 50
0
votes
0 answers
High Vulnerability Detected in Dependency (NPM debug) of mocha
How to Remediate: Vulnerability Detected in debug package (Inefficient Regular Expression Complexity)
I recently ran a security scan using Checkmarx One and detected a high vulnerability in the npm debug package.
Package: debug
Version: 4.3.4…

Kathrine Breboneria
- 31
- 2
0
votes
1 answer
npm debug.enable('*') not working in Angular
I want to set npm debug namespaces dynamically as documented here.
My code in app.component.ts is as follows:
import debug from 'debug'
ngAfterViewInit() {
console.log('BEFORE')
debug.enable('*')
const test = debug('test')
//…

danday74
- 52,471
- 49
- 232
- 283
0
votes
0 answers
dockerized express app : npm-debug show only in portainer
I have a dockerized express application (using nodemon) which is composed of an interface (/ui) and on API (/api).
I want to debug all my app with debug using chrome inspect or NIM to view the debug outputs.
My problem is that in the chrome…

Firlfire
- 413
- 1
- 6
- 14
0
votes
2 answers
npm-debug.log is in .gitignore file, but I still get the messsage "nothing added to commit but untracked files present (use "git add" to track)"
My gitignore file looks like this:
*.csv
*.dat
*.iml
*.log
*.out
*.pid
*.seed
*.sublime-*
*.swo
*.swp
*.tgz
*.xml
.DS_Store
.idea
.project
.strong-pm
coverage
node_modules
npm-debug.log
server-info
definitions/
Yet, suddenly git status shows me a…

VK1
- 1,676
- 4
- 28
- 51
0
votes
0 answers
deploy NPM files to the artifactory offline
I am trying to deploy an Tgz file to the artifactory server in windows offline
the problem is the dependencies of the npm files so I want someway that I don't have to delete the npm from the artifactory to deploy new npm …
again I am working…

Najeeb Shhade
- 32
- 4
0
votes
1 answer
npm can't find npm-debug.log file when initializing npm install (Angular 2-CLI)
When installing npm package for my new Angular 2 project, I am getting below issue.
npm ERR! Please include the following file with any support request:
npm ERR! D:\CR_Automation_UI_POC\POC\npm-debug.log
So, the issue is that npm is not able…

Ayush S
- 1
- 3
0
votes
1 answer
How to debug (insert debug statements in) dynamically generated Express routes?
I am starting work on an existing Node/Express/Mongoose project -- I am currently going through the code and trying to understand how it works. The Express routes are being generated dynamically, that is to say there are functions that set up the…

Cerulean
- 5,543
- 9
- 59
- 111