I need to use Axios to download files from a stream. I don't think it is a problem with the server because it works if i use the `http` package. This is the code i have: 

```
export function downloadRequest (savePath, reqURL, currentFile, serverPath) {
  const file = fs.createWriteStream(savePath[0] + `/${currentFile}`)
  axios({
    method: 'get',
    url: `${storedIP}${reqURL}`,
    responseType: 'stream',
    headers: {
      Authorization: `Bearer ${token}`
    }
  }).then(function (reponse) {
    reponse.data.pipe(file)
    hashCheck(currentFile, savePath, serverPath)
  })

```

however this returns these two errors: 
`the provided value 'stream' is not a valid enum value of type XMLHttpRequestResponseType.`
`Uncaught (in promise) TypeError: reponse.data.pipe is not a function`

I tried doing what is said in this post: [Type error this.httpClient.get(...).pipe is not a function](https://stackoverflow.com/questions/48429953/type-error-this-httpclient-get-pipe-is-not-a-function)

But that made a windows popup saying something like this: 

```
windows script host 

Script: c:\npm\node_modules\webpack\bin\webpack.js
Line: 1
Char: 1
Error: Invalid character
Code: 800A03F6
Source: Microsoft JScript compilation error

```

I went into that js file and Line 1 is `#!/usr/bin/env node`

I also tried uninstalling webpack and reinstalling but that didn't help. 

Note: I am using Axios with quasar if that matters.