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

[Question] bun install Error: Cannot find module 'C:\C:\Applications\lobe-vidol\node_modules\husky\bin.mjs' #106

Closed
BD520 opened this issue Jul 7, 2024 · 4 comments

Comments

@BD520
Copy link

BD520 commented Jul 7, 2024

🧐 问题描述 | Proposed Solution

I followed the installation tutorial to follow the installation steps
我按照安装教程执行了安装步骤

> conda create --name lobe-vidol
> conda activate lobe-vidol
> cd c:\Applications\
> git clone https://github.com/lobehub/lobe-vidol.git
> cd lobe-vidol
> npm install -g bun

After executing bun install, I encountered a problem that looked like a path issue, but I believe the problem should come from the source code, which is an issue that I cannot solve.
在我执行bun install之后遇到了问题,看起来像是路径问题,但是我认为问题应该来自于源代码,这是我无法解决的问题。

(lobe-vidol) c:\Applications\lobe-vidol>bun install
bun install v1.1.18 (5a0b9352)
152 |     "remark": "^15.0.0",
          ^
warn: Duplicate dependency: "remark" specified in package.json
   at C:\Applications\lobe-vidol\package.json:152:5

113 |     "remark": "^15.0.1",
                    ^
note: "remark" originally specified here
   at C:\Applications\lobe-vidol\package.json:113:15

$ husky
node:internal/modules/cjs/loader:1148
  throw err;
  ^

Error: Cannot find module 'C:\C:\Applications\lobe-vidol\node_modules\husky\bin.mjs'
    at Module._resolveFilename (node:internal/modules/cjs/loader:1145:15)
    at Module._load (node:internal/modules/cjs/loader:986:27)
    at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:174:12)
    at node:internal/main/run_main_module:28:49 {
  code: 'MODULE_NOT_FOUND',
  requireStack: []
}

Node.js v20.15.0
error: prepare script from "@lobehub/vidol" exited with 1

This is my NPM&node.js version

这是我的npm版本和node.js版本

(lobe-vidol) c:\Applications\lobe-vidol>npm version
{
  '@lobehub/vidol': '0.14.0',
  npm: '10.7.0',
  node: '20.15.0',
  acorn: '8.11.3',
  ada: '2.7.8',
  ares: '1.28.1',
  base64: '0.5.2',
  brotli: '1.1.0',
  cjs_module_lexer: '1.2.2',
  cldr: '45.0',
  icu: '75.1',
  llhttp: '8.1.2',
  modules: '115',
  napi: '9',
  nghttp2: '1.61.0',
  nghttp3: '0.7.0',
  ngtcp2: '1.1.0',
  openssl: '3.0.13+quic',
  simdutf: '5.2.8',
  tz: '2024a',
  undici: '6.13.0',
  unicode: '15.1',
  uv: '1.46.0',
  uvwasi: '0.0.21',
  v8: '11.3.244.8-node.23',
  zlib: '1.3.0.1-motley-7d77fb7'
}

This is my system information
这是我的系统信息

(lobe-vidol) c:\Applications\lobe-vidol>systeminfo

OS Name:                   Microsoft Windows 11 家庭中文版
OS Version:                10.0.22631 N/A Build 22631
OS Manufacturer:           Microsoft Corporation
OS Configuration:          Standalone Workstation
OS Build Type:             Multiprocessor Free

System Manufacturer:       LENOVO
System Model:              82RF
System Type:               x64-based PC
Processor(s):              1 Processor(s) Installed.
                           [01]: Intel64 Family 6 Model 154 Stepping 3 GenuineIntel ~2300 Mhz
BIOS Version:              LENOVO J2CN40WW, 4/15/2022
Windows Directory:         C:\Windows
System Directory:          C:\Windows\system32
Boot Device:               \Device\HarddiskVolume4
System Locale:             zh-cn;Chinese (China)
Input Locale:              en-us;English (United States)
Time Zone:                 (UTC+08:00) Beijing, Chongqing, Hong Kong, Urumqi
Hyper-V Requirements:      A hypervisor has been detected. Features required for Hyper-V will not be displayed.

📝 补充信息 | Additional Information

According to the AI prompt, it indicates that the problem is that Husky is not installed. Therefore, I tried to install Husky, but encountered a dependency issue.

根据AI的提示,说明问题是husky没有安装,那么我尝试安装husky,但是遇到了依赖问题。

