SIGN IN SIGN UP
vercel / micro UNCLAIMED

Asynchronous HTTP microservices

0 0 1 TypeScript
Minimize the core (#286) * Removed useless package fields * Overkill dependencies removed * Lockfile added * Break down the module usage * Switched to minimist for argument parsing * Cleaned up the code a little * Made LOC number in readme correct * No transpilation happening anymore * micro is leightweight * Replaced minimist with nanomist * Replaced minimist in the code as well * Be more explicit about what lightweight means * How to transpile if not on Node.js 8.0.0 * Improved code example * Use native stream module instead of isstream * Removed --silent option, since the inspection is happening in micro-dev * Properly grouped code * Better name for server handler * Drain current requests before exit This closes #284 * Replaced nanomist with mri * Moved documentation to wiki and linked it * Better documentation section * Splitted into two paragraphs * Moved link to awesome-micro to a different position * Added usage information * Default port added * Made server stoppable on older Node.js versions * Throw error if async/await isn't working * Made function for getting usage info more pure * And even more pure * Brought docs back into readme * No need to set host to null * Removed now-specific code * Default port is 3000 * Only consider prod case in success message * Use npx for travis commands * Added error 10 * Linked errors * Added missing errors * Bumped dependencies to the latest version * Improved code style * Markdown files for missing errors * Corrected exit code for version output * Fixed usage in help * Ability to log the version and missing usage info * Added missing support for version flag * All Node.js versions support the .close() callback * Correct newline for shutdown message * Exit process with correct code * Corrected credits * Stop hiding stack traces when TESTING env var is set * Log errors to stderr * Removed test for not printing errors during test * Better name for error logging function * Only shutdown gracefully on SIGTERM * Errors always have a code * Made clear when to use micro-dev * Bigger logo added * Made logo a little tinier * Adjusted readme heading * Matched description everywhere * Added tim as an author
2017-08-01 19:14:32 +02:00
# Path Missing
#### Why This Error Occurred
When running the `micro` command, you need to pass a path to a file or directory that contains your microservice. If you don't define one, it will detect the entry file to your code using the `main` property inside the `package.json` file in the directory where the command is run.
#### Possible Ways to Fix It
- Enter the path to your microservice in the `main` property inside `package.json`
- Specify the path of your entry file when running the command: `micro <path>`