bzarras / newsapi

A promise-based node interface for NewsAPI
MIT License
144 stars 39 forks source link

npm package not working in live server #12

Closed sudarsan15 closed 4 years ago

sudarsan15 commented 6 years ago

I have started a new express project I tested on the live server it worked then the first package I installed was news API package and I added API Key. it worked in localhost but when I put in the live server issue started.

The error is given below:

at require (internal/module.js:12:17) at Object. (/var/www/html/demo/routes/index.js:4:17) at Module._compile (module.js:410:26) at Object.Module._extensions..js (module.js:417:10) SyntaxError: Unexpected token ... at exports.runInThisContext (vm.js:53:16) at Module._compile (module.js:374:25) at Object.Module._extensions..js (module.js:417:10) at Module.load (module.js:344:32) at Function.Module._load (module.js:301:12) at Module.require (module.js:354:17) at require (internal/module.js:12:17) at Object. (/var/www/html/demo/routes/index.js:4:17) at Module._compile (module.js:410:26) at Object.Module._extensions..js (module.js:417:10)

bzarras commented 6 years ago

@sudarsan15 what version of Node are you running on your live server?

sudarsan15 commented 6 years ago

my node version is : v8.9.1