try installing asyncawait. It should work for older node versions. Other alternatives are using a callback or promises.
you'll have to require it
npm install asyncawait
require modules.
var async = require('asyncawait/async');
var await = require('asyncawait/await');
perform operations.
(async function () {
const intgetIDvalue = await fntest(getID);
})();
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…