Open fluff opened 5 years ago
You can use the --ignore-engines
when using yarn: https://yarnpkg.com/lang/en/docs/cli/install/#toc-yarn-install-ignore-engines
I'm not sure how we can fix that on our side without removing functionality. Maybe we could leverage optionalDependencies
, but then we'd need to conditionally require this module only if it is installed.
Thanks, --ignore-engines
did the trick. Feel free to close this issue - or leave it open still, in case this is something that could be improved later.
Type of issue
Bug
Yo 3.0.0 fails to install with yarn on node8, because the dependency global-agent requires node10.
Apparently "
yarn add
" evaluates the "engines
" requirements of dependencies and refuses to install, but "npm install
" seems to be happy to put global-agent in node_modules even if it has an "engines
" requirement that is not satisfied?My environment
Debian Linux 9 amd64
8.16.0
6.4.1
1.16.0
3.0.0
(runyo --version
in your terminal)Expected behavior
In an empty directory, the following command used to work to install yeoman:
yarn add yo
. But since the 3.0 release a few days ago, this has stopped working on node8.Current behavior
Yarn refuses to install yo on node 8 because it has a dependency global-agent@2.0.0 which requires node 10.
Steps to reproduce the behavior
yarn add yo
in an empty directory with node 8 in the path.Command line output