N
N
Nathan Stark2016-12-21 08:58:42
bower
Nathan Stark, 2016-12-21 08:58:42

Why is there an error when registering my package with bower?

I'm trying to register my packages in this article, everything is described in an accessible way and I do it by analogy.
I enter
bower register sl-grid https://github.com/Nathan-Stark/sl-grid.git
I get

bower sl-grid#*                resolve https://github.com/Nathan-Stark/sl-grid.git#*
bower sl-grid#*               download https://github.com/Nathan-Stark/sl-grid/archive/0.0.2.tar.gz
bower sl-grid#*                extract archive.tar.gz
bower sl-grid#*             EMALFORMED Failed to read /var/folders/qs/dps05qvx3w13z349nj5rc5jc0000gn/T/nathan/bower/9d4a8d95f63d7dd6a21a490a15f6b0b3-57610-hAo32F/bower.json

Additional error details:
Unexpected token 
 in JSON at position 1

While googling, I came across the answer they say "there are not enough rights", okay.
Tried as root
sudo bower register sl-grid https://github.com/Nathan-Stark/sl-grid.git --allow-root
And as my user
bower register sl-grid https://github.com/Nathan- Stark/sl-grid.git
Same effect.
For the sake of interest, I went into the op folder of the path that he writes and checked the rights to the folder, my user is worth it and everything is there. This is where I cut the problem. In general, I'm at an impasse guys, can anyone have any ideas?
UPDATE I didn't insert the whole error, I updated the error text

Answer the question

In order to leave comments, you need to log in

1 answer(s)
N
Nathan Stark, 2016-12-21
@MattLe

Нашел проблему сам, тег для версии надо писать с буквой "v", т.е. у меня версия была "0.0.2" а надо было "v0.0.2"

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question