首先我想做的是:
我有一个 XML 文件,想从中获取特定值。 XML 文件可以是
<note>
<to>Tove</to>
<from>Jani</from>
<heading>Reminder</heading>
<aValue>
<subject>This is the value I am looking for</subject>
</aValue>
<body>Don't forget me this weekend!</body>
</note>
我想从“主题”中读取值。我可以采用 XML 到 JavaScript 的转换器,但随后我将不得不开始递归搜索目标属性。
我希望https://www.npmjs.com/package/camaro可以解决问题,但我无法安装它。
我收到这个错误
这是我的日志文件
我尝试在多台机器上安装它,但在安装 npm 时它们都失败了。
我该如何解决?
最佳答案
正如日志所说
Error: Can't find Python executable "python", you can set the PYTHON env variable.
您需要在您的机器上安装 python 或设置 PYTHON env
关于javascript - camaro@3.0.15 安装脚本失败,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/54853903/