返回 process.cwd() 作为目录的 bash 路径而不是 cmd 路径?
Returning the process.cwd() as the bash path to the directory instead of the cmd path?
如何 return git-bash 的 process.cwd()
路径而不是 grunt 中的 Windows cmd.exe 路径?
它不会 return 'nix 路径,除非它是 'nix 上的 运行。安装 upath 并用 upath.normalize().
包裹它
例如:upath.normalize(process.cwd())
这应该适用于 'nix 和 windows。
如何 return git-bash 的 process.cwd()
路径而不是 grunt 中的 Windows cmd.exe 路径?
它不会 return 'nix 路径,除非它是 'nix 上的 运行。安装 upath 并用 upath.normalize().
包裹它例如:upath.normalize(process.cwd())
这应该适用于 'nix 和 windows。