随笔分类 -  npm

摘要:使用淘宝镜像,只需要配置npm的registry指向淘宝的npm镜像服务器即可 npm config set registry https://registry.npmmirror.com cnpm - npm 阅读全文
posted @ 2025-07-17 23:00 小杨观世界 阅读(12) 评论(0) 推荐(0)
摘要:1、npm 安装插件 npm install -S uuid 2、生成随机字符串import { v4 as uuidv4 } from 'uuid' 3、用uuidv4()获取随机生成的字符串 sign.value = uuidv4(); 阅读全文
posted @ 2023-06-28 09:21 小杨观世界 阅读(139) 评论(0) 推荐(0)
摘要:解决方式一: tsconfig.json里添加 "forceConsistentCasingInFileNames":false 解决方式二:https://github.com/ant-design/pro-components/issues/6592#issuecomment-150135654 阅读全文
posted @ 2023-06-21 09:01 小杨观世界 阅读(3402) 评论(1) 推荐(2)
摘要:1、删除node_modules重新npm install 2、清空缓存之后再去安装 npm cache clean --force npm install 阅读全文
posted @ 2023-04-25 10:34 小杨观世界 阅读(138) 评论(0) 推荐(0)