正所謂工欲善其事必先利其器...
多個cmd合併成一個
項目一多,打開的cmd窗口個數也逐漸增加,不好管理,推薦Window Terminal
下載地址 https://github.com/microsoft/terminal
默認用的PowerShell,您可能會遇到
無法加載文件... 因爲在此係統中禁止執行腳本 ...
只需 以管理員身份運行power shell,輸入set-ExecutionPolicy RemoteSigned
然後輸入A 回車
您還可能遇到
nginx : 無法將“nginx”項識別爲 cmdlet、函數、腳本文件或可運行程序的名稱。請檢查名稱的拼
Suggestion [3,General]: 找不到命令 nginx,但它確實存在於當前位置。默認情況下,Windows PowerShell 不會從當前位置加載命令
。如果信任此命令,請改爲鍵入“.\nginx”。有關詳細信息,請參閱 "get-help about_Command_Precedence"。
其實已經給出答案了 要用.\的方式執行命令,
Github Desktop提交代碼報錯
您可能會遇到
husky > pre-commit (node v12.14.0)
/c/[my_project_path_here]/ClientApp/node_modules/.bin/pretty-quick: line 5: cygpath: command not found
internal/modules/cjs/loader.js:800
throw err;
^
Error: Cannot find module '...'
...
}
husky > pre-commit hook failed (add --no-verify to bypass)
然而使用VS code的git插件就沒有問題,那可能是路徑引起的
需要找到husky的配置,之前
{
"hooks": {
"pre-commit": "lint-staged",
"commit-msg": "commitlint -E HUSKY_GIT_PARAMS"
}
}
用npx 的方式解決路徑問題
{
"hooks": {
"pre-commit": "npx lint-staged",
"commit-msg": "npx commitlint -E HUSKY_GIT_PARAMS"
}
}
本文將持續更新
關注專題 前端便利店 https://www.jianshu.com/c/c3f77a86d9a5 ,幫您省時省力!