I have upgraded my VM node version but my error Log file appears with other version, when i try to build my react application.
node -v
gives me - v14.17.5
Creating an optimized production build...
Failed to compile.
createRequire is not a function
Referenced from: BaseConfig
npm ERR! Linux 4.4.0-169-generic
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "run" "build"
npm ERR! node v10.0.0
npm ERR! npm v3.10.10
npm ERR! code ELIFECYCLE
npm ERR! epesi-dash-ui@1.0.0 build: `react-scripts build`
npm ERR! Exit status 1