0

尝试在我的 PC 上更新 APIC 开发者工具包时,在 Windows 10 上出现 IBM APIC 开发者工具包安装错误。

  1. 以管理员身份使用命令提示符

npm 版本 -3.10.7
节点版本 - 4.6.0

  1. 我按照每个要求中的建议安装了 MS Visual Studio 2013 社区版和 Python 2.7

  2. 我收到以下内存错误-

    > spawn-sync@1.0.15 postinstall C:\Users\arindch.WIPRO\AppData\Roaming\npm\node_modules\apiconnect\node_modules\apiconnect-cli-loopback\node_modules\generator-loopback\node_modules\yeoman-generator\node_modules\yeoman-environment\node_modules\inquirer\node_modules\external-editor\node_modules\spawn-sync
    > node postinstall
    
    [                ..] \ postinstall: info lifecycle spawn-sync@1.0.15~postinstall: Failed to exec postinstall script
    <--- Last few GCs --->
    
     1140330 ms: Scavenge 1387.3 (1458.0) -> 1387.3 (1458.0) MB, 29.0 / 0 ms (+ 0.0 ms in 1 steps since last GC) [allocation failure] [incremental marking delaying mark-sweep].
     1141330 ms: Mark-sweep 1387.3 (1458.0) -> 1384.3 (1458.0) MB, 1006.0 / 0 ms (+ 0.0 ms in 1 steps since start of marking, biggest step 0.0 ms) [last resort gc].
     1142315 ms: Mark-sweep 1384.3 (1458.0) -> 1383.0 (1458.0) MB, 973.9 / 16 ms [last resort gc].
    
    
    <--- JS stacktrace --->
    
    ==== JS stack trace =========================================
    
    Security context: 00000181FB4B4639 <JS Object>
        1: rimraf_(aka rimraf_) [C:\Users\arindch.WIPRO\AppData\Roaming   \npm\node_modules\npm\node_modules\rimraf\rimraf.js:~127] [pc=000002834BA761C7] (this=00000181FB4041B9 <undefined>,p=00000324344B83D9 <String[170]: C:\Users\arindch.WIPRO\AppData\Roaming\npm\node_modules\apiconnect\node_modules\apiconnect-cli-devapps\node_modules\apiconnect-apim-client\node_modules\lodash\_overArg.js>,options=...
    
    FATAL ERROR: CALL_AND_RETRY_LAST Allocation failed - process out of memory
    
4

1 回答 1

1

你是从 npmjs.org 安装的吗?您能否重试安装 --no-optional --ignore-script 作为 v5040 的临时解决方法,看看是否有帮助?确保你 npm cache clean 这通常不是必需的,在未来的版本中也绝对不需要。

于 2016-10-27T00:17:05.630 回答