A
A
Abdula Magomedov2016-06-16 05:56:21
Yii
Abdula Magomedov, 2016-06-16 05:56:21

Why can't I download npm package via composer?

Hey! The socket.io
package needed to be installed . Because I have a project on Yii2, and I will use this library in this project, I thought to upload the library to a shared folder, i.e. using composer. I enter It connects, tries to download, then displays an error about authorization via ssh. What could be the problem. Che what is on the internet did not help me.
composer require npm-asset/socket.io
d544e32c683d4d73947d21614dcae5a4.png

Answer the question

In order to leave comments, you need to log in

2 answer(s)
V
vyachin, 2016-06-16
@Avarskiy

this is how it will work
joxi.ru/brRdN5KSQWGBx2

D
Dmitry Evgrafovich, 2016-06-16
@Tantacula

There is no such package on packagist.org, therefore it does not connect. Try this article to set up composer.json and connect the git repository, as the author of superlogger connected https://habrahabr.ru/post/145946/ , but use https://github.com/socketio/socket.io instead of what you specified. In general, it’s better for a node to download using npm, since it’s not much more complicated than a composer.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question