不幸的是,我只是遵循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
这有什么问题?任何反馈将不胜感激!
答案 0 :(得分:0)
这些问题与Spartacus无关,也与angular-cli无关。我认为您在Mac Catalina上安装/设置node-gyp时遇到问题。
您可以在https://github.com/nodejs/node-gyp/blob/master/macOS_Catalina.md验证分析/解决方案吗?我自己经历了这个过程,并在本地解决了相同的问题。