27 lines
525 B
Markdown
27 lines
525 B
Markdown
<h1>
|
||
Issue
|
||
<h3>问题解决方法</h3>
|
||
</h1>
|
||
|
||
### 取消阻止脚本以在不更改执行策略的情况下运行它
|
||
|
||
```bash
|
||
# 管理员身份运行 PowerShell
|
||
Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope LocalMachine
|
||
|
||
# 然后输入 Y,回车
|
||
```
|
||
|
||
### 解决 Error: error:0308010C:digital envelope routines::unsupported 错误
|
||
|
||
```bash
|
||
# 1 降低 node 版本至 17 以下
|
||
|
||
# 2 执行命令
|
||
# Windows 下
|
||
set NODE_OPTIONS=--openssl-legacy-provider
|
||
|
||
# Linux 下
|
||
export NODE_OPTIONS=--openssl-legacy-provider
|
||
```
|