【问题标题】:How to fix error in installing npm package (Failed at the iltorb@1.3.10 install script)? [duplicate]如何修复安装 npm 包的错误(在 iltorb@1.3.10 安装脚本失败)? [复制]
【发布时间】:2019-05-08 11:06:22
【问题描述】:

我正在为将要使用 ngx-loader 的项目设置一个 npm 包。这是安装 npm 包时的错误。

prebuild-install WARN install No prebuilt binaries found (target=11.14.0 runtime=node arch=x64 platform=linux)
gyp ERR! build error 
gyp ERR! stack Error: not found: make
gyp ERR! stack     at getNotFoundError (/usr/lib/node_modules/npm/node_modules/which/which.js:13:12)
gyp ERR! stack     at F (/usr/lib/node_modules/npm/node_modules/which/which.js:68:19)
gyp ERR! stack     at E (/usr/lib/node_modules/npm/node_modules/which/which.js:80:29)
gyp ERR! stack     at /usr/lib/node_modules/npm/node_modules/which/which.js:89:16
gyp ERR! stack     at /usr/lib/node_modules/npm/node_modules/isexe/index.js:42:5
gyp ERR! stack     at /usr/lib/node_modules/npm/node_modules/isexe/mode.js:8:5
gyp ERR! stack     at FSReqCallback.oncomplete (fs.js:158:21)
gyp ERR! System Linux 4.18.0-18-generic
gyp ERR! command "/usr/bin/node" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /media/shubham/A/Angular/ngx-loading-bar-master/node_modules/iltorb
gyp ERR! node -v v11.14.0
gyp ERR! node-gyp -v v3.8.0
gyp ERR! not ok 
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.4 (node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.4: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})

npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! iltorb@1.3.10 install: `detect-libc prebuild-install || node-gyp rebuild`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the iltorb@1.3.10 install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

我希望安装 npm 包。

【问题讨论】:

    标签: node.js npm angular7 npm-install


    【解决方案1】:

    看起来这就是问题所在:这是来自他们的npm page

     You will also need to install
     On Unix
     python (v2.7 recommended, v3.x.x is not supported)
     make
     A proper C/C++ compiler toolchain, like GCC
    

    【讨论】:

    • 我在 Catalina 上,遇到了同样的问题,通过 node-gyp 说明 (github.com/nodejs/node-gyp/blob/master/macOS_Catalina.md) 解决了 — 您需要登录 Apple Developers 并下载 Command Line Tools 11.3.1(或更新版本) — 之后那,node-gyp 测试都通过了
    猜你喜欢
    • 2018-08-12
    • 2019-09-21
    • 2020-07-24
    • 1970-01-01
    • 1970-01-01
    • 2021-10-14
    • 2018-11-23
    • 2014-08-27
    • 1970-01-01
    相关资源
    最近更新 更多