不器小窝 不器小窝
首页
随笔
  • GoLang
  • 前端

    • Vue
    • VuePress
  • 开发工具
  • 系统工具
读吧
  • ToDb (opens new window)
  • goKit (opens new window)
  • 友情链接
  • 免费信息
  • 时间线
  • 关于
GitHub (opens new window)

不器

知行合一
首页
随笔
  • GoLang
  • 前端

    • Vue
    • VuePress
  • 开发工具
  • 系统工具
读吧
  • ToDb (opens new window)
  • goKit (opens new window)
  • 友情链接
  • 免费信息
  • 时间线
  • 关于
GitHub (opens new window)
  • Js错误集合
  • Vue

  • VuePress

    • vuepress-theme-vdoing
    • VuePress错误信息
      • 引言
      • error:0308010C:digital envelope routines::unsupported
        • 解决方案
      • Github图床推荐
        • jsdelivr
        • staticaly
        • githack
        • CloudFlare
      • yarn dev无法加载文件C:\Program Files\nodejs\yarn.ps1,因为在此系统上禁止运行脚本
        • 解决方案
  • CSS

  • naive-ui

  • Vue-Admin

  • 前端
  • VuePress
不器
2022-09-18
目录

VuePress错误信息

# 引言

鉴于使用VuePress仅仅是为了好写博客的文章,所以实际过程中遇到的问题直接进行记录,用于下次直接修复。

# error:0308010C:digital envelope routines::unsupported

 this[kHandle] = new _Hash(algorithm, xofLen);
                  ^

Error: error:0308010C:digital envelope routines::unsupported
    at new Hash (node:internal/crypto/hash:67:19)
    at Object.createHash (node:crypto:130:10)
    at module.exports (/vuepress-theme-vdoing/node_modules/webpack/lib/util/createHash.js:135:53)
    at NormalModule._initBuildHash (/vuepress-theme-vdoing/node_modules/webpack/lib/NormalModule.js:417:16)
    at handleParseError (/vuepress-theme-vdoing/node_modules/webpack/lib/NormalModule.js:471:10)
    at /vuepress-theme-vdoing/node_modules/webpack/lib/NormalModule.js:503:5
    at /vuepress-theme-vdoing/node_modules/webpack/lib/NormalModule.js:358:12
    at /vuepress-theme-vdoing/node_modules/loader-runner/lib/LoaderRunner.js:373:3
    at iterateNormalLoaders (/vuepress-theme-vdoing/node_modules/loader-runner/lib/LoaderRunner.js:214:10)
    at Array.<anonymous> (/vuepress-theme-vdoing/node_modules/loader-runner/lib/LoaderRunner.js:205:4)
    at Storage.finished (/vuepress-theme-vdoing/node_modules/enhanced-resolve/lib/CachedInputFileSystem.js:55:16)
    at /vuepress-theme-vdoing/node_modules/enhanced-resolve/lib/CachedInputFileSystem.js:91:9
    at /vuepress-theme-vdoing/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 v17.3.0
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25

# 解决方案

可以通过设置环境变量来解决这个问题

# Windows
set NODE_OPTIONS=--openssl-legacy-provider

# Linux
export NODE_OPTIONS=--openssl-legacy-provider
1
2
3
4
5

# Github图床推荐

本解决方案以我博客 (opens new window)的图床为例,项目地址:xingcxb/blog_img: 博客图片 (opens new window),在blog1分支下

# jsdelivr 不推荐

https://cdn.jsdelivr.net/gh/xingcxb/blog_img@blog1/blog/basic/reading.png

# 基础部分 https://cdn.jsdelivr.net/gh 
# GitHub用户名  xingcxb
# 项目名  blog_img
# 分支    @blog1
# 其他的就是具体的路径了
1
2
3
4
5
6
7

# staticaly 荐

https://cdn.staticaly.com/gh/xingcxb/blog_img@blog1/blog/basic/reading.png

# 基础部分 https://cdn.staticaly.com/gh 
# GitHub用户名  xingcxb
# 项目名  blog_img
# 分支    @blog1
# 其他的就是具体的路径了
1
2
3
4
5
6
7

# githack 未测试

官网地址 (opens new window)

# CloudFlare 未测试

官网地址 (opens new window)

# yarn dev无法加载文件C:\Program Files\nodejs\yarn.ps1,因为在此系统上禁止运行脚本

# 解决方案

  1. 以管理员身份运行终端
  2. 在窗口上执行set-ExecutionPolicy RemoteSigned
  3. 查看执行策略:get-ExecutionPolicy,如果显示的为RemoteSigned即为处理成功
#VuePress#unsupported#错误
更新时间: 2023/2/26 14:13:38
vuepress-theme-vdoing
随手记录

← vuepress-theme-vdoing 随手记录→

最近更新
01
Vue-pure-Admin基础
03-16
02
WebStorm工具使用手册
03-15
03
Windows
03-12
更多文章>
Theme by Vdoing | Copyright © 2022-2023 不器 | 小窝
sitemap icon by Icons8
  • 跟随系统
  • 浅色模式
  • 深色模式
  • 阅读模式