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

Fails with non-hidden bower.json files #17

Open
martinffx opened this issue Oct 31, 2017 · 3 comments
Open

Fails with non-hidden bower.json files #17

martinffx opened this issue Oct 31, 2017 · 3 comments

Comments

@martinffx
Copy link

The package I'm using doesn't have a hidden .bower.json file, from what I can tell both formats are used quite commonly (at least at one point in time).

bower-away should support both?

$ bower-away
Error: ENOENT: no such file or directory, open '/Users/martinrichards/code/work/angular-app/vendor/angular-bindonce/.bower.json'
    at Error (native)
    at Object.fs.openSync (fs.js:642:18)
    at Object.fs.readFileSync (fs.js:510:33)
    at _callee$ (/Users/martinrichards/.nvm/versions/node/v6.11.3/lib/node_modules/bower-away/cli.js:99:40)
    at tryCatch (/Users/martinrichards/.nvm/versions/node/v6.11.3/lib/node_modules/bower-away/node_modules/regenerator-runtime/runtime.js:65:40)
    at GeneratorFunctionPrototype.invoke [as _invoke] (/Users/martinrichards/.nvm/versions/node/v6.11.3/lib/node_modules/bower-away/node_modules/regenerator-runtime/runtime.js:299:22)
    at GeneratorFunctionPrototype.prototype.(anonymous function) [as next] (/Users/martinrichards/.nvm/versions/node/v6.11.3/lib/node_modules/bower-away/node_modules/regenerator-runtime/runtime.js:117:21)
    at step (/Users/martinrichards/.nvm/versions/node/v6.11.3/lib/node_modules/bower-away/cli.js:253:30)
    at _next (/Users/martinrichards/.nvm/versions/node/v6.11.3/lib/node_modules/bower-away/cli.js:268:9)
    at /Users/martinrichards/.nvm/versions/node/v6.11.3/lib/node_modules/bower-away/cli.js:275:7
@sheerun
Copy link
Owner

sheerun commented Oct 31, 2017

thanks for reporting. as a workaround remove any directories without .bower.json after bower installation

@martinffx
Copy link
Author

What do you mean? I still need the package without the .bower.json?

Should I move the bower.json to .bower.json then run?

@sheerun
Copy link
Owner

sheerun commented Nov 1, 2017

in this case try rm -rf vendor/angular-bindonce and then bower-away

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