Open AlexanderOpran opened 6 years ago
Use the following command when creating the empty file:
New-Item -Name file.extension -ItemType File
Thanks @AlexanderOpran. I'll do my best to test this and see if I can replicate this week. If so, I'll work on updating the wording.
On Windows 10, in PowerShell, you cannot create an empty file using the
type NUL > file.extension
command. The only way for the javascripting verifiy command to ever be successful is to create an empty file using thetype NUL > file.extension
command from CommandPrompt only. This isn't mentioned anywhere in the guide (it just says on Windows). Even if you create an empty file with$null > file.extension
, the validation fails and you can't even run it withnode file.extension
. The same applies when you create the file in a text editor or in an IDE.Error output when trying to verify a file that was not created in CommandPrompt using the
type NUL > file.extension
command.My Code