fgsants / REST-API-FreeRADIUS

A simple REST Server for the FreeRADIUS rlm_rest module
GNU General Public License v3.0
115 stars 51 forks source link

Prolem with install #7

Open lpcs007 opened 3 years ago

lpcs007 commented 3 years ago

I'm trying to install following the tutorial but this error occurred to me:

root@li1270-27:~/REST-API-FreeRADIUS# npm run start

rest-api-freeradius@1.0.0 start /root/REST-API-FreeRADIUS nodemon server.js

[nodemon] 1.19.4 [nodemon] to restart at any time, enter rs [nodemon] watching dir(s): . [nodemon] watching extensions: js,mjs,json [nodemon] starting node server.js /root/REST-API-FreeRADIUS/node_modules/mongodb/lib/cursor/abstract_cursor.js:58 ...bson_1.pluckBSONSerializeOptions(options) ^^^ SyntaxError: Unexpected token ... at createScript (vm.js:53:10) at Object.runInThisContext (vm.js:95:10) at Module._compile (module.js:543:28) at Object.Module._extensions..js (module.js:580:10) at Module.load (module.js:488:32) at tryModuleLoad (module.js:447:12) at Function.Module._load (module.js:439:3) at Module.require (module.js:498:17) at require (internal/module.js:20:19) at Object. (/root/REST-API-FreeRADIUS/node_modules/mongodb/lib/index.js:5:27) [nodemon] app crashed - waiting for file changes before starting...