when i run npx react-native run-android i have a error that says
FAILURE: Build failed with an exception.
* Where:
Script 'C:UserscarloFitAInode_modules@react-native-communitycli-platform-androidnative_modules.gradle' line: 420
* What went wrong:
A problem occurred evaluating script.
> Command '[node, C:UserscarloFitAInode_modules@react-native-communityclibuildbin.js, config, --platform, android]' failed with exit code 1.
y navigate to de line 420 of native_modules.gradle but i couldn’t find nothing, here is the code anyways
NATIVE_MODULES.GRADLE
here it is bin.js code too:
#!/usr/bin/env node
"use strict";
require("./tools/gracefulifyFs");
function _semver() {
const data = _interopRequireDefault(require("semver"));
_semver = function () {
return data;
};
return data;
}
function _chalk() {
const data = _interopRequireDefault(require("chalk"));
_chalk = function () {
return data;
};
return data;
}
function _cliDoctor() {
const data = require("@react-native-community/cli-doctor");
_cliDoctor = function () {
return data;
};
return data;
}
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
if (_semver().default.satisfies(process.version, _cliDoctor().versionRanges.NODE_JS)) {
const {
run
} = require('./');
run();
} else {
console.error(`${_chalk().default.red(`React Native needs Node.js ${_cliDoctor().versionRanges.NODE_JS}. You're currently on version ${process.version}. Please upgrade Node.js to a supported version and try again.`)}`);
}
//# sourceMappingURL=bin.ts.map
Y tried cleaning my proyect deleting node_modules and package_lock.json and then run npm install again but it doesn’t works, the same with ./gradlew clean.
i hope you can help me, please, i don’t know what to do
New contributor
Carlo Kalel Perez V is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.