Skip to content

最后的部署出错yarn dev 出错 #3158

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

Closed
rjku6 opened this issue Jul 24, 2023 · 3 comments
Closed

最后的部署出错yarn dev 出错 #3158

rjku6 opened this issue Jul 24, 2023 · 3 comments

Comments

@rjku6
Copy link

rjku6 commented Jul 24, 2023

D:\vuepress>yarn -v
1.22.19

D:\vuepress>yarn dev
yarn run v1.22.19
$ vuepress dev docs
wait Extracting site metadata...
tip Apply theme @vuepress/theme-default ...
tip Apply plugin container (i.e. "vuepress-plugin-container") ...
tip Apply plugin @vuepress/register-components (i.e. "@vuepress/plugin-register-components") ...
tip Apply plugin @vuepress/active-header-links (i.e. "@vuepress/plugin-active-header-links") ...
tip Apply plugin @vuepress/search (i.e. "@vuepress/plugin-search") ...
tip Apply plugin @vuepress/nprogress (i.e. "@vuepress/plugin-nprogress") ...

  • Client █████████████████████████ building (40%) 1/2 modules 1 active
    node_modules\webpack\hot\dev-server.js

i 「wds」: Project is running at http://0.0.0.0:8080/
i 「wds」: webpack output is served from /
i 「wds」: Content not from webpack is served from D:\vuepress\docs.vuepress\public
i 「wds」: 404s will fallback to /index.html
node:internal/crypto/hash:69
this[kHandle] = new _Hash(algorithm, xofLen);
^

Error: error:0308010C:digital envelope routines::unsupported
at new Hash (node:internal/crypto/hash:69:19)
at Object.createHash (node:crypto:133:10)
at module.exports (D:\vuepress\node_modules\webpack\lib\util\createHash.js:135:53)
at NormalModule._initBuildHash (D:\vuepress\node_modules\webpack\lib\NormalModule.js:417:16)
at handleParseError (D:\vuepress\node_modules\webpack\lib\NormalModule.js:471:10)
at D:\vuepress\node_modules\webpack\lib\NormalModule.js:503:5
at D:\vuepress\node_modules\webpack\lib\NormalModule.js:358:12
at D:\vuepress\node_modules\loader-runner\lib\LoaderRunner.js:373:3
at iterateNormalLoaders (D:\vuepress\node_modules\loader-runner\lib\LoaderRunner.js:214:10)
at Array. (D:\vuepress\node_modules\loader-runner\lib\LoaderRunner.js:205:4)
at Storage.finished (D:\vuepress\node_modules\enhanced-resolve\lib\CachedInputFileSystem.js:55:16)
at D:\vuepress\node_modules\enhanced-resolve\lib\CachedInputFileSystem.js:91:9
at D:\vuepress\node_modules\graceful-fs\graceful-fs.js:123:16
at FSReqCallback.readFileAfterClose [as oncomplete] (node:internal/fs/read_file_context:68:3) {
opensslErrorStack: [ 'error:03000086:digital envelope routines::initialization error' ],
library: 'digital envelope routines',
reason: 'unsupported',
code: 'ERR_OSSL_EVP_UNSUPPORTED'
}

Node.js v18.17.0
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

@Scorpio-xu
Copy link

我也是这样 好像是node版本太高了 我把node切换到14 可以了

@rjku6
Copy link
Author

rjku6 commented Aug 13, 2023

好的,目前换了一个文档docusaurus这个没有这种版本的问题

@rjku6 rjku6 closed this as completed Aug 13, 2023
@andyklimczak
Copy link

As of this moment, using node 14. 18 and 20 were the other versions I tried that did not work

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