摘要: 改为用yarn install 原文链接 阅读全文
posted @ 2022-05-04 20:26 nate_pan 阅读(767) 评论(0) 推荐(0) 编辑
摘要: 报错原因:使用 async/await 后出现 解决 安装包 npm i babel-polyfill -D 使用包 webpack.config.js: require('babel-polyfill'); 项目入口文件: import 'babel-polyfill'; 阅读全文
posted @ 2022-04-21 17:48 nate_pan 阅读(43) 评论(0) 推荐(0) 编辑
摘要: 一个简单的入门模板,用于将 Phaser 与 Webpack 和 Capacitor 一起用于原生 iOS 和 Android 构建 github地址 阅读全文
posted @ 2022-04-18 15:11 nate_pan 阅读(19) 评论(0) 推荐(0) 编辑
摘要: 实测有效: 主要是SDK构建工具31上缺少2个文件,即1.dx.bat2.dx.jar,解决方案是这些文件在文件位置中被命名为d8,因此将它们的名称更改为dx将解决错误。步骤如下: 1)进入C:\Users\user\AppData\Local\Android\Sdk\build-tools\31. 阅读全文
posted @ 2022-04-14 11:21 nate_pan 阅读(293) 评论(0) 推荐(0) 编辑
摘要: https://blog.csdn.net/weixin_46796382/article/details/123075584 阅读全文
posted @ 2022-04-13 10:03 nate_pan 阅读(21) 评论(0) 推荐(0) 编辑
摘要: 基础命令 npm init -y 安装capacitor/cli和核心软件包 npm install @capacitor/cli @capacitor/core 初始化capacitor npx cap init npm install @capacitor/ios @capacitor/andr 阅读全文
posted @ 2022-03-10 11:41 nate_pan 阅读(83) 评论(0) 推荐(0) 编辑
摘要: gitbook -V 查看版本号 gitbook ls 列出本地全部的gitbook版本 gitbook init 初始化 gitbook install 安装插件 gitbook serve 预览 gitbook build 生成 gitbook build --gitbook=2.6.7 生成时 阅读全文
posted @ 2022-03-03 11:45 nate_pan 阅读(235) 评论(0) 推荐(0) 编辑
摘要: var fs = require('fs'), stat = fs.stat; /* * 复制目录中的所有文件包括子目录 * @param{ String } 需要复制的目录 * @param{ String } 复制到指定的目录 */ var copy = function (src, dst) 阅读全文
posted @ 2022-03-01 15:04 nate_pan 阅读(47) 评论(0) 推荐(0) 编辑
摘要: 查看当前存在哪些环境 conda env list 创建新的虚拟环境 conda create -n your_env_name python=X.X(2.7、3.6等) 激活虚拟环境 conda activate your_env_name 关闭虚拟环境 conda deactivate 删除虚拟 阅读全文
posted @ 2022-02-24 14:40 nate_pan 阅读(46) 评论(0) 推荐(0) 编辑
摘要: // 交换数组元素 var swapItems = function (arr, index1, index2) { arr[index1] = arr.splice(index2, 1, arr[index1])[0]; return arr; }; // 上移 var upRecord = fu 阅读全文
posted @ 2022-02-15 14:29 nate_pan 阅读(131) 评论(0) 推荐(0) 编辑