Skip to content
New issue

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

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

Already on GitHub? # to your account

docker 构建问题 #446

Open
wjun52 opened this issue Oct 17, 2024 · 2 comments
Open

docker 构建问题 #446

wjun52 opened this issue Oct 17, 2024 · 2 comments

Comments

@wjun52
Copy link

wjun52 commented Oct 17, 2024

环境:mac
问题:
RUN cd /xiaoju-survey/web && npm install && npm run build-only
ERROR
32.0s
(node:7) ExperimentalWarning: Support for loading ES Module in require() is an experimental feature and might change at any time
(Use node --trace-warnings ... to show where the warning was created)
npm error Cannot read properties of null (reading 'matches')
npm error A complete log of this run can be found in: /root/.npm/_logs/2024-10-17T07_05_14_385Z-debug-0.log

@skique
Copy link
Collaborator

skique commented Oct 22, 2024

这个错误通常表明在执行 npm install 或 npm run build-only 时发生了问题,通常与 Node.js 的版本和依赖关系有关。

  1. 使用node -v查看node版本大于18
  2. 试着清理 npm 缓存,有时缓存问题会导致错误npm cache clean --force

@sudoooooo
Copy link
Collaborator

@wjun52 您好,请问问题解决了吗?

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants