Can't reinstall node_modules from a fresh version of the project
Bug Description
Hi, first off -- thanks for your work here! This a very helpful repo. This is a minor issue I noticed when trying to collaborate with a friend on a project created from this base. After a fresh install of the project and a push to GitHub, my friend can't run yarn install to reproduce the node_modules folder created by running yarn create eth-app.
Steps to Reproduce
$ yarn create eth-app foo
$ rm -rf foo/node_modules
$ cd foo
$ yarn install
Output
➜ foo git:(master) ✗ yarn install yarn install v1.22.10 [1/4] 🔍 Resolving packages... error Couldn't find match for "36040d5b5312f19a025782b5e36663823494c2f3" in "refs/heads/air,refs/heads/cloneexpression,refs/heads/encode16-fast,refs/heads/eqeqeq,refs/heads/externref-bind,refs/heads/main,refs/heads/memoryData,refs/heads/notempfree,refs/heads/nullish,refs/heads/release,refs/heads/relocatable,refs/heads/scopeanalyzer,refs/heads/snap,refs/heads/threadsafe,refs/heads/trim-data-segments,refs/tags/v0.10.0,refs/tags/v0.10.0-nightly.20200517,refs/tags/v0.10.0-nightly.20200526,refs/tags/v0.10.0-nightly.20200528,refs/tags/v0.10.0-nightly.20200529,refs/tags/v0.10.0-nightly.20200530,refs/tags/v0.10.0-nightly.20200610,refs/tags/v0.10.0-nightly.20200611,refs/tags/v0.10.1,refs/tags/v0.10.2,refs/tags/v0.11.0,refs/tags/v0.12.0,refs/tags/v0.12.1,refs/tags/v0.12.2,refs/tags/v0.12.3,refs/tags/v0.12.4,refs/tags/v0.12.5,refs/tags/v0.12.6,refs/tags/v0.13.0,refs/tags/v0.13.1,refs/tags/v0.13.2,refs/tags/v0.13.3,refs/tags/v0.13.4,refs/tags/v0.13.5,refs/tags/v0.13.6,refs/tags/v0.13.7,refs/tags/v0.13.8,refs/tags/v0.14.0,refs/tags/v0.14.1,refs/tags/v0.14.10,refs/tags/v0.14.11,refs/tags/v0.14.12,refs/tags/v0.14.13,refs/tags/v0.14.2,refs/tags/v0.14.3,refs/tags/v0.14.4,refs/tags/v0.14.5,refs/tags/v0.14.6,refs/tags/v0.14.7,refs/tags/v0.14.8,refs/tags/v0.14.9,refs/tags/v0.15.0,refs/tags/v0.15.1,refs/tags/v0.15.2,refs/tags/v0.16.0,refs/tags/v0.16.1,refs/tags/v0.17.0,refs/tags/v0.17.1,refs/tags/v0.17.10,refs/tags/v0.17.11,refs/tags/v0.17.12,refs/tags/v0.17.13,refs/tags/v0.17.14,refs/tags/v0.17.2,refs/tags/v0.17.3,refs/tags/v0.17.4,refs/tags/v0.17.5,refs/tags/v0.17.6,refs/tags/v0.17.7,refs/tags/v0.17.8,refs/tags/v0.17.9,refs/tags/v0.18.0,refs/tags/v0.18.1,refs/tags/v0.18.10,refs/tags/v0.18.11,refs/tags/v0.18.12,refs/tags/v0.18.13,refs/tags/v0.18.14,refs/tags/v0.18.15,refs/tags/v0.18.16,refs/tags/v0.18.17,refs/tags/v0.18.18,refs/tags/v0.18.19,refs/tags/v0.18.2,refs/tags/v0.18.20,refs/tags/v0.18.21,refs/tags/v0.18.22,refs/tags/v0.18.23,refs/tags/v0.18.24,refs/tags/v0.18.25,refs/tags/v0.18.26,refs/tags/v0.18.27,refs/tags/v0.18.28,refs/tags/v0.18.29,refs/tags/v0.18.3,refs/tags/v0.18.30,refs/tags/v0.18.31,refs/tags/v0.18.32,refs/tags/v0.18.4,refs/tags/v0.18.5,refs/tags/v0.18.6,refs/tags/v0.18.7,refs/tags/v0.18.8,refs/tags/v0.18.9,refs/tags/v0.19.0,refs/tags/v0.19.1,refs/tags/v0.19.10,refs/tags/v0.19.11,refs/tags/v0.19.12,refs/tags/v0.19.13,refs/tags/v0.19.14,refs/tags/v0.19.15,refs/tags/v0.19.16,refs/tags/v0.19.2,refs/tags/v0.19.3,refs/tags/v0.19.4,refs/tags/v0.19.5,refs/tags/v0.19.6,refs/tags/v0.19.7,refs/tags/v0.19.8,refs/tags/v0.19.9,refs/tags/v0.6,refs/tags/v0.8.0,refs/tags/v0.8.0-nightly.20191109,refs/tags/v0.8.0-nightly.20191110,refs/tags/v0.8.0-nightly.20191114,refs/tags/v0.8.0-nightly.20191115,refs/tags/v0.8.0-nightly.20191117,refs/tags/v0.8.1,refs/tags/v0.8.1-nightly.20191119,refs/tags/v0.8.1-nightly.20191121,refs/tags/v0.8.1-nightly.20191124,refs/tags/v0.8.1-nightly.20191130,refs/tags/v0.8.1-nightly.20191201,refs/tags/v0.8.1-nightly.20191205,refs/tags/v0.8.1-nightly.20191208,refs/tags/v0.8.1-nightly.20191209,refs/tags/v0.8.1-nightly.20191214,refs/tags/v0.8.1-nightly.20191218,refs/tags/v0.8.1-nightly.20191219,refs/tags/v0.8.1-nightly.20191220,refs/tags/v0.8.1-nightly.20191221,refs/tags/v0.8.1-nightly.20191228,refs/tags/v0.8.1-nightly.20191229,refs/tags/v0.8.1-nightly.20200101,refs/tags/v0.8.1-nightly.20200102,refs/tags/v0.8.1-nightly.20200110,refs/tags/v0.8.1-nightly.20200111,refs/tags/v0.8.1-nightly.20200112,refs/tags/v0.8.1-nightly.20200114,refs/tags/v0.8.1-nightly.20200119,refs/tags/v0.8.1-nightly.20200120,refs/tags/v0.8.1-nightly.20200123,refs/tags/v0.8.1-nightly.20200125,refs/tags/v0.9.0,refs/tags/v0.9.0-nightly.20200127,refs/tags/v0.9.0-nightly.20200129,refs/tags/v0.9.1,refs/tags/v0.9.1-nightly.20200131,refs/tags/v0.9.1-nightly.20200209,refs/tags/v0.9.1-nightly.20200210,refs/tags/v0.9.1-nightly.20200212,refs/tags/v0.9.2,refs/tags/v0.9.2-nightly.20200227,refs/tags/v0.9.2-nightly.20200228,refs/tags/v0.9.2-nightly.20200304,refs/tags/v0.9.2-nightly.20200310,refs/tags/v0.9.3,refs/tags/v0.9.4,refs/tags/v0.9.4-nightly.20200314,refs/tags/v0.9.4-nightly.20200315,refs/tags/v0.9.4-nightly.20200316,refs/tags/v0.9.4-nightly.20200325,refs/tags/v0.9.4-nightly.20200329,refs/tags/v0.9.4-nightly.20200401,refs/tags/v0.9.4-nightly.20200402,refs/tags/v0.9.4-nightly.20200411,refs/tags/v0.9.4-nightly.20200413,refs/tags/v0.9.4-nightly.20200414,refs/tags/v0.9.4-nightly.20200416,refs/tags/v0.9.4-nightly.20200421,refs/tags/v0.9.4-nightly.20200422,refs/tags/v0.9.4-nightly.20200423,refs/tags/v0.9.4-nightly.20200427,refs/tags/v0.9.4-nightly.20200428,refs/tags/v0.9.4-nightly.20200429,refs/tags/v0.9.4-nightly.20200430,refs/tags/v0.9.4-nightly.20200506,refs/tags/v0.9.4-nightly.20200509,refs/tags/v0.9.4-nightly.20200510,refs/tags/v0.9.4-nightly.20200514" for "https://github.com/AssemblyScript/assemblyscript".Expected Behavior
I expected that I would be able to regenerate the node_modules folder using yarn install, so that I wouldn't have to check it into GitHub for collaboration.
Additional Context I'm on yarn version 1.22.10, Node v15.14.0.
Hey Samantha, thanks for the kind words, and the detailed report. I couldn't manage to reproduce this, on my Mac running [email protected] with yarn v1.22.10. Assuming that you are on Windows, this issue may be a duplicate of #115. Can you delete the yarn cache and see if that works?
At any rate thanks for opening this - I noticed that though installation works on my end, the yarn.lock file is modified. It shouldn't. The installation of node_modules should be deterministic.
Deleting the yarn cache and running yarn install resulted in a clean install of the node_modules, so all good here now. Thanks!
Forgot to mention that I'm also on [email protected], so may not just be a Windows problem?
Deleting the yarn cache and running yarn install resulted in a clean install of the node_modules, so all good here now. Thanks!
Glad to hear!
Forgot to mention that I'm also on [email protected], so may not just be a Windows problem?
Ooh. That's good to know. Thanks for sharing that.