在 mac终端运行命令的时候会被提示没有同意 xcode证书 ,这个时候需要在 Terminal中同意 license。
123You have not agreed to the Xcode license agreements. You must agree to both license agreements below in order to use Xcode.Press the 'return' key to view the license agreements at '/Applications/Xcode.app/Contents/Reso...
问题工程里有这么一段代码:
1234<template> <img id="logo" alt="Wails logo" src="./assets/images/logo-universal.png"/> <HelloWorld/></template>
IDE 提示错误信息: The template root requires exactly one element.
原因这是因为 vue的模版中只能有一个根节点,所以在 <template>中插入第二...
问题服务器出现问题:
1There appears to be trouble with your network connection. Retrying
原因yarn 超时
解决办法123456#查看代理yarn config list#删除代理yarn config delete proxy#更换淘宝镜像yarn config set registry https://registry.npm.taobao.org
以上。
问题在 git仓库中新建了一个仓库,想要把本地的工程目录推送上去:
123git initgit add .git commit "提交说明"
添加远程 git仓库:
1git remote add origin https://<access_token>@github.com/sakishum/xxx.git
推送到远程仓库:
1git push origin main
提示错误:
1234567git push -u origin mainTo https://github.com/sakishum/xxx.git ! [rejected] ...
避免 Ansible 无法存取第一次登录的 Server问题最近使用 ansible批量管理服务器,这批机器都没在我本机登录过,在首次运行 ansible-playbook操作时出现报错:
1fatal: [cache_01]: FAILED! => {"msg": "Using a SSH password instead of a key is not possible because Host Key checking is enabled and sshpass does not support this. Please add t...
背景最近写了些python脚本打算把它们都扔到Docker里面去跑。写完Dockerfile测试好,push上服务器运行时报错了。
12WARNING: The requested image's platform (linux/arm64/v8) does not match the detected host platform (linux/amd64) and no specific platform was requestedstandard_init_linux.go:228: exec user process caused: exec format error
...
问题最近在mac上升级golang到1.18版本,新建gin服务执行go run时报错:
123456789101112# golang.org/x/sys/unix../../../../go/pkg/mod/golang.org/x/sys@v0.0.0-20200116001909-b77594299b42/unix/syscall_darwin.1_13.go:25:3: //go:linkname must refer to declared function or variable../../../../go/pkg/mod/golang.org/x/sys@v0.0.0-2...
问题换了M1芯片的MBP, 最近在原有Vue项目中执行命令编译打包:
1npm run build:prod
遇到了以下报错:
12345error in ./src/styles/index.scssError: Node Sass does not yet support your current environment: OS X Unsupported architecture (arm64) with Unsupported runtime (93)For more information on which environments are supported please ...
问题在python脚本中连接postgres时遇到以下问题:
12345678Traceback (most recent call last): File "/Users/shenshijie/Documents/app/postgres/connect.py", line 2, in <module> import psycopg2 File "/opt/homebrew/lib/python3.9/site-packages/psycopg2/__init__.py", line 51, in <module>...
One of the biggest benefits of using docker for me has been the fact that it makes developing code with databases much simpler.
每当我想构建一个项目的时,倾向于使用postgres作为数据库。在Docker还没出现前,需要手动安装postgres到我本地机器,拉起服务,创建数据库表,创建指定的用户和对应的权限,最后在本地拉起项目来测试和开发。整个流程下来几个小时就过去了。
Docker出现后,事情变得异常简单。特别是在配合docker-compose使用后,...