修改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 { export enum InstallDependenceCommandTypes {
'npm i -g -f --loglevel warn', 'pnpm add -g',
'pip3 install', 'pip3 install',
'apk add --no-cache -f', 'apk add --no-cache -f',
} }
export enum unInstallDependenceCommandTypes { export enum unInstallDependenceCommandTypes {
'npm uninstall -g -f --loglevel warn', 'pnpm remove -g',
'pip3 uninstall -y', 'pip3 uninstall -y',
'apk del -f', 'apk del -f',
} }

View File

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