socket hang up in node.js

I am using node 0.6.10 version and I got the error today while uploading a file to amazon S3. I am using knox(@0.0.9) module with request(@2.9.153). [2012-03-06 22:33:34.251] [ERROR] xyxyxyxy-...

Node.js Logging

Is there any library which will help me to handle logging in my Node.Js application? All I want to do is, I want to write all logs into a File and also I need an options like rolling out the file...

Can't install any package with node npm

I'm trying to install some node packages through npm, but it won't go. I've already tried to install/unistall/update node, but nothing seems to work. I'm using ubuntu 12.04 - Here is how i'm...

npm install -g karma does not install executable

I have what looks like successful karma installation, yet karma is not in /usr/local/bin/ and is not found by bash. Any idea what is wrong and how to fix it? Here are the end installation...

write logs in file using log4js in node js

my code is: log4js.loadAppender('file'); log4js.addAppender(log4js.appenders.file('logs/cheese.log'), 'cheese'); logger.setLevel('DEBUG'); logger.trace('Entering cheese...

npm install is missing modules

Before I can run gulp in my project I need to run npm install. This works except on my computer, because I get the following error: Error: Cannot find module 'socket.io' at...

AWS Elastic Beanstalk NodeJS and logs

I want to migrate my NodeJS project from single EC2 to ElasticBeanstalk. In my current code I use the dependency log4js which create a log file on the filesystem. On EC2 this works create but what...

grunt bower:install error

I am a beginner in angularJS, and i want to start node server with npm start on a bitbucket cloned project but I get an error when doing this. I tried a couple of things, unblock port 22 from the...

nodejs "npm ERR! code SELF_SIGNED_CERT_IN_CHAIN"

I'm new to nodejs and npm. I'm trying to install log4js and this is the command for the install: npm install log4js I'm running this from Windows Command Line and I after a while of a marker...

Ignore missing dependencies

I have some issues with compiling my bundle. Basically I have webpack 1.13 and npm3 and when I try to bundle my files I get error that some dependencies are not found. More specifically I imported...

protractor-jasmine2-html-reporter doesn't consolidate results for all test when tests are shared using 'shardTestFiles': true in conf file

Recently we have configured our e2e-tests to be on Jenkins & soon we realized that we have to use shared test files: true options as complete suite run is taking very long time for us peeking...

How do I resolve peer dependency error: The package [email protected] does not satisfy its siblings' peerDependencies requirements

I am getting this error when I run npm install. This seems because I am unable to satisfy some peer dependency but I am unsure which peer dependency I need to fix. λ npm install npm ERR!...

Logging in Reactjs

I am working on ReactJS for developing a client side of an application, there are very few options available for client side logging as compared to server side on of them which I came across is...

log4js appenders with different levels of logging levels

I'm trying to create a logger configuration which logs only "ERROR" level information to console and "DEBUG" level information to file appenders. Can anyone help on how to create a logger with...

NodeJS package confusion

In my package.json file, I have: "devDependencies": { "chai": "^4.1.2", "chai-as-promised": "^7.0.0", "chai-bignumber": "^2.0.0", "decimal.js": "^10.0.0", ...

Log4js - Disable logs for http calls

I'm using log4js to log messages. For some reason, the logger automatically logs the http calls, and I can't find a way to disable it. Here is my code: // Initialize the log4js logger by...

How to fix node-gyp error with npm audit fix

I have an issue running npm audit fix. I want to update node.js from v0.10.32 to v10. environment OS:CentOS release 6.10 (Final) Node.js:v0.10.32 package name Current Wanted Latest ...

log4js is not working in node , How to configure it...?

I have installed log4js npm and try to implement logger to my node api... I am trying to use log4js for the first time. Code: var log4js = require('log4js'); // include log4js log4js.configure({...

run moleculer microservice via nats message

I'm beginner at moleculer and microservices . I created an api gateway via nestjs framework and now I want to call microservice in moleculer via nats messaging from nestjs. so my question is : How...

Angular upgrade from 8 to 9 - yarn incompatible error

I've upgraded the project from 8 to 9 as per angular.io upgrade guide But after the upgrade yarn install is giving this error. Does anyone know how to solve this? Error: error...

How to trace request id in Loopback 4?

I am trying to trace each HTTP request in my REST API using Loopback 4 in order to log them in the controllers using log4js, just like this: [2020-05-05T19:21:52.191] [INFO]...

How to maintain logs for front end in react js?

I maintain logs for my backend node js using log4js and it works fine. But I want to do the same for my front end, But I couldn't find a proper package to do that and also in some blogs I came to...

Webpack + Babel: ReferenceError: {My class} is not defined

I am newbie in development with Webpack and Babel. I created a JS class for example: export default class Log4js { #current_appender; } When I try to create a js variable of my class in...

Karma, Webpack & Typescript: TS2307: Cannot find module 'log4js' or its corresponding type declarations

When running karma (npx karma start) I get an error about a module × 「atl」: Checking finished with 1 errors i 「atl」: Checking started in a separate process... × 「atl」: Checking...

Not getting any logs for node process running through pm2 in cluster mode

If I am running pm2 process for node js app in fork mode , The logs are getting generated but same app is not giving logs if running in pm2 cluster mode I am using the below pm2 ecosystem file to...

Mixed Typescript and Javascript Repo - eslint - TS rules affecting JS files

I have a repo that is primarily typescript, however I do have some javascript floating around as well, primarily for build related stuff that would never be deployed. That being said, I would...

AWS Cloud Watch Logs formatting

I have an issue with the logs on Cloud Watch. I keep having the logs on different entries instead of one single entry per log. Here's an example. Output in the console: [2020-12-21T11:51:21.966]...

log4js-node with ES module?

I am trying to set up log4js-node in my code. As I want to write to the same log file from different .js files, I am setting it up in an external file as per the documentation: const appSettings =...

Is Log4JS npm package vulnerable to CVE-2021-44228 Log4J vulnerability

As the title says. Looked online for a clear answer but can't find an answer anywhere as most of them just link to Log4J.

Is R-Package h2o affected by log4j-vulnerability? (and how to solve)

A vulnerability of log4j became public. Amongst other packages, I am using R shiny and h2o packages. I already found out, that shiny is not affected by the vulnerability, since it uses log4js(see...