(lobe-vidol) c:\Applications\lobe-vidol>npm install --save-dev husky
npm error code ERESOLVE
npm error ERESOLVE could not resolve
npm error
npm error While resolving: @lobehub/ui@1.146.4
npm error Found: lucide-react@0.395.0
npm error node_modules/lucide-react
npm error   peer lucide-react@">=0.292" from @lobehub/tts@1.24.3
npm error   node_modules/@lobehub/tts
npm error     @lobehub/tts@"^1.24.2" from the root project
npm error   lucide-react@"^0.395.0" from the root project
npm error
npm error Could not resolve dependency:
npm error peer lucide-react@">=0.396.0" from @lobehub/ui@1.146.4
npm error node_modules/@lobehub/ui
npm error   peer @lobehub/ui@">=1" from @lobehub/tts@1.24.3
npm error   node_modules/@lobehub/tts
npm error     @lobehub/tts@"^1.24.2" from the root project
npm error   @lobehub/ui@"^1.145.5" from the root project
npm error
npm error Conflicting peer dependency: lucide-react@0.400.0
npm error node_modules/lucide-react
npm error   peer lucide-react@">=0.396.0" from @lobehub/ui@1.146.4
npm error   node_modules/@lobehub/ui
npm error     peer @lobehub/ui@">=1" from @lobehub/tts@1.24.3
npm error     node_modules/@lobehub/tts
npm error       @lobehub/tts@"^1.24.2" from the root project
npm error     @lobehub/ui@"^1.145.5" from the root project
npm error
npm error Fix the upstream dependency conflict, or retry
npm error this command with --force or --legacy-peer-deps
npm error to accept an incorrect (and potentially broken) dependency resolution.
npm error
npm error
npm error For a full report see:
npm error C:\Users\C\AppData\Local\npm-cache\_logs\2024-07-07T13_57_53_241Z-eresolve-report.txt

npm error A complete log of this run can be found in: C:\Users\C\AppData\Local\npm-cache\_logs\2024-07-07T13_57_53_241Z-debug-0.log

Then I followed the instructions of AI to upgrade the version of Husky, but still encountered dependency issues. I am currently unable to resolve this issue. I hope developers can promptly resolve this issue or provide a detailed installation tutorial to guide how to deploy this project locally. Thank you!

然后我按照AI的指示升级husky的版本,但是仍然遇到依赖问题。这个问题目前我已经无法解决了,希望开发人员看到后能够及时解决这个问题,或者给出一个详细的安装教程来指导如何在本地部署这个项目,谢谢!

(lobe-vidol) c:\Applications\lobe-vidol>npm install lucide-react@^0.396.0
npm error code ERESOLVE
npm error ERESOLVE could not resolve
npm error
npm error While resolving: @pixiv/three-vrm@2.1.2
npm error Found: @types/three@0.165.0
npm error node_modules/@types/three
npm error   dev @types/three@"^0.165.0" from the root project
npm error
npm error Could not resolve dependency:
npm error peer @types/three@"^0.164.0" from @pixiv/three-vrm@2.1.2
npm error node_modules/@pixiv/three-vrm
npm error   @pixiv/three-vrm@"2.1.2" from the root project
npm error
npm error Conflicting peer dependency: @types/three@0.164.1
npm error node_modules/@types/three
npm error   peer @types/three@"^0.164.0" from @pixiv/three-vrm@2.1.2
npm error   node_modules/@pixiv/three-vrm
npm error     @pixiv/three-vrm@"2.1.2" from the root project
npm error
npm error Fix the upstream dependency conflict, or retry
npm error this command with --force or --legacy-peer-deps
npm error to accept an incorrect (and potentially broken) dependency resolution.

No response

@lobehubbot
Copy link
Member

👀 @BD520
Thank you for raising an issue. We will investigate into the matter and get back to you as soon as possible.
Please make sure you have given us as much context as possible.
非常感谢您提交 issue。我们会尽快调查此事,并尽快回复您。 请确保您已经提供了尽可能多的背景信息。

@rdmclin2
Copy link
Collaborator

rdmclin2 commented Jul 8, 2024

@BD520 Thank you for raising an issue. It seems we duplicate the remark dependency in both "dependencies" and "devDependencies", we will fix it in the next version.

@rdmclin2
Copy link
Collaborator

rdmclin2 commented Jul 8, 2024

#107 @BD520 fixed in this pr , please try again

@rdmclin2 rdmclin2 closed this as completed Jul 8, 2024
@lobehubbot
Copy link
Member

@BD520


This issue is closed, If you have any questions, you can comment and reply.
此问题已经关闭。如果您有任何问题,可以留言并回复。

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

3 participants