Pub finished with exit code 65

Explanation of Exit Code 65 for “pub” Command:

Exit code 65 for the “pub” command typically indicates an input validation error. It means that a pub command is being executed with incorrect or invalid arguments, causing the command to exit prematurely.

The exit code of a command is a numeric value returned by the operating system or command line interpreter after the execution of a program or script. It helps to determine the success or failure of the command execution and enables troubleshooting.

Here’s an example scenario to illustrate the error:

    
$ pub build -r -o ./my_app
Unhandled exception:
Invalid argument(s): Cannot find configuration file "pubspec.yaml" in "/path/to/project".
pub finished with exit code 65
    
  

In this example, the “pub build” command is used to build a Dart application. However, the command failed with exit code 65 because the pubspec.yaml file, which is required for the build process, was not found in the specified project directory.

To resolve this issue, ensure that you are executing the “pub” command with correct parameters and that all necessary files and configurations are properly set up. In the above scenario, placing the pubspec.yaml file in the project directory would resolve the problem.

Same cateogry post

Leave a comment