awslabs / awslabs/amazon-kinesis-client-nodejs

Cannot find module 'log4js'

Open
#20 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
304
Forks
198
Avg merge
36m
Merged PRs (30d)
2

Description

After npm install, I tried to run the producer, I got this error:

```
Error: Cannot find module 'log4js'
at Function.Module._resolveFilename (module.js:325:15)
at Function.Module._load (module.js:276:25)
at Module.require (module.js:353:17)
at require (internal/module.js:12:17)
at Object. (/usr/src/app/samples/util/logger.js:18:14)
at Module._compile (module.js:409:26)
at Object.Module._extensions..js (module.js:416:10)
at Module.load (module.js:343:32)
at Function.Module._load (module.js:300:12)
at Module.require (module.js:353:17)
```

So, what's wrong?

Contributor guide

Open the contributing guide

Research direction

Start with samples/util/logger.js at the require that raises the error, then inspect the project's npm dependency declarations and installation instructions. Reproduce the producer startup after npm install and verify that the log4js module resolves and the producer runs without this error.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, node.js
Domain
backend
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.