appveyor build failed--

不飞则已,一飞冲天;不鸣则已,一鸣惊人。这篇文章主要讲述appveyor build failed--相关的知识,希望能为你提供帮助。

  https://www.cnblogs.com/lqerio/p/11117498.html
使用了appveyor 进行 hexo 博客的版本控制持续集成。
今天push 到 github的 repo时报错    appveyor build failed
打开appveyor 的细节提示

Build started git clone -q --depth=5 --branch=master https://github.com/TouwaErioH/TouwaErioH.github.io.source.git C:\\projects\\touwaerioh-github-io-source git checkout -qf 7b641c12aa046f78b06c568475a6f514e1aef6e4 Running Install scripts node --version v8.17.0 npm --version 6.13.4 npm install npm ERR! code EINTEGRITY npm ERR! sha512-AOYza4+Hf5z1/0Hztxpm2/xiPZgi/cjMqdnKTUWTBSKchJlxXXuUSxCCl8rJlf4g6yww/j6mA8nC8Hw/EZWxKQ== integrity checksum failed when using sha512: wanted sha512-AOYza4+Hf5z1/0Hztxpm2/xiPZgi/cjMqdnKTUWTBSKchJlxXXuUSxCCl8rJlf4g6yww/j6mA8nC8Hw/EZWxKQ== but got sha512-0KpjqXRVvrYyCsX1swR/XTK0va6VQkQM6MNo7PqW77ByjAhoARA8EfrP1N4+KlKj8YS0ZUCtRT/YUuhyYDujIQ==. (13081 bytes) npm ERR! A complete log of this run can be found in: npm ERR!C:\\Users\\appveyor\\AppData\\Roaming\\npm-cache\\_logs\\2020-02-13T12_02_15_069Z-debug.log Command exited with code 1

Build started git clone -q --depth=5 --branch=master https://github.com/TouwaErioH/TouwaErioH.github.io.source.git C:\\projects\\touwaerioh-github-io-source git checkout -qf a4f6fc837cf7b41594ba268f2373d141644e731b Running Install scripts node --version v8.17.0 npm --version 6.13.4 npm cache verify Cache verified and compressed (~\\AppData\\Roaming\\npm-cache\\_cacache): Content verified: 0 (0 bytes) Index entries: 0 Finished in 0.032s npm install --registry=https://registry.npm.taobao.org npm ERR! code EINTEGRITY npm ERR! sha512-AOYza4+Hf5z1/0Hztxpm2/xiPZgi/cjMqdnKTUWTBSKchJlxXXuUSxCCl8rJlf4g6yww/j6mA8nC8Hw/EZWxKQ== integrity checksum failed when using sha512: wanted sha512-AOYza4+Hf5z1/0Hztxpm2/xiPZgi/cjMqdnKTUWTBSKchJlxXXuUSxCCl8rJlf4g6yww/j6mA8nC8Hw/EZWxKQ== but got sha512-0KpjqXRVvrYyCsX1swR/XTK0va6VQkQM6MNo7PqW77ByjAhoARA8EfrP1N4+KlKj8YS0ZUCtRT/YUuhyYDujIQ==. (13081 bytes) npm ERR! A complete log of this run can be found in: npm ERR!C:\\Users\\appveyor\\AppData\\Roaming\\npm-cache\\_logs\\2020-02-13T17_16_45_726Z-debug.log Command exited with code 1

 
 
解决:同时采用了下面的办法
1.先更新了本地的nodejs
在CMD
npm install -g npm --registry=https://registry.npm.taobao.org

注意要加 后面的换阿里源,否则报错
rollbackFailedOptional

2.   
删除本地 github.io.source 文件夹下的package-lock.json 文件,然后push到github(也就是删除了库里的这个文件)    // 我觉得是这个步骤起到了作用。网上说的意思大概是之前的package-lock.json文件可能有版本问题,而更新后的nodejs  (5.0版本之后)会自动生成该文件,所以删掉之前的
3.修改了  github.io.source的 appveyor.yml。修改的地方是在install 加了阿里源
 
