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

EUNSUPPORTEDPROTOCOL #1239

Closed
sergibondarenko opened this issue Oct 11, 2018 · 8 comments
Closed

EUNSUPPORTEDPROTOCOL #1239

sergibondarenko opened this issue Oct 11, 2018 · 8 comments

Comments

@sergibondarenko
Copy link

sergibondarenko commented Oct 11, 2018

I got the following error when trying to install the lib

trex@cave:/media/trex/safe1/Development/kibanaPlugin$ npm install @elastic/eui --save
npm ERR! code EUNSUPPORTEDPROTOCOL
npm ERR! Unsupported URL Type "npm:": npm:@elastic/lodash@3.10.1-kibana1

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/trex/.npm/_logs/2018-10-11T12_35_29_763Z-debug.log

In my plugin I use lodash v4.17.10.

@sergibondarenko
Copy link
Author

The lib is installed well if I manually add "@elastic/eui": "4.0.0" to packages.json and do npm install

@chandlerprall
Copy link
Contributor

The EUI library does not support being installed via npm - you must use yarn.

@sergibondarenko
Copy link
Author

@chandlerprall but there is this instruction in the readme https://github.com/elastic/eui#installation

npm install @elastic/eui

@chandlerprall
Copy link
Contributor

I'll update that doc, thanks!

@acostache
Copy link

I am using EUI for a plugin that is compatible with Kibana 6.1.x. Now I assume EUI (from 4.3.0 upwards, from my tests) can no longer be used to write plugins for Kibana versions lower than 6.2 (I recall that's when yarn was introduced)?

@chandlerprall
Copy link
Contributor

You're correct, yarn was introduced in Kibana 6.2 (elastic/kibana#15485).

If your plugin authoring process requires EUI to be installed/managed by Kibana, you would need to stick to a pre-4.3.0 EUI. However, if you're able to build your plugin code outside of Kibana you should be able to use any version of EUI.

@JoshMock
Copy link
Member

Just for the sake of discussion, I'm curious about the decision to only support installation via yarn and not npm. Is that decision documented somewhere? I'd also be curious if we're thinking about adding npm support again at some point and it's just not a top priority.

Background: I'm playing with using EUI to manage layout and default styles for a non-Kibana UI that Infra is working on and stumbled around for a little while trying to get it installed before realizing the docs said it was Yarn-only.

I'd love to help work on adding npm support, unless I'm the only person who thinks the effort would be worth it. 🙂

@chandlerprall
Copy link
Contributor

chandlerprall commented Nov 29, 2018

We're using yarn's ability to alias packages to use Elastic/Kibana's version of lodash@3.10.1, which contains a security fix. This is meant as temporary (though low priority) until we either migrate to lodash 4 or off lodash entirely ( #360 )

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

No branches or pull requests

4 participants