0

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

┌ 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

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

4

1 回答 1

0

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

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

于 2020-02-05T12:36:14.513 回答