谢谢耐心观看!出现逻辑或者什么错误,麻烦指出,祝各位生活愉快,平安健康!
按教程搭建博客
到yarn add -D vuepress 这步 出现warning 但是后面又显示success,但是 vuepress -v 显示不是内部处理器
接着在本地启动服务器,失败了,不知道为什么,帮助我这个小菜鸡
error:03000086:digital envelope routines::initialization error 上网查过这个错误的解决方法 是vue的
这是过程的语言显示
D:\vuepress-starter>yarn docs: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-dev-server\client\index.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-starter\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-starter\node_modules\webpack\lib\util\createHash.js:135:53)
at NormalModule._initBuildHash (D:\vuepress-starter\node_modules\webpack\lib\NormalModule.js:417:16)
at handleParseError (D:\vuepress-starter\node_modules\webpack\lib\NormalModule.js:471:10)
at D:\vuepress-starter\node_modules\webpack\lib\NormalModule.js:503:5
at D:\vuepress-starter\node_modules\webpack\lib\NormalModule.js:358:12
at D:\vuepress-starter\node_modules\loader-runner\lib\LoaderRunner.js:373:3
at iterateNormalLoaders (D:\vuepress-starter\node_modules\loader-runner\lib\LoaderRunner.js:214:10)
at Array.<anonymous> (D:\vuepress-starter\node_modules\loader-runner\lib\LoaderRunner.js:205:4)
at Storage.finished (D:\vuepress-starter\node_modules\enhanced-resolve\lib\CachedInputFileSystem.js:55:16)
at D:\vuepress-starter\node_modules\enhanced-resolve\lib\CachedInputFileSystem.js:91:9
at D:\vuepress-starter\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.1
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.