[Bug] No response when trying to initialize installation with build.
- [ ] I'd be willing to implement a fix
Describe the bug
No response when trying to initialize installation with build.
For example, my dependency contains ‘husky@npm: 4.2.1’ and yarn did not respond when building husky. It was built normally in yarn v1.
To Reproduce
package.json
{
...
"devDependencies": {
...,
"husky": "^4.2.1",
....
},
...
}
Environment if relevant (please complete the following information):
- OS : Windows 1909 (18363.628)
- Node version : 12.15.0
- Yarn version : 2.0.0-rc.27
Additional context log
➤ YN0007: │ husky@npm:4.2.1::__archiveUrl=https%3A%2F%2Fregistry.npm.taobao.org%2Fhusky%2Fdownload%2Fhusky-4.2.1.tgz must be built because it never did before or the last one failed
Full log
➜ starter-blog git:(master) ✗ yarn
➤ YN0000: ┌ Resolution step
➤ YN0002: │ redblue-gatsby@workspace:. doesn't provide graphql@^0.11.0 || ^0.12.0 || ^0.13.0 || ^14.0.0 requested by apollo-boost@npm:0.4.7::__archiveUrl=https%3A%2F%2Fregistry.npm.taobao.org%2Fapollo-boost%2Fdownload%2Fapollo-boost-0.4.7.tgz
➤ YN0002: │ redblue-gatsby@workspace:. doesn't provide [email protected] - 3 requested by bootstrap@npm:4.4.1::__archiveUrl=https%3A%2F%2Fregistry.npm.taobao.org%2Fbootstrap%2Fdownload%2Fbootstrap-4.4.1.tgz
➤ YN0002: │ redblue-gatsby@workspace:. doesn't provide popper.js@^1.16.0 requested by bootstrap@npm:4.4.1::__archiveUrl=https%3A%2F%2Fregistry.npm.taobao.org%2Fbootstrap%2Fdownload%2Fbootstrap-4.4.1.tgz
➤ YN0060: │ redblue-gatsby@workspace:. provides eslint-plugin-react-hooks@npm:2.3.0::__archiveUrl=https%3A%2F%2Fregistry.npm.taobao.org%2Feslint-plugin-react-hooks%2Fdownload%2Feslint-plugin-react-hooks-2.3.0.tgz [837cf] with version 2.3.0 which doesn't satisfy ^1.7.0 requested by eslint-config-airbnb@npm:18.0.1::__archiveUrl=https%3A%2F%2Fregistry.npm.taobao.org%2Feslint-config-airbnb%2Fdownload%2Feslint-config-airbnb-18.0.1.tgz
➤ YN0002: │ redblue-gatsby@workspace:. doesn't provide webpack@>=1.11.0 requested by eslint-import-resolver-webpack@npm:0.12.1::__archiveUrl=https%3A%2F%2Fregistry.npm.taobao.org%2Feslint-import-resolver-webpack%2Fdownload%2Feslint-import-resolver-webpack-0.12.1.tgz
➤ YN0060: │ redblue-gatsby@workspace:. provides katex@npm:0.11.1::__archiveUrl=https%3A%2F%2Fregistry.npm.taobao.org%2Fkatex%2Fdownload%2Fkatex-0.11.1.tgz with version 0.11.1 which doesn't satisfy ^0.10.0 requested by gatsby-remark-katex@npm:3.1.24::__archiveUrl=https%3A%2F%2Fregistry.npm.taobao.org%2Fgatsby-remark-katex%2Fdownload%2Fgatsby-remark-katex-3.1.24.tgz
➤ YN0002: │ redblue-gatsby@workspace:. doesn't provide graphql@^0.9.0 || ^0.10.0 || ^0.11.0 || ^0.12.0 || ^0.13.0 || ^14.0.0 requested by graphql-tag@npm:2.10.3::__archiveUrl=https%3A%2F%2Fregistry.npm.taobao.org%2Fgraphql-tag%2Fdownload%2Fgraphql-tag-2.10.3.tgz
➤ YN0002: │ redblue-gatsby@workspace:. doesn't provide apollo-client@^2.6.4 requested by @apollo/react-hooks@npm:3.1.3::__archiveUrl=https%3A%2F%2Fregistry.npm.taobao.org%2F%40apollo%2Freact-hooks%2Fdownload%2F%40apollo%2Freact-hooks-3.1.3.tgz
➤ YN0002: │ redblue-gatsby@workspace:. doesn't provide graphql@^14.3.1 requested by @apollo/react-hooks@npm:3.1.3::__archiveUrl=https%3A%2F%2Fregistry.npm.taobao.org%2F%40apollo%2Freact-hooks%2Fdownload%2F%40apollo%2Freact-hooks-3.1.3.tgz
➤ YN0002: │ redblue-gatsby@workspace:. doesn't provide @types/react@^16.8.0 requested by @apollo/react-hooks@npm:3.1.3::__archiveUrl=https%3A%2F%2Fregistry.npm.taobao.org%2F%40apollo%2Freact-hooks%2Fdownload%2F%40apollo%2Freact-hooks-3.1.3.tgz
➤ YN0002: │ apollo-link-error@npm:1.1.12::__archiveUrl=https%3A%2F%2Fregistry.npm.taobao.org%2Fapollo-link-error%2Fdownload%2Fapollo-link-error-1.1.12.tgz doesn't provide graphql@^0.11.3 || ^0.12.3 || ^0.13.0 || ^14.0.0 requested by apollo-link@npm:1.2.13::__archiveUrl=https%3A%2F%2Fregistry.npm.taobao.org%2Fapollo-link%2Fdownload%2Fapollo-link-1.2.13.tgz
➤ YN0002: │ apollo-link-error@npm:1.1.12::__archiveUrl=https%3A%2F%2Fregistry.npm.taobao.org%2Fapollo-link-error%2Fdownload%2Fapollo-link-error-1.1.12.tgz doesn't provide graphql@^0.11.0 || ^0.12.0 || ^0.13.0 || ^14.0.0 requested by apollo-link-http-common@npm:0.2.15::__archiveUrl=https%3A%2F%2Fregistry.npm.taobao.org%2Fapollo-link-http-common%2Fdownload%2Fapollo-link-http-common-0.2.15.tgz
➤ YN0002: │ gatsby@npm:2.19.15::__archiveUrl=https%3A%2F%2Fregistry.npm.taobao.org%2Fgatsby%2Fdownload%2Fgatsby-2.19.15.tgz [837cf] doesn't provide @types/react@^15.0.0 || ^16.0.0 requested by react-hot-loader@npm:4.12.19::__archiveUrl=https%3A%2F%2Fregistry.npm.taobao.org%2Freact-hot-loader%2Fdownload%2Freact-hot-loader-4.12.19.tgz
➤ YN0002: │ babel-preset-gatsby-package@npm:0.1.4::__archiveUrl=https%3A%2F%2Fregistry.npm.taobao.org%2Fbabel-preset-gatsby-package%2Fdownload%2Fbabel-preset-gatsby-package-0.1.4.tgz doesn't provide @babel/core@^7.0.0-0 requested by @babel/plugin-proposal-class-properties@npm:7.8.3::__archiveUrl=https%3A%2F%2Fregistry.npm.taobao.org%2F%40babel%2Fplugin-proposal-class-properties%2Fdownload%2F%40babel%2Fplugin-proposal-class-properties-7.8.3.tgz
➤ YN0002: │ babel-preset-gatsby-package@npm:0.1.4::__archiveUrl=https%3A%2F%2Fregistry.npm.taobao.org%2Fbabel-preset-gatsby-package%2Fdownload%2Fbabel-preset-gatsby-package-0.1.4.tgz doesn't provide @babel/core@^7.0.0-0 requested by @babel/plugin-proposal-optional-chaining@npm:7.8.3::__archiveUrl=https%3A%2F%2Fregistry.npm.taobao.org%2F%40babel%2Fplugin-proposal-optional-chaining%2Fdownload%2F%40babel%2Fplugin-proposal-optional-chaining-7.8.3.tgz
➤ YN0002: │ babel-preset-gatsby-package@npm:0.1.4::__archiveUrl=https%3A%2F%2Fregistry.npm.taobao.org%2Fbabel-preset-gatsby-package%2Fdownload%2Fbabel-preset-gatsby-package-0.1.4.tgz doesn't provide @babel/core@^7.0.0-0 requested by @babel/plugin-syntax-dynamic-import@npm:7.8.3::__archiveUrl=https%3A%2F%2Fregistry.npm.taobao.org%2F%40babel%2Fplugin-syntax-dynamic-import%2Fdownload%2F%40babel%2Fplugin-syntax-dynamic-import-7.8.3.tgz
➤ YN0002: │ babel-preset-gatsby-package@npm:0.1.4::__archiveUrl=https%3A%2F%2Fregistry.npm.taobao.org%2Fbabel-preset-gatsby-package%2Fdownload%2Fbabel-preset-gatsby-package-0.1.4.tgz doesn't provide @babel/core@^7.0.0-0 requested by @babel/plugin-transform-runtime@npm:7.8.3::__archiveUrl=https%3A%2F%2Fregistry.npm.taobao.org%2F%40babel%2Fplugin-transform-runtime%2Fdownload%2F%40babel%2Fplugin-transform-runtime-7.8.3.tgz
➤ YN0002: │ babel-preset-gatsby-package@npm:0.1.4::__archiveUrl=https%3A%2F%2Fregistry.npm.taobao.org%2Fbabel-preset-gatsby-package%2Fdownload%2Fbabel-preset-gatsby-package-0.1.4.tgz doesn't provide @babel/core@^7.0.0-0 requested by @babel/preset-env@npm:7.8.4::__archiveUrl=https%3A%2F%2Fregistry.npm.taobao.org%2F%40babel%2Fpreset-env%2Fdownload%2F%40babel%2Fpreset-env-7.8.4.tgz
➤ YN0002: │ babel-preset-gatsby-package@npm:0.1.4::__archiveUrl=https%3A%2F%2Fregistry.npm.taobao.org%2Fbabel-preset-gatsby-package%2Fdownload%2Fbabel-preset-gatsby-package-0.1.4.tgz doesn't provide @babel/core@^7.0.0-0 requested by @babel/preset-flow@npm:7.8.3::__archiveUrl=https%3A%2F%2Fregistry.npm.taobao.org%2F%40babel%2Fpreset-flow%2Fdownload%2F%40babel%2Fpreset-flow-7.8.3.tgz
➤ YN0002: │ babel-preset-gatsby-package@npm:0.1.4::__archiveUrl=https%3A%2F%2Fregistry.npm.taobao.org%2Fbabel-preset-gatsby-package%2Fdownload%2Fbabel-preset-gatsby-package-0.1.4.tgz doesn't provide @babel/core@^7.0.0-0 requested by @babel/preset-react@npm:7.8.3::__archiveUrl=https%3A%2F%2Fregistry.npm.taobao.org%2F%40babel%2Fpreset-react%2Fdownload%2F%40babel%2Fpreset-react-7.8.3.tgz
➤ YN0002: │ gatsby-plugin-transition-link@npm:1.17.7::__archiveUrl=https%3A%2F%2Fregistry.npm.taobao.org%2Fgatsby-plugin-transition-link%2Fdownload%2Fgatsby-plugin-transition-link-1.17.7.tgz [837cf] doesn't provide react-dom@>=15.0.0 requested by react-transition-group@npm:2.9.0::__archiveUrl=https%3A%2F%2Fregistry.npm.taobao.org%2Freact-transition-group%2Fdownload%2Freact-transition-group-2.9.0.tgz
➤ YN0002: │ gatsby-remark-katex@npm:3.1.24::__archiveUrl=https%3A%2F%2Fregistry.npm.taobao.org%2Fgatsby-remark-katex%2Fdownload%2Fgatsby-remark-katex-3.1.24.tgz [837cf] doesn't provide remark-parse@^3.0.0 || ^4.0.0 || ^5.0.0 || ^6.0.0 requested by remark-math@npm:1.0.6::__archiveUrl=https%3A%2F%2Fregistry.npm.taobao.org%2Fremark-math%2Fdownload%2Fremark-math-1.0.6.tgz
➤ YN0002: │ @apollo/react-hooks@npm:3.1.3::__archiveUrl=https%3A%2F%2Fregistry.npm.taobao.org%2F%40apollo%2Freact-hooks%2Fdownload%2F%40apollo%2Freact-hooks-3.1.3.tgz [837cf] doesn't provide apollo-utilities@^1.3.2 requested by @apollo/react-common@npm:3.1.3::__archiveUrl=https%3A%2F%2Fregistry.npm.taobao.org%2F%40apollo%2Freact-common%2Fdownload%2F%40apollo%2Freact-common-3.1.3.tgz
➤ YN0000: └ Completed in 0.46s
➤ YN0000: ┌ Fetch step
➤ YN0000: └ Completed in 16.89s
➤ YN0000: ┌ Link step
➤ YN0007: │ husky@npm:4.2.1::__archiveUrl=https%3A%2F%2Fregistry.npm.taobao.org%2Fhusky%2Fdownload%2Fhusky-4.2.1.tgz must be built because it never did before or the last one failed
➤ YN0007: │ core-js@npm:3.6.4::__archiveUrl=https%3A%2F%2Fregistry.npm.taobao.org%2Fcore-js%2Fdownload%2Fcore-js-3.6.4.tgz must be built because it never did before or the last one failed
➤ YN0007: │ core-js@npm:2.6.11::__archiveUrl=https%3A%2F%2Fregistry.npm.taobao.org%2Fcore-js%2Fdownload%2Fcore-js-2.6.11.tgz must be built because it never did before or the last one failed
➤ YN0007: │ fsevents@patch:fsevents@npm%3A1.2.11%3A%3A__archiveUrl=https%253A%252F%252Fregistry.npm.taobao.org%252Ffsevents%252Fdownload%252Ffsevents-1.2.11.tgz#builtin<compat/fsevents>::version=1.2.11&hash=e8cd9e must be built because it never did before or the last one failed
➤ YN0007: │ gatsby-telemetry@npm:1.1.49::__archiveUrl=https%3A%2F%2Fregistry.npm.taobao.org%2Fgatsby-telemetry%2Fdownload%2Fgatsby-telemetry-1.1.49.tgz must be built because it never did before or the last one failed
➤ YN0007: │ sharp@npm:0.23.4::__archiveUrl=https%3A%2F%2Fregistry.npm.taobao.org%2Fsharp%2Fdownload%2Fsharp-0.23.4.tgz must be built because it never did before or the last one failed
➤ YN0007: │ mozjpeg@npm:6.0.1::__archiveUrl=https%3A%2F%2Fregistry.npm.taobao.org%2Fmozjpeg%2Fdownload%2Fmozjpeg-6.0.1.tgz must be built because it never did before or the last one failed
➤ YN0007: │ pngquant-bin@npm:5.0.2::__archiveUrl=https%3A%2F%2Fregistry.npm.taobao.org%2Fpngquant-bin%2Fdownload%2Fpngquant-bin-5.0.2.tgz must be built because it never did before or the last one failed
➤ YN0007: │ cwebp-bin@npm:5.1.0::__archiveUrl=https%3A%2F%2Fregistry.npm.taobao.org%2Fcwebp-bin%2Fdownload%2Fcwebp-bin-5.1.0.tgz must be built because it never did before or the last one failed
I use Husky and don't have this problem (and I suspect it doesn't have anything to do with Husky); please provide a step-by-step reproduction using Sherlock.
I use Husky and don't have this problem (and I suspect it doesn't have anything to do with Husky); please provide a step-by-step reproduction using Sherlock.
Pay attention to my full log, not just Husky.
➤ YN0007: │ husky@npm:4.2.1::__archiveUrl=https%3A%2F%2Fregistry.npm.taobao.org%2Fhusky%2Fdownload%2Fhusky-4.2.1.tgz must be built because it never did before or the last one failed
➤ YN0007: │ core-js@npm:3.6.4::__archiveUrl=https%3A%2F%2Fregistry.npm.taobao.org%2Fcore-js%2Fdownload%2Fcore-js-3.6.4.tgz must be built because it never did before or the last one failed
➤ YN0007: │ core-js@npm:2.6.11::__archiveUrl=https%3A%2F%2Fregistry.npm.taobao.org%2Fcore-js%2Fdownload%2Fcore-js-2.6.11.tgz must be built because it never did before or the last one failed
➤ YN0007: │ fsevents@patch:fsevents@npm%3A1.2.11%3A%3A__archiveUrl=https%253A%252F%252Fregistry.npm.taobao.org%252Ffsevents%252Fdownload%252Ffsevents-1.2.11.tgz#builtin<compat/fsevents>::version=1.2.11&hash=e8cd9e must be built because it never did before or the last one failed
➤ YN0007: │ gatsby-telemetry@npm:1.1.49::__archiveUrl=https%3A%2F%2Fregistry.npm.taobao.org%2Fgatsby-telemetry%2Fdownload%2Fgatsby-telemetry-1.1.49.tgz must be built because it never did before or the last one failed
➤ YN0007: │ sharp@npm:0.23.4::__archiveUrl=https%3A%2F%2Fregistry.npm.taobao.org%2Fsharp%2Fdownload%2Fsharp-0.23.4.tgz must be built because it never did before or the last one failed
➤ YN0007: │ mozjpeg@npm:6.0.1::__archiveUrl=https%3A%2F%2Fregistry.npm.taobao.org%2Fmozjpeg%2Fdownload%2Fmozjpeg-6.0.1.tgz must be built because it never did before or the last one failed
➤ YN0007: │ pngquant-bin@npm:5.0.2::__archiveUrl=https%3A%2F%2Fregistry.npm.taobao.org%2Fpngquant-bin%2Fdownload%2Fpngquant-bin-5.0.2.tgz must be built because it never did before or the last one failed
➤ YN0007: │ cwebp-bin@npm:5.1.0::__archiveUrl=https%3A%2F%2Fregistry.npm.taobao.org%2Fcwebp-bin%2Fdownload%2Fcwebp-bin-5.1.0.tgz must be built because it never did before or the last one failed
I'm not sure whether this is the same bug, but I get the same build error for Husky:
Steps to reproduce
$ mkdir husky-must-be-built && cd $_ && yarn init -y && yarn set version berry && yarn install
$ yarn add [email protected]
Output:
/*
...
➤ YN0000: ┌ Link step
➤ YN0007: │ husky@npm:4.2.1 must be built because it never did before or the last one failed
...
*/
Hi! 👋
This issue looks stale, and doesn't feature the reproducible label - which implies that you didn't provide a working reproduction using Sherlock. As a result, it'll be closed in a few days unless a maintainer explicitly vouches for it or you edit your first post to include a formal reproduction (you can use the playground for that).
Note that we require Sherlock reproductions for long-lived issues (rather than standalone git repositories or similar) because we're a small team. Sherlock gives us the ability to check which bugs are still affecting the master branch at any given point, and decreases the amount of code we need to run on our own machines (thus leading to faster bug resolution faster). It helps us help you! 😃
If you absolutely cannot reproduce a bug on Sherlock (for example because it's a Windows-only issue), a maintainer will have to manually add the upholded label.