I built web app using react.js, and I want to make build and deploy on the server using FTP on every commit. For that purpose, I configure bitbucket pipeline, but I get an error on build react app.
I tested my local machine by running "npm run build" command and it run successfully without any error, but on pipeline, I get the following error:
npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! react-app@0.1.0 build: `node scripts/build.js` npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the react-app@0.1.0 build script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above. npm ERR! A complete log of this run can be found in: npm ERR! /root/.npm/_logs/2018-05-16T13_18_01_726Z-debug.log