Jenkins deployment front-end project failed

failed to build a front-end project using jenkins, which is a problem when viewing jenkins"s console log.

clipboard.png
this shows that the react-router-dom module cannot be found. But I was fine when I was on the local build. Excuse me, what is the problem?


confirm whether package.json is configured with react-router-dom


have you solved the problem? I also encountered a problem, but the jenkins prompt was successful, but no file was generated

Menu