Recently, a front-end and back-end separation project was implemented using git clone. A problem was encountered during the front-end startup. Node.js was used The NPM run serve command and the yarn run serve command will report an error when starting the front-end project. You have tried to download the dependent node that has been installed_ The modules folder and the whole front-end project still reported this problem. Baidu found the error: command failed: git describe — always, and did not find the corresponding article
Later, I finally found the problem and reported the error because of the environment variable problem of GIT
First, this is the wrong git configuration, which leads to the error: command failed: git describe — always problem
The following is how to correctly configure environment variables. Add CMD after the original path
Then, create a new CMD and enter yarn run serve to run normally. The problem I encountered is solved in this way
Read More:
- [Solved] Error: Cannot find module ‘@vue/cli-shared-utils
- [Solved] vue3vite Error: Failed to resolve import “@vue/server-renderer from “src\App.vue“. Does the file exist
- [Solved] Node sass version 7.0.0 is incompatible with ^ 4.0.0 | ^ 5.0.0 | ^ 6.0.0
- [Solved] Error spawn CMD enoent errno when starting Vue project: – 4058
- [Solved] Error Rule can only have one resource source (provided resource and test + include + exclude)
- [Solved] Error Rule can only have one resource source (provided resource and test + include + exclude)
- [Solved] gyp ERR! stack Error: Could not find any Python installation to use
- How to Solve Vue project Startup Error (Node Upgrade issue)
- [Solved] Ineffective mark-compacts near heap limit Allocation failed – JavaScript heap out of memory
- [Solved] Vue Compile Error: JavaScript heap out of memory
- package.json Scripts configuration environment variable distinguishes development environment from production environment
- [Solved] error C:\Users\HP\Desktop\VueProject\vue_cli\node_modules\node-sass: Command failed.Exit code: 1
- [Solved] NPM Start Project Error: ‘Error: error:0308010C:digital envelope routines::unsupported’
- How to Solve Vue-devtool Package Error
- CRA 5.0.0 Add Proxy Project Start Error [How to Solve]
- After Vite starts, it will prompt “network: use ` — host ` to expose”, and the service cannot be accessed through network IP
- [Solved] MSBUILD : error MSB3428: Could not load the Visual C++ component “VCBuild.exe“
- NPM run dev runs the Vue project and reports an error: Node Sass does not yet support your current environment
- [Solved] Vue Error: Syntax Error: TypeError: Cannot set properties of undefined (setting ‘XXX’)
- [Solved] Vue-cli3 running or packaging error: JS memory overflow