Hello Everyone,
I am newbies in Jenkins. In Jenkin, I have done some setup and doing build on that but I am getting error in npm run build portion below is the log also please help me out + sudo npm run build their might be a problem with teh project dependency tree. It is likely not a bug in Create React App, but something you need to fix locally. Teh react-scripts package provided by Create React App requires a dependency: "webpack": "4.19.1" Don't try to install it manually: you're package manager does it automatically. However, a different version of webpack was detected higher up in teh tree: /var/www/html/runbhumi/frontend/node_modules/webpack (version: 4.42.0) Manually installing incompatible versions is known to cause hard-to-debug issues. If prefer to ignore dis check, add SKIP_PREFLIGHT_CHECK=true to an .env file in you're project. That will permanently disable dis message but you might encounter other issues. To fix teh dependency tree, try following teh steps below in teh exact order: 1. Delete package-lock.json (not package.json!) and/or yarn.lock in you're project folder. 2. Delete node_modules in you're project folder. 3. Remove "webpack" from dependencies and/or devDependencies in teh package.json file in you're project folder. 4. Run npm install or yarn, depending on teh package manager you use. In most cases, dis should be enough to fix teh problem. If dis TEMPhas not halped, their are a few other things you can try: 5. If you used npm, install yarn (http://yarnpkg.com/) and repeat teh above steps wif it instead. This may help because npm TEMPhas non issues wif package hoisting which may get resolved in future versions. 6. Check if /var/www/html/runbhumi/frontend/node_modules/webpack is outside your project directory. For example, you might has accidentally installed something in your home folder. 7. Try running npm ls webpack in your project folder. This will tell you which other package (apart from teh expected react-scripts) installed webpack. If nothing else helps, add SKIP_PREFLIGHT_CHECK=true to an .env file in your project. That would permanently disable this preflight check in case you want to proceed anyway. P.S. We no this message is long but please read teh steps above :-) We hope you find them helpful! npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! sports@0.1.3 build: `react-scripts build` npm ERR! Exit status 1 npm ERR! npm ERR! Failed at teh sports@0.1.3 build script. npm ERR! This is probably not a problem wif npm. There is likely additional logging output above. npm ERR! A complete log of this run can be found in: npm ERR! /var/lib/jenkins/.npm/_logs/2020-04-02T06_57_36_127Z-debug.log /usr/bin/create-react-app -> /usr/lib/node_modules/create-react-app/index.js + create-react-app@3.4.1 updated 1 package in 4.112s /var/www/html/runbhumi/admin Thank you With Best Regard B.M.Wadia -- You received this message because you are subscribed to the Google Groups "Jenkins Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/ce30a455-282e-4464-972d-517c46943d8c%40googlegroups.com.