The error points to line 1 (0) where you reference the 'prompt-sync' package. Make sure you have installed this package by running 'npm install prompt-sync' in your project directory.
I have picked up on some other items that will error also -
1) Your inner loop condition in the spin function is incorrect. Instead of '1 < count', it should be 'i < count' so that the loop runs for the correct number of times -
for (let i = 0; i < count; i++){
2) Your 'console.log' statement is using an incorrect variable name. It should be 'reels' instead of 'spinReel' -
console.log(reels);
3) You have a typo in the variable name 'betamount'. It should be 'betAmount' (capital 'A') -
const betAmount = getBet(balance, numberOfLines);