【问题标题】:npm installation error when installing package libxml安装包 libxml 时 npm 安装错误
【发布时间】:2021-06-14 12:22:33
【问题描述】:

我正在尝试使用命令安装包 libxml

npm i libxml

不幸的是,我收到以下我不太明白的错误。

% npm i libxml                                                                                          
npm ERR! code 1
npm ERR! path /Users/smo/Documents/adep2/adep-export-tool-js/node_modules/libxml
npm ERR! command failed
npm ERR! command sh -c ./build.sh
npm ERR! ./build.sh: line 8: node-waf: command not found
npm ERR! ./build.sh: line 9: node-waf: command not found
npm ERR! cp: build/Release/o3.node: No such file or directory

npm ERR! A complete log of this run can be found in:
npm ERR!     /Users/smo/.npm/_logs/2021-06-14T12_12_32_467Z-debug.log

如果有人至少可以向我解释错误,那将非常有帮助。

【问题讨论】:

    标签: node.js npm installation libxml2


    【解决方案1】:

    我解决了。发生这种情况是因为我使用了错误的节点版本。包 libxml 需要节点版本 14.x.x。我的是 16.3.0

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2015-10-01
      • 2018-02-28
      • 2020-10-16
      • 2017-08-01
      • 2020-11-10
      • 1970-01-01
      相关资源
      最近更新 更多