Latest Docker image throws MODULE_NOT_FOUND error
See original GitHub issue- The involved route, with all required and optional parameters N/A
- What is expected
Latest docker image
2021-08-12
runs without an error. - What is actually happening Throws error at start:
> rsshub@1.0.0 start /app
> node lib/index.js
internal/modules/cjs/loader.js:892
throw err;
^
Error: Cannot find module 'module-alias'
Require stack:
- /app/lib/app.js
- /app/lib/index.js
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:889:15)
at Function.Module._load (internal/modules/cjs/loader.js:745:27)
at Module.require (internal/modules/cjs/loader.js:961:19)
at require (internal/modules/cjs/helpers.js:92:18)
at Object.<anonymous> (/app/lib/app.js:1:21)
at Module._compile (internal/modules/cjs/loader.js:1072:14)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1101:10)
at Module.load (internal/modules/cjs/loader.js:937:32)
at Function.Module._load (internal/modules/cjs/loader.js:778:12)
at Module.require (internal/modules/cjs/loader.js:961:19) {
code: 'MODULE_NOT_FOUND',
requireStack: [ '/app/lib/app.js', '/app/lib/index.js' ]
}
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! rsshub@1.0.0 start: `node lib/index.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the rsshub@1.0.0 start script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! /root/.npm/_logs/2021-08-12T22_31_13_401Z-debug.log
- Self-deployment information
Env | Value |
---|---|
OS | Ubuntu 20.04 & 21.04 |
Node version | |
if Docker, version | podman 3.2.3 |
- Additional info (logs errors etc)
I am using podman
to run the container/compose file, but the same error does not appear in 2021-07-13
with the same set up. It seems to be a docker image issue. Feel free to test with “proper” docker setup.
Issue Analytics
- State:
- Created 2 years ago
- Comments:6 (3 by maintainers)
Top Results From Across the Web
ModuleNotFoundError and import errors in Docker container
I've just come across another thread on StackOverflow which seems to have resolved my issue. I can leave the import statements as I ......
Read more >No module named 'packaging' with latest docker image · Issue ...
While running the ansible playbooks on AWX it is throwing "ModuleNotFoundError" error for 'packaging'. On the other hand playbooks are ...
Read more >Debugging ImportError and ModuleNotFoundErrors in your ...
Your code runs fine on your computer, but when you try to package it with Docker you keep getting ImportError s or ModuleNotFoundError...
Read more >ModuleNotFoundError: No module named 'docker-image-py'
Hi, My Python program is throwing following error: ModuleNotFoundError: No module named 'docker-image-py' How to remove the Mo.
Read more >How to Fix ModuleNotFoundError and ImportError
Module imports can certainly frustrate people and especially those who are fairly new to Python. Since I keep seeing relevant questions on ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
好了,测试给加上了
重新拉了一下 latest,还是有这个问题