When running the npm run web in the front end the following error occurs .
npm ERR! info sharp Using cached /home/rajeshrajamani/.npm/_libvips/libvips-8.8.1-linux-x64.tar.gz
npm ERR! gyp info it worked if it ends with ok
npm ERR! gyp info using [email protected]
npm ERR! gyp info using [email protected] | linux | x64
npm ERR! gyp info find Python using Python version 3.10.6 found at "/usr/bin/python3"
npm ERR! gyp ERR! UNCAUGHT EXCEPTION
npm ERR! gyp ERR! stack TypeError: Cannot assign to read only property 'cflags' of object '#'
npm ERR! gyp ERR! stack at createConfigFile (/home/rajeshrajamani/Desktop/projects/agora/Symbl-powered-Agora-RTE-app/Symbl-Powered-Agora-master/node_modules/node-gyp/lib/configure.js:117:21)
npm ERR! gyp ERR! stack at /home/rajeshrajamani/Desktop/projects/agora/Symbl-powered-Agora-RTE-app/Symbl-Powered-Agora-master/node_modules/node-gyp/lib/configure.js:84:9
npm ERR! gyp ERR! stack at FSReqCallback.oncomplete (node:fs:185:23)
npm ERR! gyp ERR! System Linux 5.19.0-41-generic
npm ERR! gyp ERR! command "/home/rajeshrajamani/.nvm/versions/node/v19.8.1/bin/node" "/home/rajeshrajamani/Desktop/projects/agora/Symbl-powered-Agora-RTE-app/Symbl-Powered-Agora-master/node_modules/.bin/node-gyp" "rebuild"
npm ERR! gyp ERR! cwd /home/rajeshrajamani/Desktop/projects/agora/Symbl-powered-Agora-RTE-app/Symbl-Powered-Agora-master/node_modules/sharp
npm ERR! gyp ERR! node -v v19.8.1
npm ERR! gyp ERR! node-gyp -v v7.1.2
npm ERR! gyp ERR! Node-gyp failed to build your package.
npm ERR! gyp ERR! Try to update npm and/or node-gyp and if it does not help file an issue with the package author.
- OS: Ubuntu 22.04
- Node:v19.8.1
- npm:9.6.2