I created "apidoc" block in vanilla node.js package.json file. Information is accessible to apidoc and everything is ok except that CLI still whines about missing apidoc.json
warn: Please create an apidoc.json.
apidoc try to get some Information from apidoc.json or package.json (title, version, ...), that is why you got the warning.
You can suppress it with --silent
And I have package.json which is successfully read. Why the warning then?
Create an apidoc.json with the name:
{
"name": "MyAppName"
}
See here: Example file apidoc.json
Had the same problem. And the solution was that I had an empty apidoc.json while all settings were in package.json. After removing the empty apidoc.json, everything worked.
Most helpful comment
Create an
apidoc.jsonwith the name: