上一页 1 2 3 4 5 6 ··· 11 下一页
  2024年2月2日
摘要: 1.查看已缓存包的列表 yarn cache list 2.查询cache缓存文件目录路径 yarn cache dir 3.yarn 清除缓存 yarn cache clean 4.npm清除缓存 npm cache clean --force 阅读全文
posted @ 2024-02-02 14:49 Steven_YF 阅读(71) 评论(0) 推荐(0) 编辑
摘要: 1.安装yarn npm install yarn -g 2.配置yarn淘宝镜像 yarn config set registry https://registry.npmmirror.com 3.查询yarn镜像地址 yarn config get registry 4.恢复官方镜像 yarn 阅读全文
posted @ 2024-02-02 14:19 Steven_YF 阅读(32) 评论(0) 推荐(0) 编辑
  2024年1月30日
摘要: 1.Object.keys() : 返回对象可枚举属性组成的数据 2.Object.values() :返回对象可枚举的属性的属性值,组成的数据 let person = { name: '小李', age: '15', } console.log(Object.keys(person)); // 阅读全文
posted @ 2024-01-30 15:46 Steven_YF 阅读(32) 评论(0) 推荐(0) 编辑
摘要: node : v18.19.0 npm : v10.2.3 已安装:yarn node : v17.7.2 npm : v8.5.2 已安装:@vue/cli 5.0.8 node : v16.20.2 npm : 8.19.4 已安装:@vue/cli 4.5.6 阅读全文
posted @ 2024-01-30 14:49 Steven_YF 阅读(1) 评论(0) 推荐(0) 编辑
摘要: 1. 清空缓存 npm cache clean --force 2.设置新淘宝镜像 npm config set registry https://registry.npmmirror.com/ 3.查看npm镜像 npm config get registry 阅读全文
posted @ 2024-01-30 13:00 Steven_YF 阅读(247) 评论(0) 推荐(0) 编辑
  2024年1月29日
摘要: 1.5.20.0以上版本才支持output属性里的clean:true 5.20.0+ 5.20以下版本清除dist文件内容一般使用插件 clean-webpack-plugin, 5.20版本以后output新增特性clean,用于清除dist文件 阅读全文
posted @ 2024-01-29 13:23 Steven_YF 阅读(44) 评论(0) 推荐(0) 编辑
摘要: 1.配置这个npx表示打包的时候选择本地node_modules安装的webpack来打包 阅读全文
posted @ 2024-01-29 11:41 Steven_YF 阅读(7) 评论(0) 推荐(0) 编辑
  2024年1月28日
摘要: 1. 使用 vue 创建项目的时候,报错 Error: spawn yarn ENOENT 1.1 用户自己设置了默认的包管理 yarn 1.2 没有安装 yarn 解决方式1: 打开 C盘 , 在 C盘 里,打开 users (用户名)的文件夹,然后在右侧搜索名为 .vuerc 的文件 修改.vu 阅读全文
posted @ 2024-01-28 11:47 Steven_YF 阅读(65) 评论(0) 推荐(0) 编辑
  2024年1月27日
摘要: 1.解决方式1 1.1设置淘宝镜像 npm config set registry http://registry.npm.taobao.org/ npm config get registry 参考:https://blog.csdn.net/m0_65066691/article/details 阅读全文
posted @ 2024-01-27 23:38 Steven_YF 阅读(279) 评论(0) 推荐(0) 编辑
摘要: 1.查看包版本命令 npm view less-loader versions 阅读全文
posted @ 2024-01-27 23:27 Steven_YF 阅读(115) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 ··· 11 下一页