Process.platform为Windows返回"win32".在Windows上,用户的主目录可能是C:\ Users [USERNAME]或C:\ Documents and Settings [USERNAME],具体取决于所使用的Windows版本.在Unix上,这不是问题.
filesystems platform-agnostic platform-independent node.js home-directory
filesystems ×1
home-directory ×1
node.js ×1
platform-agnostic ×1
platform-independent ×1