I want to export json data in xls format in meteor app.

I am using the netanelgilad:excel package.

Never used that package. But the examples in exceljs are straightforward to figure out and implement in Meteor.

I’ve found that when excel complains about a corrupt file, that usually means something is wrong with how the spreadsheet is being produced in code (i.e. column mismatch or some other kind of formatting). I’d try to just get a very basic example working first. Try to reproduce whatever sample they have.

Can you give a sample working application link?

I have to add this to my app but I don't know where to install it. The link I took as an example: https://github.com/netanelgilad/meteor-excel/issues/13 



temporaryFiles = new FileCollection('temporaryFiles',
  { resumable: false,   // Enable built-in resumable.js upload support
    http: [
      { method: 'get',
        path: '/:_id',  // this will be at route "/gridfs/temporaryFiles/:_id"
        lookup: function (params) {  // uses express style url params
          return { _id: params._id};       // a query mapping url to myFiles
        }
      },
      { method: 'post',
        path: '/:_id',
        lookup: function (params) {
          return {
            _id: params._id
          }
        }}
    ]
  }
)

Code put here javascript - ExcelJS freeze rows - Stack Overflow should is a very basic working example.

I’d create just a raw basic Node app first. Then install exceljs and put in that code and then you can get a better idea of how it works and if exceljs is better for your use case. Code is just server side though.