jhnns / rewire

Easy monkey-patching for node.js unit tests
MIT License
3.08k stars 128 forks source link

Can't install with yarn #125

Closed cjhoward92 closed 6 years ago

cjhoward92 commented 6 years ago

I am using yarn v1.3.2 and Node 9.2.0. When I install rewire with npm it works fine, with yarn I get the following:

yarn add v1.3.2
[1/4] Resolving packages...
[2/4] Fetching packages...
error An unexpected error occurred: "https://registry.yarnpkg.com/const-lazy/-/const-lazy-2.1.0.tgz: Request failed \"404 Not Found\"".
info If you think this is a bug, please open a bug report with the information provided in "/media/carson/Secondary/scheduler-api/yarn-error.log".
info Visit https://yarnpkg.com/en/docs/cli/add for documentation about this command.

I can't find anything on const-lazy as it clearly does not exist anywhere. Any ideas? I downgraded node and yarn to lower versions and it still didn't work.

I realize this may be a yarn issue, but was wondering if someone here might know what to do.

cjhoward92 commented 6 years ago

I verified it is an issue in my specific package, but I don't know why. I will let you know if i figure it out.

cjhoward92 commented 6 years ago

Destroying my node_modules and yarn.lock then running yarn cache clean && yarn worked fine... Weird!