fs.cpSync is not a function

I am having an issue when I was trying to create or install the LightningJS 3 app using VS Code. I get this error:

npx: installed 5 in 9.028s 
fs.cpSync is not a function

I tried rebooting the computer and updating VS Code but still having issues, not sure what is going on.