2016-04-23 13 views
5

हर बार जब मैं बॉवर टूल के साथ करता हूं तो मुझे जेसन प्रारूप में आउटपुट मिलता है।बॉवर आउटपुट JSON प्रारूप

उदाहरण के लिए:

** बोवर मदद ** cosole में

उत्पादन:

{ 
    "usage": [ 
    "<command> [<args>] [<options>]" 
    ], 
    "commands": { 
    "cache": "Manage bower cache", 
    "help": "Display help information about Bower", 
    "home": "Opens a package homepage into your favorite browser", 
    "info": "Info of a particular package", 
    "init": "Interactively create a bower.json file", 
    "install": "Install a package locally", 
    "link": "Symlink a package folder", 
    "list": "List local packages - and possible updates", 
    "login": "Authenticate with GitHub and store credentials", 
    "lookup": "Look up a package URL by name", 
    "prune": "Removes local extraneous packages", 
    "register": "Register a package", 
    "search": "Search for a package by name", 
    "update": "Update a local package", 
    "uninstall": "Remove a local package", 
    "unregister": "Remove a package from the registry", 
    "version": "Bump a package version" 
    }, 
    "options": [ 
    { 
     "shorthand": "-f", 
     "flag": "--force", 
     "description": "Makes various commands more forceful" 
    }, 
    { 
     "shorthand": "-j", 
     "flag": "--json", 
     "description": "Output consumable JSON" 
    }, 
    { 
     "shorthand": "-l", 
     "flag": "--loglevel", 
     "description": "What level of logs to report" 
    }, 
    { 
     "shorthand": "-o", 
     "flag": "--offline", 
     "description": "Do not hit the network" 
    }, 
    { 
     "shorthand": "-q", 
     "flag": "--quiet", 
     "description": "Only output important information" 
    }, 
    { 
     "shorthand": "-s", 
     "flag": "--silent", 
     "description": "Do not output anything, besides errors" 
    }, 
    { 
     "shorthand": "-V", 
     "flag": "--verbose", 
     "description": "Makes output more verbose" 
    }, 
    { 
     "flag": "--allow-root", 
     "description": "Allows running commands as root" 
    }, 
    { 
     "shorthand": "-v", 
     "flag": "--version", 
     "description": "Output Bower version" 
    }, 
    { 
     "flag": "--no-color", 
     "description": "Disable colors" 
    } 
    ] 
} 

लेकिन परिणाम चाहिए इस https://theenlighteneddeveloper.files.wordpress.com/2013/12/capture-d_c3a9cran-2013-12-08-c3a0-22-32-47.png

प्रत्येक बोवर आदेशों के साथ यही समस्या होती है की तरह दिखता है ।

बोवर संस्करण: 1.7.9 NPM संस्करण: 1.3.10 Ubuntu 14.04

किसी को जानता है मानव के लिए अधिक सुखद प्रारूप के लिए बदलने के लिए कैसे?

अग्रिम धन्यवाद

+0

क्या आपने वैश्विक स्तर पर बॉवर स्थापित किया था? – randominstanceOfLivingThing

+0

हां, बॉवर ने वैश्विक स्तर पर स्थापित किया है। – marianciu

+0

आप -j विकल्प को ट्रिगर कर रहे हैं जो जेसन को थकाता है जिसे उपकरण द्वारा उपभोग किया जा सकता है। – randominstanceOfLivingThing

उत्तर

15

संस्करण 1.7.9 में कुछ बदलाव प्रस्तुत करें।

{ 
    "directory": "bower_components", 
    "json": "bower.json" 
} 

मैं हटा दिया "json":

मेरे .bowerrc तरह लग रहा है "bower.json" लाइन और समस्या हल हो।

संबंधित मुद्दे