-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Description
Do you want to request a feature or report a bug?
Bug
What is the current behavior?
When running yarn
with existing (and correct) package.json
and empty node_modules
I get socket hang up
error on a X package. Next time I run yarn
I get the same error, but for Y package.
Example output:
$ yarn
yarn install v0.15.1
info No lockfile found.
[1/4] Resolving packages...
error https://registry.yarnpkg.com/semver: socket hang up
at createHangUpError (_http_client.js:252:15)
at TLSSocket.socketCloseListener (_http_client.js:284:23)
at emitOne (events.js:101:20)
at TLSSocket.emit (events.js:188:7)
at TCP._handle.close [as _onclose] (net.js:493:12)
If the current behavior is a bug, please provide the steps to reproduce.
Hard to think of steps to reproduce the issue. Below are my dependencies:
"dependencies": {
"axios": "^0.14.0",
"babel-polyfill": "^6.13.0",
"babel-runtime": "^6.11.6",
"classnames": "^2.2.5",
"dom-helpers": "^2.4.0",
"elemental": "^0.6.1",
"flexboxgrid": "^6.3.1",
"get-env": "^0.5.1",
"icheck": "^1.0.2",
"immutable": "^3.8.1",
"js-combinatorics": "^0.5.2",
"localforage": "^1.4.2",
"lodash": "^4.15.0",
"moment": "^2.15.1",
"moment-duration-format": "^1.3.0",
"normalizr": "^2.2.1",
"qs": "^6.2.1",
"ramda": "^0.22.1",
"rc-time-picker": "^2.0.2",
"react": "^15.3.2",
"react-addons-css-transition-group": "^15.3.2",
"react-addons-shallow-compare": "^15.3.2",
"react-addons-transition-group": "^15.3.2",
"react-dates": "^3.1.1",
"react-dom": "^15.3.2",
"react-flexbox-grid": "^0.10.2",
"react-highlight-words": "^0.4.1",
"react-icheck": "^0.3.5",
"react-popover": "^0.4.4",
"react-redux": "^5.0.0-beta.3",
"react-responsive": "^1.1.5",
"react-router": "^2.7.0",
"react-router-redux": "^4.0.5",
"react-select": "^1.0.0-rc.1",
"react-selectize": "^2.0.3",
"react-skylight": "^0.4.1",
"react-smooth-collapse": "^1.1.0",
"react-tabs": "^0.8.0",
"react-virtualized": "^8.0.11",
"reactstrap": "^3.4.0",
"recharts": "^0.14.1",
"redux": "^3.6.0",
"redux-actions": "^0.12.0",
"redux-form": "^6.1.0",
"redux-logger": "^2.6.1",
"redux-logic": "^0.9.3",
"redux-thunk": "^2.1.0",
"reselect": "^2.5.4",
"rxjs": "^5.0.0-beta.12",
"tether": "^1.3.7",
"uuid-js": "^0.7.5"
},
"devDependencies": {
"autoprefixer": "^6.4.0",
"babel-core": "^6.14.0",
"babel-eslint": "^6.1.2",
"babel-loader": "^6.2.5",
"babel-plugin-transform-class-properties": "^6.11.5",
"babel-plugin-transform-object-rest-spread": "^6.8.0",
"babel-plugin-transform-runtime": "^6.12.0",
"babel-preset-es2015": "^6.14.0",
"babel-preset-es2016": "^6.11.3",
"babel-preset-es2017": "^6.14.0",
"babel-preset-react": "^6.11.1",
"css-loader": "^0.24.0",
"eslint": "^3.4.0",
"eslint-config-airbnb-base": "^5.0.3",
"eslint-import-resolver-webpack": "^0.5.1",
"eslint-plugin-import": "^1.14.0",
"eslint-plugin-jsx-a11y": "^2.2.0",
"eslint-plugin-lodash-fp": "^2.0.1",
"eslint-plugin-react": "^6.2.0",
"extract-text-webpack-plugin": "^2.0.0-beta.4",
"file-loader": "^0.9.0",
"handlebars": "^4.0.5",
"handlebars-loader": "^1.3.0",
"html-webpack-plugin": "^2.22.0",
"node-sass": "^3.10.1",
"postcss-loader": "^0.11.1",
"postcss-modules-values": "^1.2.2",
"postcss-scss": "^0.2.1",
"postcss-strip-inline-comments": "^0.1.5",
"precss": "^1.4.0",
"react-immutable-proptypes": "^2.1.0",
"react-moment-proptypes": "^1.2.0",
"sass-loader": "^4.0.2",
"source-map-loader": "^0.1.5",
"style-loader": "^0.13.1",
"stylelint": "^7.2.0",
"stylelint-config-standard": "^13.0.0",
"stylelint-webpack-plugin": "^0.3.1",
"url-loader": "^0.5.7",
"webpack": "2.1.0-beta.21",
"webpack-dashboard": "^0.1.8",
"webpack-dev-server": "2.1.0-beta.1"
}
What is the expected behavior?
Yarn should install all packages, npm works just fine with my current setup.
Please mention your node.js, yarn and operating system version.
yarn: 0.15.1
OS: Linux 4.7.6-1
node: v6.6.0
I suppose this may be the problem with servers being overloaded but I'm posting this issue in case there's something else and this is in fact some bug.