# Setup

# Install

Install with yarn:

yarn add @nuxtjs/axios

Install with npm:

npm install @nuxtjs/axios


module.exports = {
  modules: [

  axios: {
    // proxyHeaders: false

# Typescript

Add the types to your "types" array in tsconfig.json after the @nuxt/vue-app entry


  "compilerOptions": {
    "types": [


Because of the way nuxt works the $axios property on the context has to be merged into the nuxt Context interface via declaration merging. Adding @nuxtjs/axios to your types will import the types from the package and make typescript aware of the additions to the Context interface.