You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I can't create or use a react app anymore as create-react-app fails with the following message:
...
Installing packages. This might take a couple minutes.
Installing react, react-dom, and react-scripts...
yarn add v0.20.0
info No lockfile found.
[1/4] 🔍 Resolving packages...
warning react-scripts > sw-precache-webpack-plugin > sw-precache > dom-urls > URIjs@1.16.1: package renamed to "urijs" (lower-case), please update accordingly
[2/4] 🚚 Fetching packages...
error https://artifactory.twitter.biz:443/api/npm/js-virtual/URIjs/-/URIjs-1.16.1.tgz: Bad hash. Expected "edebc678b8b74b26b05d2b481e12383f5ae04b8b" but got "859ad31890f
5f9528727be89f1932c94fb4731e2"
info Visit https://yarnpkg.com/en/docs/cli/add for documentation about this command...
It suddenly started happening when creating a simple react app. Any help would be appreciated as I can't do anything right now: can't install any package.json dependencies.
Thanks!
I've also submitted a bug with npm, as the error message suggests that: npm/npm#17108
Activity
Timer commentedon Jun 9, 2017
Based on your console output, this is a bug with
yarn-- notnpm.Please upgrade your yarn version to the latest.
It may not be a bug at all, however. It looks like you're using a custom registry which is corrupting packages or providing invalid hashes.
Can you try switching back to the default registry?
Marius-Stroe commentedon Jun 10, 2017
@Timer , you're right. Switched to default registry (was using the one at work inadvertently) and it worked. Thanks!