Using the Node 18 solve my problem,thanking everyone. 在2023年7月17日星期一 UTC+8 10:04:20<Chad Wilson> 写道:
> Maybe, GoCD is built with Node 18 right now. > > It still uses Webpack 4, which might not work correctly with Node 20. > > -Chad > > On Mon, 17 Jul 2023, 09:59 jianhua guo, <[email protected]> wrote: > >> After running the command "yarn cache clean" and "rm -rf >> server/src/main/webapp/WEB-INF/rails/node_modules", I compile the >> project again, then seeing the following exception, is it the nodejs >> version is too high? >> >> > Task :server:compileAssetsWebpackDev FAILED >> [/Users/guojianhua/gtja/projects/gocd/server/src/main/webapp/WEB-INF/rails]$ >> yarn run webpack-dev --env >> outputDir=/Users/guojianhua/gtja/projects/gocd/server/src/main/webapp/WEB-INF/rails/public/assets/webpack >> >> --env >> licenseReportFile=/Users/guojianhua/gtja/projects/gocd/server/target/reports/yarn-license/license-report.json >> yarn run v1.22.19 >> $ cross-env NODE_OPTIONS=--openssl-legacy-provider webpack --config >> webpack/config/webpack.config.ts --color --mode=development --env >> outputDir=/Users/guojianhua/gtja/projects/gocd/server/src/main/webapp/WEB-INF/rails/public/assets/webpack >> >> --env >> licenseReportFile=/Users/guojianhua/gtja/projects/gocd/server/target/reports/yarn-license/license-report.json >> /opt/homebrew/Cellar/node/20.3.0_1/bin/node: --openssl-legacy-provider is >> not allowed in NODE_OPTIONS >> error Command failed with exit code 9. >> >> 在2023年7月14日星期五 UTC+8 15:06:32<Chad Wilson> 写道: >> >>> The commit is still at >>> https://github.com/dtabuenc/karma-html-reporter/commit/51ba3f91a6f19ef383c676431aa7f8c3fa73dab3 >>> >>> so it *should* work fine. >>> >>> Perhaps try yarn cache clean and rm -rf >>> server/src/main/webapp/WEB-INF/rails/node_modules and try again? >>> >>> If that doesn't work, what's your Yarn version? Do you have some >>> non-standard global git or Yarn configuration? >>> >>> -Chad >>> >>> On Fri, Jul 14, 2023 at 2:43 PM jianhua guo <[email protected]> wrote: >>> >>>> I use the following command './gradlew clean prepare' to build the gocd >>>> project. Failed with the following exception, can anyone help? >>>> >>>> error Couldn't find match for >>>> "51ba3f91a6f19ef383c676431aa7f8c3fa73dab3" in >>>> "refs/heads/dependabot/npm_and_yarn/grunt-1.5.3,refs/heads/dependabot/npm_and_yarn/hosted-git-info-2.8.9,refs/heads/dependabot/npm_and_yarn/minimatch-3.0.8,refs/heads/dependabot/npm_and_yarn/minimist-and-mkdirp-1.2.8,refs/heads/karma-0.11,refs/heads/master,refs/tags/0.1.2,refs/tags/v0.1.3,refs/tags/v0.2.2,refs/tags/v0.2.3" >>>> >>>> for "https://github.com/dtabuenc/karma-html-reporter.git". >>>> info Visit https://yarnpkg.com/en/docs/cli/install for documentation >>>> about this command. >>>> >>>> -- >>>> You received this message because you are subscribed to the Google >>>> Groups "go-cd" group. >>>> To unsubscribe from this group and stop receiving emails from it, send >>>> an email to [email protected]. >>>> To view this discussion on the web visit >>>> https://groups.google.com/d/msgid/go-cd/9a3d1fd9-4c6b-4eaf-a43a-c52986b0f038n%40googlegroups.com >>>> >>>> <https://groups.google.com/d/msgid/go-cd/9a3d1fd9-4c6b-4eaf-a43a-c52986b0f038n%40googlegroups.com?utm_medium=email&utm_source=footer> >>>> . >>>> >>> -- >> You received this message because you are subscribed to the Google Groups >> "go-cd" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to [email protected]. >> > To view this discussion on the web visit >> https://groups.google.com/d/msgid/go-cd/b7b17d17-10e8-4d2d-8ffc-3f1b32f13a9en%40googlegroups.com >> >> <https://groups.google.com/d/msgid/go-cd/b7b17d17-10e8-4d2d-8ffc-3f1b32f13a9en%40googlegroups.com?utm_medium=email&utm_source=footer> >> . >> > -- You received this message because you are subscribed to the Google Groups "go-cd" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/go-cd/166387a7-c77f-4766-af7f-fc4aa201fc1bn%40googlegroups.com.
