git 出現 fatal: not a git repository (or any of the parent directories)問題
錯誤訊息為:fatal: not a git repository (or any of the parent directories): .git 中譯:找不到 .git 這樣的目錄。
使用 git init 指令
1
git init
remote: Support for password authentication was removed on August 13, 2021.
1 2 3
remote: Support for password authentication was removed on August 13, 2021. remote: Please see https://docs.github.com/en/get-started/getting-started-with-git/about-remote-repositories#cloning-with-https-urls for information on currently recommended modes of authentication. fatal: Authentication failed for 'https://github.com/gpg-team/lottery-front.git/'
Last login: Wed Jul 12 20:00:18 on console larahuang@larahuangde-MacBook-Pro db % json-server -v 0.17.3 larahuang@larahuangde-MacBook-Pro db % json-server db.json
Deprecation Warning [import]: Sass @import rules are deprecated and will be removed in Dart Sass 3.0.0. 棄用警告 [import]:Sass @import 規則已棄用,將在 Dart Sass 3.0.0 中刪除。 修改方式
import { createRouter, createWebHashHistory } from 'vue-router'; import FooComponent from 'path/to/foo-component'; import HomeComponent from 'path/to/home-component';
const routes = [ { path: '/', component: HomeComponent, meta: { title: import.meta.env.VITE_API_TITLE +'Home Page', // Title must be a string. }, }, { path: '/foo', component: FooComponent, meta: { title: 'Foo Page', }, }, ];