配置
侒然
Live and learn; It is never too old to learn; Never too late to learn; No man is so old but that he may not learn;
展开
-
linux部署vue项目
配置端口和目录vi /usr/local/nginx/conf/nginx.conf原创 2022-12-13 14:04:50 · 186 阅读 · 0 评论 -
在linux上使用nginx部署
进1. 安装依赖包切换到nginx目录cd nginx解压安装包,安装Nginx执行make命令:make执行安装命令:make install查看是否安装成功:ps -ef | grep nginx(看是否有nginx进程)原创 2022-12-13 13:55:26 · 258 阅读 · 0 评论 -
pm2设置开机启动
生成开机启动 pm2 服务的配置文件运行:pm2 startup 命令原创 2022-12-12 14:01:13 · 4368 阅读 · 0 评论 -
命令行查看和修改远程仓库
修改远程仓库:git remote set-url origin https://gitee.com/XX/xx.git原创 2022-12-12 13:20:28 · 175 阅读 · 0 评论 -
fatal: unable to access ‘https://github.com/xxx/123.git/‘: Failed connect to github.com:443 解决方案
在linux上git clone时遇到fatal: unable to access 'https://github.com/xx/xx.git/': Failed connect to github.com:443; Connection timed out时如图解决方法:把https:改成git如果没有成功,遇上以下报错配置用户名,邮箱给该邮箱设置公钥回车三次后 得到如图 设置成功后进入~/.ssh, 复制公钥(ssh-rsa到邮箱那一块就是了)到github上的set原创 2022-07-08 13:38:34 · 4546 阅读 · 1 评论 -
vs code vue 格式化配置
首选项-设置 搜索vetur 找到setting.json "[vue]": { "editor.defaultFormatter": "octref.vetur" // 使用 vetur 格式化规则},"vetur.format.defaultFormatterOptions": { "prettier": { "semi": false, // 去掉分号 "singleQuote": true, // true 为使用单引号 .原创 2022-01-11 14:40:07 · 812 阅读 · 0 评论 -
THREE.FBXLoader: External library Inflate.min.js required, obtain or import from (错误记录)
解决方法:引用 <script src="js/loaders/FBXLoader.js"></script>原创 2021-06-16 15:32:41 · 2144 阅读 · 0 评论 -
yarn : 无法加载文件 C:\Users\larch\AppData\Roaming\npm\yarn.ps1,因为在此系统上禁止运行脚本
yarn : 无法加载文件 C:\Users\larch\AppData\Roaming\npm\yarn.ps1,因为在此系统上禁止运行脚本。有关详细信息,请参阅 https:/go.microsoft.com/fwlink/?LinkID=135170 中的 about_Exe cution_Policies。所在位置 行:1 字符: 1+ yarn install+ ~~~~ + CategoryInfo : SecurityError: (:) [],PSSecu.原创 2021-06-10 17:49:51 · 205 阅读 · 0 评论 -
淘宝镜像安装记录
淘宝镜像安装 npm install -g package --registry=https://registry.npm.taobao.org淘宝镜像报错记录npm ERR! code E404npm ERR! 404 Not Found - GET https://registry.npm.taobao.org/@babel/code-frame/-/code-frame-7.12.11.tgz - [not_found] document not foundnpm ERR! 404 '@原创 2021-05-17 13:23:26 · 409 阅读 · 0 评论 -
.tpl 文件高亮配置
文件-》首选项-》设置 "files.associations": { "*.tpl": "html" }原创 2021-03-16 12:40:39 · 442 阅读 · 0 评论 -
Copy Plugin has been initialized using an options object that does not match the API schema
Invalid options object. Copy Plugin has been initialized using an options object that does not match the API schema. - options[0] should be an object: object { patterns, options? }ValidationError: Invalid options object. Copy Plugin has been initiali.原创 2020-10-24 21:50:08 · 1937 阅读 · 0 评论 -
Gridsome的配置
yarn的安装yarn global add @gridsome/clinpm的安装npm install --global @gridsome/clisharp的库所在位置:https://github.com/lovell/sharpsharp的官方网址:https://sharp.pixelplumbing.com在官网中找到安装选择Chinese mirrornpm config set sharp_binary_host "https://npm.ta原创 2020-12-07 21:34:21 · 421 阅读 · 0 评论 -
pm2的使用
pm2配置文件ecosystem.config.jsmodule.exports = { apps : [{ name: 'app', script: '/usr/local/bin/npm', // Options reference: https://pm2.io/doc/en/runtime/reference/ecosystem-file/ instances: 1, autorestart: true, watch: false, m原创 2020-12-22 13:09:36 · 145 阅读 · 0 评论 -
vscode 配置Vue模板 mac
选择Code => 首选项 => 用户片段 (如下图)输入vue找到vue.json在vue.json添加代码,可以根据自己的需要自定义模板{ "vue": { "prefix": "vue", "body": [ "<!-- $1 -->", "<template>", "<div></div>", "</template>", "", "<script>",原创 2021-01-07 13:12:25 · 451 阅读 · 0 评论 -
vscode代码自动空格2格
在设置中搜索json在setting.json中添加 "editor.detectIndentation": false, "editor.tabSize": 2, //vscode设置的缩进量 "editor.formatOnSave": false, //保存时候自动格式化,不建议设置。我在这里设置为falsesetting.json参考{ "files.associations": { "*.html": "html" }, "原创 2021-01-30 17:47:21 · 2543 阅读 · 0 评论