feat: 删除 node_modules 文件夹非常耗时解决办法

master
LCJ-MinYa 2 months ago
parent 009a725fdf
commit 6825193266

@ -130,6 +130,10 @@ const titleArr = [
key: 'asyncDynComp',
title: '异步动态加载组件',
},
{
key: 'deletdNodeModules',
title: '删除 node_modules 文件夹非常耗时解决办法',
},
];
// @/views/demo/**/*.vue

@ -0,0 +1,9 @@
## 删除 node_modules 文件夹非常耗时解决办法
* 使用pnpm
* 用各种命令行工具删除都应该会快不少,资源管理器毛病就是会提前统计一大堆信息再删除,所以非常慢
* shift + del 直接删除不放回收站(windows)
* 命令行删除gui 删除windows 要先统计大小数量什么的,会慢很多。
## 参考网址
* [删除 node_modules 文件夹非常耗时](https://v2ex.com/t/1165028#reply14)

@ -0,0 +1,18 @@
<template>
<div
class="markdown-body"
v-html="htmlStr"
/>
</template>
<script setup>
import { ref } from 'vue';
import { marked } from 'marked';
import { getMarkdownContent } from '@/utils/tools';
const htmlStr = ref('');
getMarkdownContent('./md/deletdNodeModules.md').then((res) => {
htmlStr.value = marked(res);
});
</script>
Loading…
Cancel
Save