【问题标题】:The '<' operator is reserved for future use command powershell'<' 运算符保留供将来使用命令 powershell
【发布时间】:2020-06-16 03:03:58
【问题描述】:

我正在尝试在我的计算机中安装 ROS 2,我需要运行以下命令:

choco install -y -s <PATH\TO\DOWNLOADS\> asio cunit eigen tinyxml-usestl tinyxml2 log4cxx

但是当我运行它时我得到的消息是这样的:

  • 巧克力
  • ~ 运算符“
  • CategoryInfo : ParserError: (:) [], ParentContainsErrorRecordException
  • FullyQualifiedErrorId : RedirectionNotSupported

有人知道怎么解决吗?我很迷茫,所以我只是按照他们给我的指示去做,但我被困在这里了。

【问题讨论】:

  • 您需要将子字符串&lt;PATH\TO\DOWNLOADS&gt; 替换为预期下载文件夹的实际路径。
  • 这能回答你的问题吗? '<' operator is reserved PowerShell Error
  • 我按照你说的替换了子字符串,但是运行它时出现这个错误:
  • @PedroLeal 。 . .您应该编辑您的问题以包含您发布的附加信息作为答案,即屏幕截图

标签: powershell command ros2


【解决方案1】:

将&lt;PATH\TO\DOWNLOADS\&gt;替换为实际路径,当路径包含空格时使用引号:

choco install -y -s 'C:\Users\Usuario\Desktop\ROS 2' asio cunit eigen tinyxml-usestl tinyxml2 log4cxx

【讨论】:

    猜你喜欢
    • 2014-09-23
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2020-02-04
    • 2019-10-01
    • 2021-04-27
    • 1970-01-01
    相关资源
    最近更新 更多