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

本地电脑上,运行pnpm build失败,怎么解决? #71

Closed
briteming opened this issue Feb 2, 2025 · 1 comment
Closed

本地电脑上,运行pnpm build失败,怎么解决? #71

briteming opened this issue Feb 2, 2025 · 1 comment

Comments

@briteming
Copy link

hi.

12799@DESKTOP-B6LK9IO MINGW64 ~/blog-by-giscafer (master)
$ pnpm build

[email protected] build C:\Users\12799\blog-by-giscafer
next build

(node:28372) [DEP0040] DeprecationWarning: The punycode module is deprecated. Please use a userland alternative instead.
(Use node --trace-deprecation ... to show where the warning was created)
info - Loaded env from C:\Users\12799\blog-by-giscafer.env
Warning: Contentlayer might not work as expected on Windows
ConfigReadError {
error: Error: Cannot find module 'C:\Users\12799\blog-by-giscafer\node_modules\contentlayer\source-files' imported from C:\Users\12799\blog-by-giscafer\node_modules.contentlayer.cache\v0.0.34\compiled-contentlayer-config.mjs
at finalizeResolution (node:internal/modules/esm/resolve:275:11)
at moduleResolve (node:internal/modules/esm/resolve:860:10)
at defaultResolve (node:internal/modules/esm/resolve:984:11)
at ModuleLoader.defaultResolve (node:internal/modules/esm/loader:654:12)
at ModuleLoader.#cachedDefaultResolve (node:internal/modules/esm/loader:603:25)
at ModuleLoader.resolve (node:internal/modules/esm/loader:586:38)
at ModuleLoader.getModuleJobForImport (node:internal/modules/esm/loader:242:38)
at ModuleJob._link (node:internal/modules/esm/module_job:135:49) {
code: 'ERR_MODULE_NOT_FOUND',
url: 'file:///C:/Users/12799/blog-by-giscafer/node_modules/contentlayer/source-files'
},
configPath: 'C:\Users\12799\blog-by-giscafer\contentlayer.config.ts',
_tag: 'ConfigReadError',
toString: [Function (anonymous)]
}
 ELIFECYCLE  Command failed with exit code 1.

谢谢你的回复!

@giscafer
Copy link
Owner

giscafer commented Feb 5, 2025

我用的是 yarn 。 错误我也看不懂,可以问问AI看看。

@giscafer giscafer closed this as completed Feb 5, 2025
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