moleculer-axios is an Axios-based HTTP client for Moleculer microservice services (v0.1.3). It enables services to make outgoing HTTP requests via a mixin that attaches an `axios` instance to the service context. The package depends on `moleculer` as a peer dependency and requires Node.js >= 8.x. Key differentiator: integrates Axios into the Moleculer lifecycle and service schema, providing automatic error handling and context propagation. Last released in 2019 with no recent updates, indicating limited maintenance.
npm install moleculer-axiosNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows how to create a Moleculer service with the axios mixin and make an HTTP GET request via ctx.axios.
Consider alternative such as manually using axios in service actions, or audit compatibility.
Upgrade Node.js or use a transpiler. Check Node.js compatibility.
Use `mixins: [MoleculerAxios]` (not `mixins: [MoleculerAxios.default]`).
Ensure you access `ctx.axios` within an action handler, not in lifecycle hooks or service methods.
Move HTTP call to an action method.
Run `npm install moleculer-axios` and ensure no typo in import.
Use `const { ServiceBroker } = require('moleculer');` or ensure Node >= 8.