Imported the uuid library and tried to log it out using command, but it shows:TypeError: string is not a function

I ran the code using command prompt and it reported: “string is not a function”.

here is my code:

const uuid = require('uuid/v1');
const myaddress = uuid().split('-').join('');
console.log(myaddress)