I'm currently facing challenges with resolving the vulnerabilities within my expo React Native project. This is an ongoing development project utilizing React Native technology.
Every time I encounter the following issues;
up to date, audited 1375 packages in 1m
73 packages are looking for funding
run `npm fund` for details
18 vulnerabilities (10 moderate, 8 high)
To fix problems that do not require immediate attention, use:
npm audit fix
To address all issues (including breaking changes), execute:
npm audit fix --force
Run `npm audit` for more information.
Below is a preview of my package.json
file;
{
"name": "xxxxx",
"version": "1.0.0",
"main": "node_modules/expo/AppEntry.js",
"scripts": {
"start": "expo start",
"android": "expo start --android",
"ios": "expo start --ios",
"web": "expo start --web"
},
"dependencies": {
// List of dependencies
},
"devDependencies": {
// Development dependencies
},
"private": true
}
I have explored various solutions such as;
npm audit
npm audit fix
npm audit fix --force
npm update
npm upgrade
npx remove-node-modules
npm install
npm install --check
Furthermore, I attempted manually adjusting the dependencies to ensure compatibility without success. In most instances, the errors escalated rather than getting resolved.
Upon running npx expo-doctor
, the outcome was as follows;
$ npx expo-doctor
✔ Validation of global prerequisites versions passed
✔ No incompatible packages found
✔ Absence of conflicting global packages within the project
✔ Compatibility verification of prebuild support package versions passed
✔ Dependency versions checked for Expo SDK compatibility passed
✔ Successful validation of Expo Config
✔ Evaluation of common issues in package.json passed
No apparent issues detected in the project!
Despite these validations, the dependency-related concerns persist.
Can anyone guide me on addressing the dependency conflicts effectively?