Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

404 while installing react-dev-utils package #6330

Open
mushfikur310 opened this issue Aug 30, 2018 · 11 comments
Open

404 while installing react-dev-utils package #6330

mushfikur310 opened this issue Aug 30, 2018 · 11 comments
Assignees
Labels

Comments

@mushfikur310
Copy link

Do you want to request a feature or report a bug?
BUG

What is the current behavior?
Fails to install packages

If the current behavior is a bug, please provide the steps to reproduce.

  • create a simple create-react-app
  • yarn install fails

What is the expected behavior?
Should install all dependencies

Please mention your node.js, yarn and operating system version.
yarn version 1.6.4
node version 8.0

** getting following error logs **
Arguments:
/opt/node/bin/node /usr/share/yarn/bin/yarn.js install

PATH:
/home/mrk/.local/share/umake/bin:/home/mrk/bin:/home/mrk/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/opt/node/bin:/opt/node/lib:/usr/local/go/bin:/home/mrk/work/bin:/usr/local/go/bin

Yarn version:
1.9.4

Node version:
10.5.0

Platform:
linux x64

Trace:
Error: https://registry.yarnpkg.com/react-dev-utils/-/react-dev-utils-5.0.2.tgz: Request failed "404 Not Found"
at ResponseError.ExtendableBuiltin (/usr/share/yarn/lib/cli.js:218:66)
at new ResponseError (/usr/share/yarn/lib/cli.js:324:124)
at Request. (/usr/share/yarn/lib/cli.js:61013:26)
at Request.emit (events.js:182:13)
at Request.module.exports.Request.onRequestResponse (/usr/share/yarn/lib/cli.js:138345:10)
at ClientRequest.emit (events.js:182:13)
at HTTPParser.parserOnIncomingClient (_http_client.js:546:21)
at HTTPParser.parserOnHeadersComplete (_http_common.js:109:17)
at TLSSocket.socketOnData (_http_client.js:432:20)
at TLSSocket.emit (events.js:182:13)

npm manifest:
{
"name": "portal-frontend",
"version": "0.1.0",
"private": true,
"dependencies": {
"axios": "^0.18.0",
"deep-equal": "^1.0.1",
"email-validator": "^2.0.4",
"express": "^4.16.3",
"ignore-styles": "^5.0.1",
"moment": "^2.22.2",
"react": "^16.4.1",
"react-classset": "^0.0.2",
"react-datepicker": "^1.5.0",
"react-dom": "^16.4.1",
"react-onclickoutside": "^6.7.1",
"react-redux": "^5.0.7",
"react-router-dom": "^4.3.1",
"react-scripts": "1.1.4",
"redux": "^4.0.0",
"redux-promise-middleware": "^5.1.1",
"semantic-ui-css": "^2.3.2",
"semantic-ui-react": "^0.81.3",
"toastr": "^2.1.4"
},
"scripts": {
"start": "react-scripts start",
"build": "react-scripts build",
"test": "react-scripts test --env=jsdom",
"eject": "react-scripts eject",
"ssr": "nodemon server/app.js --exec babel-node --presets=@babel/preset-env,@babel/preset-react --plugins=@babel/plugin-proposal-class-properties"
},
"devDependencies": {
"@babel/cli": "^7.0.0-beta.51",
"@babel/core": "^7.0.0-beta.51",
"@babel/node": "^7.0.0-beta.51",
"@babel/plugin-proposal-class-properties": "^7.0.0-beta.51",
"@babel/preset-env": "^7.0.0-beta.51",
"@babel/preset-react": "^7.0.0-beta.51",
"babel-plugin-module-resolver": "^3.1.1",
"nodemon": "^1.17.5"
}
}

yarn manifest:
No manifest

Lockfile:
No lockfile

@ghost ghost assigned torifat Aug 30, 2018
@ghost ghost added the triaged label Aug 30, 2018
@jackwilsdon
Copy link

Are you still seeing this? Can you visit https://registry.yarnpkg.com/react-dev-utils/-/react-dev-utils-5.0.2.tgz in your browser and see if it downloads correctly?

@mushfikur310
Copy link
Author

Not yet fixed.
When I visit this https://registry.yarnpkg.com/react-dev-utils/-/react-dev-utils-5.0.2.tgz link, it responding the following-
{"error":"Not found"}

@jackwilsdon
Copy link

That's weird - it works fine for me. Must be a regional thing I guess?

@AxelTerizaki
Copy link

I confirm this also occurs to me and crashes my CI/CD pipelines relying on this package (except it's version 5.0.1 for me)

It's been like this yesterday evening too, but relaunching the pipeline a few minutes later worked, now it's broken again

@jackwilsdon
Copy link

@AxelTerizaki I believe this is caused by Yarn revoking react-dev-utils@5.0.1 due to a CVE (although it would have been nice to get a message about this...). Updating to react-scripts@1.1.5 fixed it for me.

@mushfikur310
Copy link
Author

mushfikur310 commented Aug 30, 2018

I have updated package.json as follows-
"react-scripts": "1.1.5"
is this the way to update the react-scripts ?
Still isn't working!

@jackwilsdon
Copy link

jackwilsdon commented Aug 30, 2018

@khanbro

yarn add --exact react-scripts@1.1.5

@ghost
Copy link

ghost commented Aug 30, 2018

same issue for me also please share some ideas to fix it

@ghost
Copy link

ghost commented Aug 30, 2018

please run this command and issue fixed now:

npm install -g react-dev-utils@https://registry.npmjs.org/react-dev-utils/react-dev-utils-5.0.2.tgz

@jackwilsdon
Copy link

jackwilsdon commented Aug 30, 2018

That's not a good idea if you're using CRA, as you'll end up using a different version of dev utils to react-scripts. You should instead be updating react-scripts to 1.1.5.

Also you shouldn't be using npm to install it if you're using yarn!

@jackwilsdon
Copy link

Looks like the 5.0.1 issue was a problem on NPM's end - https://status.npmjs.org/incidents/gnqjntz7gx0y.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants