Lately, I've been facing numerous challenges with the babel parser, particularly related to config files. Presently, I'm encountering an error on Netlify:
3:56:37 AM: Installing npm packages using npm version 8.19.4
3:56:41 AM: npm ERR! code E404
3:56:41 AM: npm ERR! 404 Not Found - GET https://registry.npmjs.org/@babel%2fbabel-eslint - Not found
3:56:41 AM: npm ERR! 404
3:56:41 AM: npm ERR! 404 '@babel/babel-eslint@^10.1.0' is not in this registry.
3:56:41 AM: Failed during stage 'Install dependencies': dependency_installation script returned non-zero exit code: 1
3:56:41 AM: npm ERR! 404
3:56:41 AM: npm ERR! 404 Note that you can also install from a
3:56:41 AM: npm ERR! 404 tarball, folder, http url, or git url.
3:56:41 AM: npm ERR! A complete log of this run can be found in:
3:56:41 AM: npm ERR! /opt/buildhome/.npm/_logs/2023-04-02T07_56_38_140Z-debug-0.log
3:56:41 AM: Error during npm install
3:56:41 AM: Build was terminated: dependency_installation script returned non-zero exit code: 1
3:56:41 AM: Failing build: Failed to install dependencies
3:56:41 AM: Finished processing build request in 13.806s
In addition, my babel.config.js
file (
node_modules/@expo/webpack-config/template/babel.config.js
) appears as follows:
module.exports = function (api) {
api.cache(true);
return {
presets: ["@babel/babel-preset-expo", "@babel/preset-env", "@babel/preset-react"],
};
};
Has anyone encountered this issue before? Can anyone suggest a solution? Any help would be highly appreciated.