Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ERR_MODULE_NOT_FOUND #15279

Closed
dtlnor opened this issue Apr 18, 2024 · 2 comments
Closed

ERR_MODULE_NOT_FOUND #15279

dtlnor opened this issue Apr 18, 2024 · 2 comments
Labels
RSS bug Something isn't working

Comments

@dtlnor
Copy link

dtlnor commented Apr 18, 2024

路由地址

NOROUTE

完整路由地址

NOROUTE

相关文档

https://docs.rsshub.app/deploy/

预期是什么?

通过npm install npm start 可以正常运行

实际发生了什么?

能正常install,但不能运行

部署

自建

部署相关信息

OS: Win10; Node: Node.js v21.3.0, npm: npm@10.4.0

额外信息

> rsshub@1.0.0 start
> cross-env NODE_ENV=production tsx lib/index.ts


node:internal/process/esm_loader:34
      internalBinding('errors').triggerUncaughtException(
                                ^
Error [ERR_MODULE_NOT_FOUND]: Cannot find module 'C:\Users\Documents\GitHub\RSSHub\assets\build\routes.json' imported from C:\Users\Documents\GitHub\RSSHub\lib\registry.ts
    at finalizeResolution (node:internal/modules/esm/resolve:264:11)
    at moduleResolve (node:internal/modules/esm/resolve:917:10)
    at defaultResolve (node:internal/modules/esm/resolve:1130:11)
    at nextResolve (node:internal/modules/esm/hooks:749:28)
    at d (file:///C:/Users/Documents/GitHub/RSSHub/node_modules/tsx/dist/esm/index.mjs:5:34)
    at O (file:///C:/Users/Documents/GitHub/RSSHub/node_modules/tsx/dist/esm/index.mjs:5:1162)
    at nextResolve (node:internal/modules/esm/hooks:749:28)
    at Hooks.resolve (node:internal/modules/esm/hooks:237:30)
    at MessagePort.handleMessage (node:internal/modules/esm/worker:199:24)
    at [nodejs.internal.kHybridDispatch] (node:internal/event_target:822:20) {
  code: 'ERR_MODULE_NOT_FOUND',
  url: 'file:///C:/Users/Documents/GitHub/RSSHub/assets/build/routes.json'
}

Node.js v21.3.0


### 这不是重复的 issue

- [X] 我已经搜索了 [现有 issue](https://github.com/DIYgod/RSSHub/issues),以确保该错误尚未被报告。
@dtlnor dtlnor added the RSS bug Something isn't working label Apr 18, 2024
Copy link
Contributor

Searching for maintainers:
  • NOROUTE: Route not found

To maintainers: if you are not willing to be disturbed, list your username in scripts/workflow/test-issue/call-maintainer.js. In this way, your username will be wrapped in an inline code block when tagged so you will not be notified.

If all routes can not be found, the issue will be closed automatically. Please use NOROUTE for a route-irrelevant issue or leave a comment if it is a mistake.
如果所有路由都无法匹配,issue 将会被自动关闭。如果 issue 和路由无关,请使用 NOROUTE 关键词,或者留下评论。我们会重新审核。

@github-actions github-actions bot reopened this Apr 18, 2024
@DIYgod
Copy link
Owner

DIYgod commented Apr 18, 2024

Please read the docs: https://docs.rsshub.app/deploy/#manual-deployment

@DIYgod DIYgod closed this as completed Apr 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
RSS bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants