workshopper / learnyounode

Learn You The Node.js For Much Win! An intro to Node.js via a set of self-guided workshops.
Other
7.25k stars 1.84k forks source link

Exercise 4: My First Async I/O - references non-existent file #648

Open tree4sax opened 5 years ago

tree4sax commented 5 years ago

learnyounode is supposed to pass a file path in process.argv[2], but if I write my script so that it prints out that value, I get something like this /var/folders/3t/l2k6cfvj1_b952z02bsq3zrm0000gn/T/_learnyounode_97767.txt with a different filename generated each time. But my result comes back undefined, and the file does not exist when I go to look for it. I have tried re-installing learnyounode but that didn't help.

ccarruitero commented 5 years ago

Hi @tree4sax,

The file generated for run and verify the exercise is removed before complete the process.

Do you still having a problem to solve the exercise?