clone_depth: 5environment: access_token: secure:e0WeAfddWE5azhP8gJ2o6guP53olymSbeTUBSYsuPjv1do0oBt7tEZWz8e23OJeWinstall: - node --version - npm --version - npm cache verify - npm install --registry=https://registry.npm.taobao.org - npm install hexo-cli -g --registry=https://registry.npm.taobao.orgbuild_script: - hexo generateartifacts: - path: publicon_success: - git config --global credential.helper store - ps: Add-Content "$env:USERPROFILE\\.git-credentials" "https://$($env:access_token):x-oauth-basic@github.com`n" - git config --global user.email "%GIT_USER_EMAIL%" - git config --global user.name "%GIT_USER_NAME%" - git clone --depth 5 -q --branch=%TARGET_BRANCH% %STATIC_SITE_REPO% %TEMP%\\static-site - cd %TEMP%\\static-site - del * /f /q - for /d %%p IN (*) do rmdir "%%p" /s /q - SETLOCAL EnableDelayedExpansion & robocopy "%APPVEYOR_BUILD_FOLDER%\\public" "%TEMP%\\static-site" /e & IF !ERRORLEVEL! EQU 1 (exit 0) ELSE (IF !ERRORLEVEL! EQU 3 (exit 0) ELSE (exit 1)) - git add -A - if "%APPVEYOR_REPO_BRANCH%"=="master" if not defined APPVEYOR_PULL_REQUEST_NUMBER (git diff --quiet --exit-code --cached || git commit -m "Update Static Site" & & git push origin %TARGET_BRANCH% & & appveyor AddMessage "Static Site Updated")

 
然后再写了新的md,push,过一会儿就自动部署了。
【appveyor build failed--】再看appveyor 的 project的详细信息,部署success
Build started git clone -q --depth=5 --branch=master https://github.com/TouwaErioH/TouwaErioH.github.io.source.git C:\\projects\\touwaerioh-github-io-source git checkout -qf 454e88740d78a70a5454988c1133c5f21761ea3a Running Install scripts node --version v8.17.0 npm --version 6.13.4 npm cache verify Cache verified and compressed (~\\AppData\\Roaming\\npm-cache\\_cacache): Content verified: 0 (0 bytes) Index entries: 0 Finished in 0.031s npm install --registry=https://registry.npm.taobao.org npm WARN deprecated swig@1.4.2: This package is no longer maintained npm WARN deprecated core-js@1.2.7: core-js@< 3 is no longer maintained and not recommended for usage due to the number of issues. Please, upgrade your dependencies to the actual version of core-js@3. npm WARN deprecated core-js@2.6.11: core-js@< 3 is no longer maintained and not recommended for usage due to the number of issues. Please, upgrade your dependencies to the actual version of core-js@3. > core-js@2.6.11 postinstall C:\\projects\\touwaerioh-github-io-source\\node_modules\\babel-runtime\\node_modules\\core-js > node -e "try{require(\'./postinstall\')}catch(e){}" > ejs@2.7.4 postinstall C:\\projects\\touwaerioh-github-io-source\\node_modules\\ejs > node ./postinstall.js npm notice created a lockfile as package-lock.json. You should commit this file. npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.11 (node_modules\\fsevents): npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.11: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"ia32"}) added 437 packages from 536 contributors in 50.054s 2 packages are looking for funding run `npm fund` for details npm install hexo-cli -g --registry=https://registry.npm.taobao.org C:\\Users\\appveyor\\AppData\\Roaming\\npm\\hexo -> C:\\Users\\appveyor\\AppData\\Roaming\\npm\\node_modules\\hexo-cli\\bin\\hexo npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@2.1.2 (node_modules\\hexo-cli\\node_modules\\fsevents): npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@2.1.2: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"ia32"}) + hexo-cli@3.1.0 added 74 packages from 319 contributors in 8.387s hexo generate INFOStart processing WARN=============================================================== WARN========================= ATTENTION! ========================== WARN=============================================================== WARNNexT repository is moving here: https://github.com/theme-next WARN=============================================================== WARNIt\'s rebase to v6.0.0 and future maintenance will resume there WARN=============================================================== INFOFiles loaded in 1.46 s INFOGenerated: search.xml INFOGenerated: index.html INFOGenerated: favicon.ico INFOGenerated: categories/index.html INFOGenerated: tags/index.html INFOGenerated: archives/index.html INFOGenerated: about/index.html INFOGenerated: categories/diary/index.html INFOGenerated: categories/virus/index.html INFOGenerated: tags/thoughts/index.html INFOGenerated: tags/dp/index.html INFOGenerated: tags/宏/index.html INFOGenerated: images/00.jpg INFOGenerated: images/Sakurai Akimi.jpg INFOGenerated: images/algolia_logo.svg INFOGenerated: images/apple-touch-icon-next.png INFOGenerated: images/avatar.gif INFOGenerated: images/cc-by-nc-sa.svg INFOGenerated: images/cc-by-nc-nd.svg INFOGenerated: images/cc-by-nd.svg INFOGenerated: images/cc-by-sa.svg INFOGenerated: images/cc-by-nc.svg INFOGenerated: images/cc-by.svg INFOGenerated: images/cc-zero.svg INFOGenerated: images/favicon-16x16-next.png INFOGenerated: images/favicon-32x32-next.png INFOGenerated: images/loading.gif INFOGenerated: images/placeholder.gif INFOGenerated: images/logo.svg INFOGenerated: images/quote-r.svg INFOGenerated: images/quote-l.svg INFOGenerated: images/searchicon.png INFOGenerated: archives/2018/08/index.html INFOGenerated: archives/2018/12/index.html INFOGenerated: images/timg.jpg INFOGenerated: images/00.jpeg INFOGenerated: images/kk.jpg INFOGenerated: archives/2018/index.html INFOGenerated: archives/2019/index.html INFOGenerated: archives/2019/01/index.html INFOGenerated: lib/fastclick/LICENSE INFOGenerated: lib/algolia-instant-search/instantsearch.min.css INFOGenerated: lib/canvas-nest/canvas-nest.min.js INFOGenerated: lib/canvas-ribbon/canvas-ribbon.js INFOGenerated: lib/needsharebutton/needsharebutton.css INFOGenerated: lib/jquery_lazyload/bower.json INFOGenerated: lib/pace/pace-theme-big-counter.min.css INFOGenerated: css/main.css INFOGenerated: lib/velocity/bower.json INFOGenerated: lib/three/canvas_lines.min.js INFOGenerated: lib/jquery/index.js INFOGenerated: archives/2019/04/index.html INFOGenerated: images/hui.jpeg INFOGenerated: lib/font-awesome/bower.json INFOGenerated: lib/fastclick/bower.json INFOGenerated: lib/jquery_lazyload/jquery.lazyload.js INFOGenerated: lib/pace/pace-theme-bounce.min.css INFOGenerated: lib/jquery_lazyload/jquery.scrollstop.js INFOGenerated: lib/pace/pace-theme-barber-shop.min.css INFOGenerated: lib/pace/pace-theme-center-radar.min.css INFOGenerated: lib/pace/pace-theme-center-atom.min.css INFOGenerated: lib/pace/pace-theme-center-simple.min.css INFOGenerated: lib/pace/pace-theme-center-circle.min.css INFOGenerated: lib/pace/pace-theme-fill-left.min.css INFOGenerated: lib/pace/pace-theme-corner-indicator.min.css INFOGenerated: lib/velocity/velocity.ui.min.js INFOGenerated: lib/pace/pace-theme-mac-osx.min.css INFOGenerated: lib/pace/pace-theme-flash.min.css INFOGenerated: lib/pace/pace-theme-minimal.min.css INFOGenerated: lib/fastclick/README.html INFOGenerated: lib/jquery_lazyload/CONTRIBUTING.html INFOGenerated: lib/pace/pace.min.js INFOGenerated: lib/pace/pace-theme-loading-bar.min.css INFOGenerated: lib/velocity/velocity.min.js INFOGenerated: lib/needsharebutton/font-embedded.css INFOGenerated: lib/jquery_lazyload/README.html INFOGenerated: lib/three/canvas_sphere.min.js INFOGenerated: lib/three/three-waves.min.js INFOGenerated: lib/needsharebutton/needsharebutton.js INFOGenerated: lib/algolia-instant-search/instantsearch.min.js INFOGenerated: lib/velocity/velocity.ui.js INFOGenerated: lib/font-awesome/HELP-US-OUT.txt INFOGenerated: lib/velocity/velocity.js INFOGenerated: lib/three/three.min.js INFOGenerated: lib/font-awesome/fonts/fontawesome-webfont.woff INFOGenerated: lib/Han/dist/font/han-space.otf INFOGenerated: lib/fancybox/source/helpers/fancybox_buttons.png INFOGenerated: js/src/affix.js INFOGenerated: lib/ua-parser-js/dist/ua-parser.min.js INFOGenerated: lib/fastclick/lib/fastclick.min.js INFOGenerated: js/src/algolia-search.js INFOGenerated: lib/font-awesome/fonts/fontawesome-webfont.woff2 INFOGenerated: js/src/exturl.js INFOGenerated: js/src/bootstrap.js INFOGenerated: js/src/hook-duoshuo.js INFOGenerated: js/src/js.cookie.js INFOGenerated: js/src/motion.js INFOGenerated: js/src/post-details.js INFOGenerated: js/src/scroll-cookie.js INFOGenerated: lib/fancybox/source/jquery.fancybox.css INFOGenerated: lib/ua-parser-js/dist/ua-parser.pack.js INFOGenerated: js/src/scrollspy.js INFOGenerated: js/src/utils.js INFOGenerated: lib/fancybox/source/helpers/jquery.fancybox-buttons.js INFOGenerated: lib/fancybox/source/helpers/jquery.fancybox-buttons.css INFOGenerated: lib/fancybox/source/helpers/jquery.fancybox-media.js INFOGenerated: lib/fancybox/source/helpers/jquery.fancybox-thumbs.css INFOGenerated: lib/Han/dist/han.min.css INFOGenerated: lib/fancybox/source/jquery.fancybox.js INFOGenerated: lib/Han/dist/han.min.js INFOGenerated: lib/fastclick/lib/fastclick.js INFOGenerated: lib/font-awesome/css/font-awesome.css INFOGenerated: lib/Han/dist/han.css INFOGenerated: lib/fancybox/source/helpers/jquery.fancybox-thumbs.js INFOGenerated: lib/Han/dist/han.js INFOGenerated: 2019/04/21/置顶/index.html INFOGenerated: lib/font-awesome/fonts/fontawesome-webfont.svg INFOGenerated: lib/fancybox/source/jquery.fancybox.pack.js INFOGenerated: lib/font-awesome/css/font-awesome.min.css INFOGenerated: 2018/12/01/codeforces-235B/index.html INFOGenerated: lib/font-awesome/fonts/FontAwesome.otf INFOGenerated: lib/fancybox/source/blank.gif INFOGenerated: lib/fancybox/source/fancybox_loading@2x.gif INFOGenerated: lib/font-awesome/fonts/fontawesome-webfont.ttf INFOGenerated: lib/fancybox/source/fancybox_overlay.png INFOGenerated: lib/fancybox/source/fancybox_sprite@2x.png INFOGenerated: lib/font-awesome/fonts/fontawesome-webfont.eot INFOGenerated: lib/Han/dist/font/han-space.woff INFOGenerated: lib/Han/dist/font/han.otf INFOGenerated: lib/fancybox/source/fancybox_loading.gif INFOGenerated: lib/fancybox/source/fancybox_sprite.png INFOGenerated: lib/Han/dist/font/han.woff INFOGenerated: lib/font-awesome/css/font-awesome.css.map INFOGenerated: lib/Han/dist/font/han.woff2 INFOGenerated: 2019/01/18/18-19/index.html INFOGenerated: 2019/04/14/简单的宏病毒/index.html INFOGenerated: 2018/08/27/Some-thoughts-in-the-2018-summer/index.html INFOGenerated: 2018/12/01/Hexo的版本控制与持续集成/index.html INFOGenerated: js/src/schemes/pisces.js INFO139 files generated in 2.66 s Discovering tests...OK Collecting artifacts... Found artifact \'public\' matching \'public\' path Uploading artifacts... [1/1] public.zip (2,263,921 bytes)...100% git config --global credential.helper store Add-Content "$env:USERPROFILE\\.git-credentials" "https://$($env:access_token):x-oauth-basic@github.com`n" git config --global user.email "%GIT_USER_EMAIL%" git config --global user.name "%GIT_USER_NAME%" git clone --depth 5 -q --branch=%TARGET_BRANCH% %STATIC_SITE_REPO% %TEMP%\\static-site cd %TEMP%\\static-site del * /f /q for /d %%p IN (*) do rmdir "%%p" /s /q SETLOCAL EnableDelayedExpansion & robocopy "%APPVEYOR_BUILD_FOLDER%\\public" "%TEMP%\\static-site" /e & IF !ERRORLEVEL! EQU 1 (exit 0) ELSE (IF !ERRORLEVEL! EQU 3 (exit 0) ELSE (exit 1)) ------------------------------------------------------------------------------- ROBOCOPY::Robust File Copy for Windows ------------------------------------------------------------------------------- Started : Friday, February 14, 2020 5:49:28 AM Source : C:\\projects\\touwaerioh-github-io-source\\public\\ Dest : C:\\Users\\appveyor\\AppData\\Local\\Temp\\1\\static-site\\ Files : *.*Options : *.* /S /E /DCOPY:DA /COPY:DAT /R:1000000 /W:30 ------------------------------------------------------------------------------ 3C:\\projects\\touwaerioh-github-io-source\\public\\ *EXTRA Dir-1C:\\Users\\appveyor\\AppData\\Local\\Temp\\1\\static-site\\.git\\ 100% 100% 100% New Dir0C:\\projects\\touwaerioh-github-io-source\\public\\2018\\ New Dir0C:\\projects\\touwaerioh-github-io-source\\public\\2018\\08\\ New Dir0C:\\projects\\touwaerioh-github-io-source\\public\\2018\\08\\27\\ New Dir1C:\\projects\\touwaerioh-github-io-source\\public\\2018\\08\\27\\Some-thoughts-in-the-2018-summer\\ 100% New Dir0C:\\projects\\touwaerioh-github-io-source\\public\\2018\\12\\ New Dir0C:\\projects\\touwaerioh-github-io-source\\public\\2018\\12\\01\\ New Dir1C:\\projects\\touwaerioh-github-io-source\\public\\2018\\12\\01\\codeforces-235B\\ 100% New Dir1C:\\projects\\touwaerioh-github-io-source\\public\\2018\\12\\01\\Hexo??????????\\ 100% New Dir0C:\\projects\\touwaerioh-github-io-source\\public\\2019\\ New Dir0C:\\projects\\touwaerioh-github-io-source\\public\\2019\\01\\ New Dir0C:\\projects\\touwaerioh-github-io-source\\public\\2019\\01\\18\\ New Dir1C:\\projects\\touwaerioh-github-io-source\\public\\2019\\01\\18\\18-19\\ 100% New Dir0C:\\projects\\touwaerioh-github-io-source\\public\\2019\\04\\ New Dir0C:\\projects\\touwaerioh-github-io-source\\public\\2019\\04\\14\\ New Dir1C:\\projects\\touwaerioh-github-io-source\\public\\2019\\04\\14\\??????\\ 100% New Dir0C:\\projects\\touwaerioh-github-io-source\\public\\2019\\04\\21\\ New Dir1C:\\projects\\touwaerioh-github-io-source\\public\\2019\\04\\21\\??\\ 100% New Dir1C:\\projects\\touwaerioh-github-io-source\\public\\about\\ 100% New Dir1C:\\projects\\touwaerioh-github-io-source\\public\\archives\\ 100% New Dir1C:\\projects\\touwaerioh-github-io-source\\public\\archives\\2018\\ 100% New Dir1C:\\projects\\touwaerioh-github-io-source\\public\\archives\\2018\\08\\ 100% New Dir1C:\\projects\\touwaerioh-github-io-source\\public\\archives\\2018\\12\\ 100% New Dir1C:\\projects\\touwaerioh-github-io-source\\public\\archives\\2019\\ 100% New Dir1C:\\projects\\touwaerioh-github-io-source\\public\\archives\\2019\\01\\ 100% New Dir1C:\\projects\\touwaerioh-github-io-source\\public\\archives\\2019\\04\\ 100% New Dir1C:\\projects\\touwaerioh-github-io-source\\public\\categories\\ 100% New Dir1C:\\projects\\touwaerioh-github-io-source\\public\\categories\\diary\\ 100% New Dir1C:\\projects\\touwaerioh-github-io-source\\public\\categories\\virus\\ 100% New Dir1C:\\projects\\touwaerioh-github-io-source\\public\\css\\ 100% New Dir24C:\\projects\\touwaerioh-github-io-source\\public\\images\\ 100% 100% 100% 100% 100% 100% 100% 100% 100% 100% 100% 100% 100% 100% 100% 100% 100% 100% 100% 100% 100% 100% 100% 100% New Dir0C:\\projects\\touwaerioh-github-io-source\\public\\js\\ New Dir11C:\\projects\\touwaerioh-github-io-source\\public\\js\\src\\ 100% 100% 100% 100% 100% 100% 100% 100% 100% 100% 100% New Dir1C:\\projects\\touwaerioh-github-io-source\\public\\js\\src\\schemes\\ 100% New Dir0C:\\projects\\touwaerioh-github-io-source\\public\\lib\\ New Dir2C:\\projects\\touwaerioh-github-io-source\\public\\lib\\algolia-instant-search\\ 100% 100% New Dir1C:\\projects\\touwaerioh-github-io-source\\public\\lib\\canvas-nest\\ 100% New Dir1C:\\projects\\touwaerioh-github-io-source\\public\\lib\\canvas-ribbon\\ 100% New Dir0C:\\projects\\touwaerioh-github-io-source\\public\\lib\\fancybox\\ New Dir9C:\\projects\\touwaerioh-github-io-source\\public\\lib\\fancybox\\source\\ 100% 100% 100% 100% 100% 100% 100% 100% 100% New Dir6C:\\projects\\touwaerioh-github-io-source\\public\\lib\\fancybox\\source\\helpers\\ 100% 100% 100% 100% 100% 100% New Dir3C:\\projects\\touwaerioh-github-io-source\\public\\lib\\fastclick\\ 100% 100% 100% New Dir2C:\\projects\\touwaerioh-github-io-source\\public\\lib\\fastclick\\lib\\ 100% 100% New Dir2C:\\projects\\touwaerioh-github-io-source\\public\\lib\\font-awesome\\ 100% 100% New Dir3C:\\projects\\touwaerioh-github-io-source\\public\\lib\\font-awesome\\css\\ 100% 100% 100% New Dir6C:\\projects\\touwaerioh-github-io-source\\public\\lib\\font-awesome\\fonts\\ 100% 100% 100% 100% 100% 100% New Dir0C:\\projects\\touwaerioh-github-io-source\\public\\lib\\Han\\ New Dir4C:\\projects\\touwaerioh-github-io-source\\public\\lib\\Han\\dist\\ 100% 100% 100% 100% New Dir5C:\\projects\\touwaerioh-github-io-source\\public\\lib\\Han\\dist\\font\\ 100% 100% 100% 100% 100% New Dir1C:\\projects\\touwaerioh-github-io-source\\public\\lib\\jquery\\ 100% New Dir5C:\\projects\\touwaerioh-github-io-source\\public\\lib\\jquery_lazyload\\ 100% 100% 100% 100% 100% New Dir3C:\\projects\\touwaerioh-github-io-source\\public\\lib\\needsharebutton\\ 100% 100% 100% New Dir14C:\\projects\\touwaerioh-github-io-source\\public\\lib\\pace\\ 100% 100% 100% 100% 100% 100% 100% 100% 100% 100% 100% 100% 100% 100% New Dir4C:\\projects\\touwaerioh-github-io-source\\public\\lib\\three\\ 100% 100% 100% 100% New Dir0C:\\projects\\touwaerioh-github-io-source\\public\\lib\\ua-parser-js\\ New Dir2C:\\projects\\touwaerioh-github-io-source\\public\\lib\\ua-parser-js\\dist\\ 100% 100% New Dir5C:\\projects\\touwaerioh-github-io-source\\

    推荐阅读