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

Bower install fails #44

Closed
mikkotikkanen opened this issue Apr 19, 2016 · 5 comments
Closed

Bower install fails #44

mikkotikkanen opened this issue Apr 19, 2016 · 5 comments
Assignees

Comments

@mikkotikkanen
Copy link

At least at Windows machines (haven't tested with others OS, but with multiple Windows machines), the bower install fails as bower.json seems to be a symbolic link with "package.json" text within it. The symbolic link seems to break down for some reason and since the "package.json" isn't exactly valid JSON, the install aborts.

bower hideshowpassword#*                               EMALFORMED Failed to read
<temp path here>\bower.json

Additional error details:
Unexpected token p
@mikkotikkanen
Copy link
Author

Also, 2.0.3 seems to install correctly

@tylersticka tylersticka self-assigned this Apr 19, 2016
@tylersticka
Copy link
Member

Thanks, @mikkotikkanen. The package.json file is valid JSON, but it may not be a valid bower.json.

@tylersticka
Copy link
Member

tylersticka commented Apr 19, 2016

Hmm, seems to work fine in OS X locally:

$ bower install hideshowpassword
bower cached        https://github.com/cloudfour/hideShowPassword.git#2.0.10
bower validate      2.0.10 against https://github.com/cloudfour/hideShowPassword.git#*
bower cached        https://github.com/jquery/jquery-dist.git#2.2.3
bower validate      2.2.3 against https://github.com/jquery/jquery-dist.git#>=1.11
bower install       hideshowpassword#2.0.10
bower install       jquery#2.2.3

hideshowpassword#2.0.10 bower_components/hideshowpassword
└── jquery#2.2.3

jquery#2.2.3 bower_components/jquery

Will attempt to troubleshoot on Windows.

@tylersticka
Copy link
Member

Verified on Windows.

The issue seems to be with the symlink. See: yeoman/yeoman#751

Solution may be to just remove bower.json file entirely. More research needed, as our team no longer uses Bower.

@tylersticka
Copy link
Member

@mikkotikkanen Thanks for reporting the issue! Should be fixed in v2.0.11 (just merged).

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

2 participants