遇到错误无法完成基材前端模板的纱线安装

Joh*_*ohn 10 node.js blockchain substrate polkadot

按照此处提供的安装步骤进行操作

\n

https://docs.substrate.io/tutorials/v3/create-your-first-substrate-chain/

\n

使用节点版本 v16.14.0 采取的步骤

\n
git clone https://github.com/substrate-developer-hub/substrate-front-end-template\nyarn install\n
Run Code Online (Sandbox Code Playgroud)\n

错误代码

\n
Resolution step\n\xe2\x9e\xa4 YN0002: \xe2\x94\x82 eslint-config-react-app@npm:7.0.0 [e199f] doesn\'t provide @babel/plugin-syntax-flow (p79568), requested by eslint-plugin-flowtype\n\xe2\x9e\xa4 YN0002: \xe2\x94\x82 eslint-config-react-app@npm:7.0.0 [e199f] doesn\'t provide @babel/plugin-transform-react-jsx (p2880e), requested by eslint-plugin-flowtype\n\xe2\x9e\xa4 YN0002: \xe2\x94\x82 react-dev-utils@npm:12.0.0 doesn\'t provide typescript (p08c91), requested by fork-ts-checker-webpack-plugin\n\xe2\x9e\xa4 YN0002: \xe2\x94\x82 react-dev-utils@npm:12.0.0 doesn\'t provide webpack (pf80ce), requested by fork-ts-checker-webpack-plugin\n\xe2\x9e\xa4 YN0002: \xe2\x94\x82 react-scripts@npm:5.0.0 [9c894] doesn\'t provide autoprefixer (peca2e), requested by tailwindcss\n\xe2\x9e\xa4 YN0060: \xe2\x94\x82 react-scripts@npm:5.0.0 [9c894] provides eslint (p3d1f2) with version 8.6.0, which doesn\'t satisfy what eslint-config-react-app and some of its descendants request\n\xe2\x9e\xa4 YN0002: \xe2\x94\x82 substrate-front-end-template@workspace:. doesn\'t provide eslint (p83184), requested by eslint-config-prettier\n\xe2\x9e\xa4 YN0002: \xe2\x94\x82 substrate-front-end-template@workspace:. doesn\'t provide webpack (p9e29f), requested by node-polyfill-webpack-plugin\n\xe2\x9e\xa4 YN0000: \xe2\x94\x82 Some peer dependencies are incorrectly met; run yarn explain peer-requirements <hash> for details, where <hash> is the six-letter p-prefixed code\n\xe2\x9e\xa4 YN0000: \xe2\x94\x94 Completed in 0s 245ms\n\xe2\x9e\xa4 YN0000: \xe2\x94\x8c Fetch step\n\xe2\x9e\xa4 YN0013: \xe2\x94\x82 semantic-ui-css@https://github.com/Semantic-Org/Semantic-UI-CSS.git#commit=01e4a5346496c284db3b19a102458731ccccd911 can\'t be found in the cache and will be fe\n\xe2\x9e\xa4 YN0013: \xe2\x94\x82 semantic-ui-css@https://github.com/Semantic-Org/Semantic-UI-CSS.git#commit=01e4a5346496c284db3b19a102458731ccccd911 can\'t be found in the cache and will be fe\n\xe2\x9e\xa4 YN0018: \xe2\x94\x82 semantic-ui-css@https://github.com/Semantic-Org/Semantic-UI-CSS.git#commit=01e4a5346496c284db3b19a102458731ccccd911: The remote archive doesn\'t match the expected checksum\n\xe2\x9e\xa4 YN0000: \xe2\x94\x94 Completed in 8s 74ms\n\xe2\x9e\xa4 YN0000: Failed with errors in 8s 327ms\n
Run Code Online (Sandbox Code Playgroud)\n

Joh*_*ohn 27

通过执行以下步骤解决了这个问题

yarn cache clean --all
yarn install
Run Code Online (Sandbox Code Playgroud)

此时,遇到了同样的错误。然后运行这个:

YARN_CHECKSUM_BEHAVIOR=update yarn
Run Code Online (Sandbox Code Playgroud)

来自Github 讨论的回答