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 #38

Closed
pcZhang0791 opened this issue Aug 8, 2024 · 1 comment
Closed

ERR_MODULE_NOT_FOUND #38

pcZhang0791 opened this issue Aug 8, 2024 · 1 comment

Comments

@pcZhang0791
Copy link

yuque-dl --help
node:internal/modules/esm/resolve:265
throw new ERR_MODULE_NOT_FOUND(
^

Error [ERR_MODULE_NOT_FOUND]: Cannot find module '/opt/yuque-dl-1.0.61/dist/es/cli.js' imported from /opt/yuque-dl-1.0.61/bin/index.js
at finalizeResolution (node:internal/modules/esm/resolve:265:11)
at moduleResolve (node:internal/modules/esm/resolve:933:10)
at defaultResolve (node:internal/modules/esm/resolve:1169:11)
at ModuleLoader.defaultResolve (node:internal/modules/esm/loader:383:12)
at ModuleLoader.resolve (node:internal/modules/esm/loader:352:25)
at ModuleLoader.getModuleJob (node:internal/modules/esm/loader:227:38)
at ModuleLoader.import (node:internal/modules/esm/loader:315:34)
at importModuleDynamically (node:internal/modules/esm/translators:161:31)
at importModuleDynamicallyCallback (node:internal/modules/esm/utils:222:14)
at run (file:///opt/yuque-dl-1.0.61/bin/index.js:4:3) {
code: 'ERR_MODULE_NOT_FOUND',
url: 'file:///opt/yuque-dl-1.0.61/dist/es/cli.js'

@gxr404
Copy link
Owner

gxr404 commented Aug 8, 2024

是在什么操作系统中呢 看这个提示有点奇怪

可以尝试 删了重新安装

# 先卸载 再装
npm uninstall  -g yuque-dl
npm i -g yuque-dl

@gxr404 gxr404 closed this as completed Oct 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants