When I attempt to add eslint using this command with Vue CLI version 4.5.15:
vue add eslint
An error message is displayed:
WARN There are uncommitted changes in the current repository, it's recommended to commit or stash them first.
? Still proceed? Yes
📦 Installing @vue/cli-plugin-eslint...
yarn add v1.22.17
[1/4] 🔍 Resolving packages...
[2/4] 🚚 Fetching packages...
info If you think this is a bug, please open a bug report with the information provided in "/Users/xiaoqiangjiang/source/reddwarf/frontend/crx-selection-translate/yarn-error.log".
info Visit https://yarnpkg.com/en/docs/cli/add for documentation about this command.
error An unexpected error occurred: "Commit hash required".
ERROR command failed: yarn add @vue/cli-plugin-eslint@~4.5.0 -D
How can I resolve this issue? I have attempted removing the lock file without success. The Node.js version being used is v16.13.2
.