Windows doesn't like single quotes to be used as argument "wrappers", it will try to include them literally in the command-line argument.
Example:
write-file
var FS = require('fs')
var Path = require('path')
var file = process.argv[2]
FS.writeFileSync(Path.join(__dirname, file), 'foo')
When I call node write-file 'hello.txt', it creates literally the file 'hello.txt', with quotes.
Windows doesn't like single quotes to be used as argument "wrappers", it will try to include them literally in the command-line argument.
Example:
write-file
When I call
node write-file 'hello.txt', it creates literally the file'hello.txt', with quotes.