【问题标题】:yarn install failed for building Spartacus storefront构建斯巴达克斯店面的纱线安装失败
【发布时间】:2020-02-04 16:03:44
【问题描述】:

我只是按照https://sap.github.io/cloud-commerce-spartacus-storefront-docs/contributor-setup/ 的说明进行操作,不幸的是,当我在 cloud-commerce-spartacus-storefront 的根目录中运行 'yarn install' 时,出现以下错误:

┌ Resolution step

│ fsevents@npm:2.0.7: Implicit dependencies on node-gyp are discouraged

│ fsevents@npm:2.0.7: Implicit dependencies on node-gyp are discouraged

│ nan@npm:2.14.0: Implicit dependencies on node-gyp are discouraged

│ evp_bytestokey@npm:1.0.3: Implicit dependencies on node-gyp are discouraged

│ storefrontapp@workspace:. doesn't provide jquery@1.9.1 - 3 requested by bootstrap@npm:4.3.1

│ storefrontapp@workspace:. doesn't provide popper.js@^1.14.7 requested by bootstrap@npm:4.3.1

│ storefrontapp@workspace:. provides zone.js@npm:0.10.2 with version 0.10.2 which doesn't satisfy ~0.9.1 requested by @angular/core@npm:8.2.6

│ storefrontapp@workspace:. doesn't provide express@^4.15.2 requested by @nguniversal/express-engine@npm:8.1.1

│ storefrontapp@workspace:. doesn't provide webpack@4.x.x requested by webpack-cli@npm:3.3.7

└ Completed in 37.41s

┌ Fetch step

│ fsevents@patch:fsevents@npm%3A2.0.7#builtin<compat/fsevents>::version=2.0.7&hash=e8cd9e can't be found in the cache and will be fetched from the disk

│ Error: fsevents@patch:fsevents@npm%3A2.0.7#builtin<compat/fsevents>::version=2.0.7&hash=e8cd9e:
 Cannot apply hunk #1
     at c (/usr/local/lib/node_modules/yarn/bin/yarn.js:58:888149)
     at process.internalTickCallback (internal/process/next_tick.js:77:7)

│ typescript@patch:typescript@npm%3A2.9.1#builtin<compat/typescript>::version=2.9.1&hash=226bd1
 can't be found in the cache and will be fetched from the disk

│ typescript@patch:typescript@npm%3A2.9.2#builtin<compat/typescript>::version=2.9.2&hash=226bd1
 can't be found in the cache and will be fetched from the disk

│ Error: typescript@patch:typescript@npm%3A2.9.1#builtin<compat/typescript>::version=2.9.1&hash=226bd1:
 Cannot apply hunk #1
     at c (/usr/local/lib/node_modules/yarn/bin/yarn.js:58:888149)
     at process.internalTickCallback (internal/process/next_tick.js:77:7)

│ Error:typescript@patch:typescript@npm%3A2 .9.2#builtin<compat/typescript>::version=2.9.2&hash=226bd1:
 Cannot apply hunk #1
     at c (/usr/local/lib/node_modules/yarn/bin/yarn.js:58:888149)
     at process.internalTickCallback (internal/process/next_tick.js:77:7)

└ Completed in 1.46m

Failed with errors in 2.08m

这有什么问题?任何反馈将不胜感激!

【问题讨论】:

  • 您能提供更多信息吗? Spartacus 版本、yarn 版本、npm 版本、您的操作系统、您的 IDE 等。

标签: spartacus-storefront


【解决方案1】:

这些问题与 Spartacus 无关,也与 angular-cli 无关。我认为您在 mac Catalina 上安装/设置 node-gyp 时遇到问题。

您能否验证https://github.com/nodejs/node-gyp/blob/master/macOS_Catalina.md 的分析/解决方案?我自己经历了这个并在本地解决了同样的问题。

【讨论】:

    猜你喜欢
    • 2022-11-10
    • 2021-04-24
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2021-05-27
    • 2021-09-11
    相关资源
    最近更新 更多