OptionalcodeA stable code for JSON consumers to identify this error, included only when known.
OptionalcustomOptionaldetailsSelected JSON-serializable data to include in JSON errors. Never attach the raw error or request.
OptionalformattedOptionalnext
Returns a bug error that's thrown when the lookup of the package.json traversing the directory hierarchy up can't find a package.json
Param: directory
The directory from which the traverse has been done
Returns
An abort error.