Errors ferris-says: Error: Command failed: git --no-pager --git-dir="C:\Users\Administrator\.cargo\registry\index\github.com-1ecc6299db9ec823\.git" show origin/HEAD:fe/rr/ferris-says 'git' is not recognized as an internal or external command, operable program or batch file.
时间: 2023-12-04 14:02:42 浏览: 149
这个错误提示表明你的电脑上没有安装Git或者你的系统环境变量没有配置正确。在Windows上,你可以尝试以下步骤来解决这个问题:
1. 确认你已经安装了Git并且已经将其加入到系统环境变量中。你可以在命令行中输入"git --version"来查看Git的版本号。如果提示"git is not recognized as an internal or external command",说明你没有安装或者没有配置正确。
2. 如果你已经安装了Git但是仍然遇到了这个问题,可以尝试将Git的安装路径手动添加到系统环境变量中。具体步骤可以参考这个链接:https://stackoverflow.com/questions/26620312/git-is-not-recognized-as-an-internal-or-external-command
3. 如果以上两步都没有解决问题,可以尝试重新安装Git并且检查是否将其加入到系统环境变量中。
相关问题
sudo yarn run build yarn run v1.22.19 $ vue-cli-service build - Building for production... Browserslist: caniuse-lite is outdated. Please run: npx browserslist@latest --update-db Browserslist: caniuse-lite is outdated. Please run: npx browserslist@latest --update-db ERROR Failed to compile with 1 errors12:29:56 AM error unable to locate '/home/ant-design-vue-jeecg/imgData' glob ERROR Build failed with errors. error Command failed with exit code 1. info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
根据你提供的信息,这是一个使用 Vue CLI 进行构建的项目,在构建时出现了一个错误。这个错误的具体信息是:“unable to locate '/home/ant-design-vue-jeecg/imgData' glob”。这个错误可能是由于在项目的某个地方使用了一个路径,但是该路径并不存在或者无法访问导致的。建议你检查一下代码中是否有这个路径的引用,并且确认该路径是否正确。另外,你可以尝试运行命令“npx browserslist@latest --update-db”来更新 caniuse-lite 数据库,可能会有帮助。
-- Detected 64-bit platform -- UNIX: Configuring uninstall target -- UNIX: Created uninstall target -- UNIX: Using default system linker -- UNIX: Detected compiler: /usr/bin/cc -- Clang: Minimum version required is 7.0.0, found 14.0.0 - ok! -- Using mysql-config: /usr/bin/mysql_config -- Found MySQL library: /usr/lib/x86_64-linux-gnu/libmysqlclient.so -- Found MySQL headers: /usr/include/mysql -- Found MySQL executable: /usr/bin/mysql fatal: 不是 git 仓库(或者任何父目录):.git CMake Error at cmake/genrev.cmake:116 (string): string sub-command REGEX, mode MATCH needs at least 5 arguments total to command. Call Stack (most recent call first): CMakeLists.txt:83 (include) * TrinityCore revision : + (+ branch) * TrinityCore buildtype : RelWithDebInfo * Install core to : /home/wow/server3.5.5 * Install configs to : /home/wow/server/etc * Build world/auth : Yes (default) * Build with scripts : Yes (static) * Build map/vmap tools : Yes (default) * Build unit tests : No (default) * Build core w/PCH : Yes (default) * Build scripts w/PCH : Yes (default) * Show compile-warnings : No (default) * Use coreside debug : No (default) * Show source tree : Yes (hierarchical) * Use GIT revision hash : Yes (default) -- Found OpenSSL library: /usr/lib/x86_64-linux-gnu/libssl.so;/usr/lib/x86_64-linux-gnu/libcrypto.so -- Found OpenSSL headers: /usr/include CMake Error at cmake/macros/FindOpenSSL.cmake:579 (message): TrinityCore needs OpenSSL version 1.0 but found too new version 3.0.2. TrinityCore needs OpenSSL 1.0.x or 1.1.x to work properly. If you still have problems please install OpenSSL 1.0.x if you still have problems search on forum for TCE00022 Call Stack (most recent call first): dep/openssl/CMakeLists.txt:16 (find_package) -- Configuring incomplete, errors occurred! See also "/home/wow/TrinityCore/TrinityCore-TDB335.22061/build/CMakeFiles/CMakeOutput.log". See also "/home/wow/TrinityCore/TrinityCore-TDB335.22061/build/CMakeFiles/CMakeError.log".
这是一个 CMake 构建过程中的错误,可能是因为 OpenSSL 的版本太新了,而 TrinityCore 需要的是 OpenSSL 1.0.x 或 1.1.x 版本。你可以尝试安装 OpenSSL 1.0.x,或者在论坛上搜索 TCE00022 这个错误码,看看有没有其他解决方案。另外,也可以查看 CMake 的输出日志文件以获取更详细的错误信息。
阅读全文
相关推荐

















