ReactUnity / full-sample

Sample project used for development purpose

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

yarn install failing

FreakTheMighty opened this issue · comments

yarn install is giving me trouble.

$ yarn install
yarn install v1.22.19
info No lockfile found.
[1/4] Resolving packages...
warning @reactunity/scripts > @svgr/webpack > @svgr/plugin-svgo > svgo > stable@0.1.8: Modern JS already guarantees Array#sort() is a stable sort, so this library is deprecated. See the compatibility table on MDN: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/sort#browser_compatibility
[2/4] Fetching packages...
error An unexpected error occurred: "https://registry.yarnpkg.com/@types/eslint/-/eslint-8.4.5.tgz: Request failed \"404 Not Found\"".
info If you think this is a bug, please open a bug report with the information provided in "...\\full-sample\\react\\yarn-error.log".
info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.

Any thoughts on how to resolve this error?

image

I just tried and it worked for me. I suspect your issue might have been caused by a temporary internet connection loss, or a temporary error in the yarn registry. Running the command again may work. If it does not work, try running npm or setting yarn registry to npm registry. (Note: delete yarn.lock and node_modules just in case)

yarn config set registry https://registry.npmjs.org

Adding the npm registry did the trick. Thank you!