elastic / kibana

Your window into the Elastic Stack
https://www.elastic.co/products/kibana
Other
19.71k stars 8.12k forks source link

Yarn install doesn't work #63941

Closed nimaansary closed 4 years ago

nimaansary commented 4 years ago

Hi there i run yarn cache clean and then I want to run yarn install but I take this error:

user@user:~/Sources/kibana$ yarn install
yarn install v1.16.0
$ node ./preinstall_check

WARNING: When installing dependencies, prefer `yarn kbn bootstrap`

[1/5] Validating package.json...
[2/5] Resolving packages...
warning Resolution field "@types/node@10.12.27" is incompatible with requested version "@types/node@8.5.8"
warning Resolution field "@types/node@10.12.27" is incompatible with requested version "@types/node@8.5.8"
warning Resolution field "@types/node@10.12.27" is incompatible with requested version "@types/node@8.5.8"
warning Resolution field "@types/node@10.12.27" is incompatible with requested version "@types/node@8.5.8"
warning Resolution field "lodash@4.17.13" is incompatible with requested version "lodash@4.17.11"
warning Resolution field "@types/node@10.12.27" is incompatible with requested version "@types/node@^12.0.2"
[3/5] Fetching packages...
info There appears to be trouble with your network connection. Retrying...
info There appears to be trouble with your network connection. Retrying...

i also tried `yarn kbn bootstrap` but same error occured!

My yarn config list:

yarn config list
yarn config v1.16.0
info yarn config
{ 'version-tag-prefix':
   'v',
  'version-git-tag':
   true,
  'version-commit-hooks':
   true,
  'version-git-sign':
   false,
  'version-git-message':
   'v%s',
  'init-version':
   '1.0.0',
  'init-license':
   'MIT',
  'save-prefix':
   '^',
  'bin-links':
   true,
  'ignore-scripts':
   false,
  'ignore-optional':
   false,
  registry:
   'https://registry.yarnpkg.com',
  'strict-ssl':
   false,
  'user-agent':
   'yarn/1.16.0 npm/? node/v10.15.2 linux x64',
  lastUpdateCheck:
   1587300994065,
  '--ignore-workspace-root-check':
   true }
info npm config
{ 'strict-ssl':
   false,
  registry:
   'http://registry.npmjs.org/' }

what is problem? my network is connected and I test it in several ways.

Dosant commented 4 years ago

Hi @nimaansary,

I'd try to follow contributing guide: https://github.com/elastic/kibana/blob/master/CONTRIBUTING.md. yarn install is not part of the process, yarn kbn bootstrap should be used instead.

Though I doubt it is related to the error you see. Looks like a local issue.

elasticmachine commented 4 years ago

Pinging @elastic/kibana-operations (Team:Operations)

nimaansary commented 4 years ago

@Dosant yes, i tried that too, but give me same error

nimaansary commented 4 years ago
user@user:~/Desktop/Sources/kibana/kibana$ yarn kbn bootstrap
yarn run v1.16.0
$ node scripts/kbn bootstrap
Running [bootstrap] command from [/home/user/Desktop/Sources/kibana/kibana]:

Found [35] projects:

kibana
├── packages
│   ├── elastic-datemath (@elastic/datemath)
│   ├── eslint-config-kibana (@elastic/eslint-config-kibana)
│   ├── kbn-babel-code-parser (@kbn/babel-code-parser)
│   ├── kbn-babel-preset (@kbn/babel-preset)
│   ├── kbn-config-schema (@kbn/config-schema)
│   ├── kbn-dev-utils (@kbn/dev-utils)
│   ├── kbn-elastic-idx (@kbn/elastic-idx)
│   ├── kbn-es-query (@kbn/es-query)
│   ├── kbn-es (@kbn/es)
│   ├── kbn-eslint-import-resolver-kibana (@kbn/eslint-import-resolver-kibana)
│   ├── kbn-eslint-plugin-eslint (@kbn/eslint-plugin-eslint)
│   ├── kbn-expect (@kbn/expect)
│   ├── kbn-i18n (@kbn/i18n)
│   ├── kbn-interpreter (@kbn/interpreter)
│   ├── kbn-maki (@kbn/maki)
│   ├── kbn-plugin-generator (@kbn/plugin-generator)
│   ├── kbn-plugin-helpers (@kbn/plugin-helpers)
│   ├── kbn-pm (@kbn/pm)
│   ├── kbn-spec-to-console (spec-to-console)
│   ├── kbn-test-subj-selector (@kbn/test-subj-selector)
│   ├── kbn-test (@kbn/test)
│   └── kbn-ui-framework (@kbn/ui-framework)
├── test
│   ├── plugin_functional/plugins
│   │   ├── core_plugin_a
│   │   ├── core_plugin_b
│   │   ├── kbn_tp_custom_visualizations
│   │   ├── kbn_tp_embeddable_explorer
│   │   ├── kbn_tp_sample_app_plugin
│   │   ├── kbn_tp_sample_panel_action
│   │   └── kbn_tp_visualize_embedding
│   └── interpreter_functional/plugins/kbn_tp_run_pipeline
├── x-pack (x-pack)
│   └── legacy/plugins
│       ├── infra
│       └── siem
└── plugins/kibana-time-plugin-master (kibana-time-plugin)

Running installs in topological order:

Installing dependencies in [kibana]:

$ node ./preinstall_check
[1/5] Validating package.json...
[2/5] Resolving packages...
warning Resolution field "@types/node@10.12.27" is incompatible with requested version "@types/node@8.5.8"
warning Resolution field "@types/node@10.12.27" is incompatible with requested version "@types/node@8.5.8"
warning Resolution field "@types/node@10.12.27" is incompatible with requested version "@types/node@8.5.8"
warning Resolution field "@types/node@10.12.27" is incompatible with requested version "@types/node@8.5.8"
warning Resolution field "lodash@4.17.13" is incompatible with requested version "lodash@4.17.11"
warning Resolution field "@types/node@10.12.27" is incompatible with requested version "@types/node@^12.0.2"
[3/5] Fetching packages...
info There appears to be trouble with your network connection. Retrying...
info There appears to be trouble with your network connection. Retrying...
info There appears to be trouble with your network connection. Retrying...
info There appears to be trouble with your network connection. Retrying...
error An unexpected error occurred: "https://registry.yarnpkg.com/@types/hapi/-/hapi-17.0.18.tgz: tunneling socket could not be established, statusCode=503".
info If you think this is a bug, please open a bug report with the information provided in "/home/user/Desktop/Sources/kibana/kibana/yarn-error.log".
info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.

[bootstrap] failed:

Error: Command failed: yarn install --non-interactive
    at makeError (/home/user/Desktop/Sources/kibana/kibana/packages/kbn-pm/dist/index.js:14149:9)
    at Promise.all.then.arr (/home/user/Desktop/Sources/kibana/kibana/packages/kbn-pm/dist/index.js:14253:16)
    at process._tickCallback (internal/process/next_tick.js:68:7)
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
mistic commented 4 years ago

@nimaansary could u try to use yarn 1.21.1 please?

tylersmalley commented 4 years ago

Are you on any sort of restricted network? Can you access https://registry.yarnpkg.com/@types/hapi/-/hapi-17.0.18.tgz directly?

tylersmalley commented 4 years ago

Closing as this appears to have been a network related issue.