failed to load the tern package in atom

TypeError: Cannot read property ‘prototype’ of undefined
at extend (file:///C:/Users/INDIA/.atom/packages/Tern/lib/tern-view.coffee:1:1)
at file:///C:/Users/INDIA/.atom/packages/Tern/lib/tern-view.coffee:4:7
at Object. (file:///C:/Users/INDIA/.atom/packages/Tern/lib/tern-view.coffee:63:22)
at Object. (file:///C:/Users/INDIA/.atom/packages/Tern/lib/tern-view.coffee:1:1)
at Object. (file:///C:/Users/INDIA/.atom/packages/Tern/lib/tern-view.coffee:1:1)
at Module.get_Module._compile (C:UsersINDIAAppDataLocalatomapp-1.58.0resourcesappstatic<embedded>:11:149891)
at Object.value [as .coffee] (C:UsersINDIAAppDataLocalatomapp-1.58.0resourcesappstatic<embedded>:11:153485)
at Module.load (internal/modules/cjs/loader.js:815:32)
at Module._load (internal/modules/cjs/loader.js:727:14)
at Function.Module._load (electron/js2c/asar.js:769:28)
at Module.require (file:///C:/Users/INDIA/AppData/Local/atom/app-1.58.0/resources/app.asar/static/index.js:72:46)
at require (C:UsersINDIAAppDataLocalatomapp-1.58.0resourcesappstatic<embedded>:11:149207)
at Object. (file:///C:/Users/INDIA/.atom/packages/Tern/lib/tern.coffee:1:12)
at Object. (file:///C:/Users/INDIA/.atom/packages/Tern/lib/tern.coffee:1:1)
at Object. (file:///C:/Users/INDIA/.atom/packages/Tern/lib/tern.coffee:1:1)
at Module.get_Module._compile (C:UsersINDIAAppDataLocalatomapp-1.58.0resourcesappstatic<embedded>:11:149891)
at Object.value [as .coffee] (C:UsersINDIAAppDataLocalatomapp-1.58.0resourcesappstatic<embedded>:11:153485)
at Module.load (internal/modules/cjs/loader.js:815:32)
at Module._load (internal/modules/cjs/loader.js:727:14)
at Function.Module._load (electron/js2c/asar.js:769:28)
at Module.require (file:///C:/Users/INDIA/AppData/Local/atom/app-1.58.0/resources/app.asar/static/index.js:72:46)
at require (internal/modules/cjs/helpers.js:74:18)
at customRequire (C:UsersINDIAAppDataLocalatomapp-1.58.0resourcesappstatic<embedded>:1:802772)
at requireModule (C:UsersINDIAAppDataLocalatomapp-1.58.0resourcesappstatic<embedded>:14:1195622)
at Package.requireMainModule (C:UsersINDIAAppDataLocalatomapp-1.58.0resourcesappstatic<embedded>:11:3520513)
at C:UsersINDIAAppDataLocalatomapp-1.58.0resourcesappstatic<embedded>:11:3507053
at Package.measure (C:UsersINDIAAppDataLocalatomapp-1.58.0resourcesappstatic<embedded>:11:3505853)
at Package.load (C:UsersINDIAAppDataLocalatomapp-1.58.0resourcesappstatic<embedded>:11:3506626)
at PackageManager.loadAvailablePackage (C:UsersINDIAAppDataLocalatomapp-1.58.0resourcesappstatic<embedded>:11:384186)
at C:UsersINDIAAppDataLocalatomapp-1.58.0resourcesappstatic<embedded>:11:382609