修改node依赖安装命令

This commit is contained in:
whyour 2022-05-25 01:20:23 +08:00
parent 565cc06c27
commit 6a0aa6aae2
2 changed files with 4 additions and 3 deletions

View File

@ -37,13 +37,13 @@ export enum DependenceTypes {
}
export enum InstallDependenceCommandTypes {
'npm i -g -f --loglevel warn',
'pnpm add -g',
'pip3 install',
'apk add --no-cache -f',
}
export enum unInstallDependenceCommandTypes {
'npm uninstall -g -f --loglevel warn',
'pnpm remove -g',
'pip3 uninstall -y',
'apk del -f',
}

View File

@ -7,6 +7,7 @@ import {
CheckCircleOutlined,
} from '@ant-design/icons';
import { PageLoading } from '@ant-design/pro-layout';
import Ansi from 'ansi-to-react';
const DependenceLogModal = ({
dependence,
@ -140,7 +141,7 @@ const DependenceLogModal = ({
: {}
}
>
{value}
<Ansi>{value}</Ansi>
</pre>
)}
</Modal>