由于 PowerShell 6 支持来自 unix 的别名,我尝试运行
rm -rf node_modules
强制删除 node_modules 文件夹及其所有子目录。但是,我得到
Remove-Item : A parameter cannot be found that matches parameter name 'rf'.
At line:1 char:4
+ rm -rf node_modules
+ ~~~
+ CategoryInfo : InvalidArgument: (:) [Remove-Item], ParameterBindingException
+ FullyQualifiedErrorId : NamedParameterNotFound,Microsoft.PowerShell.Commands.RemoveItemCommand
那么如何正确指定参数呢?