Nice Poodle, Mister

    install-peer
    TypeScript icon, indicating that this package has built-in type declarations

    1.4.0 • Public • Published

    install-peer

    CLI library to install peer dependencies

    Publish

    npm i install-peer

    Overview

    NPM v6 does not install peer dependencies automnatically instead it displays a warning , and asks developer to install the required peer dependencies

    npm WARN @test/a@1.0.0 requires a peer of @test/d@^1.0.0 but none is installed. You must install peer dependencies yourself.
    npm WARN @test/b@1.0.0 requires a peer of @test/g@^1.0.0 but none is installed. You must install peer dependencies yourself.
    npm WARN @test/e@1.0.0 requires a peer of @test/p@^1.0.0 but none is installed. You must install peer dependencies yourself.
    npm WARN @test/c@1.0.0 requires a peer of @test/j@^1.0.0 but none is installed. You must install peer dependencies yourself.
    npm WARN @test/h@1.0.0 requires a peer of @test/y@^1.0.0 but none is installed. You must install peer dependencies yourself.
    

    This CLI Tool parses this message and installs the peer dependencies recursivesly , till all peer dependencies are installed

    Install

    npm i install-peer

    Usage

    through CLI

    npx install-peer [dir]
    

    if dir is omitted installs peer dependencies in current working directory

    through API

    import { installAllPeerDependencies } from "install-peer";
    
    const dir = process.argv[2] || process.cwd();
    
    installAllPeerDependencies(dir)
      .then(() => {
        console.log("Done");
      })
      .catch(err => {
        console.error("Error Occurred");
        console.error(err);
      });

    Support

    This project is a part of Open Source Intitiative from Sodaru Technologies

    Write an email to opensource@sodaru.com for queries on this project

    Install

    npm i install-peer

    DownloadsWeekly Downloads

    79

    Version

    1.4.0

    License

    MIT

    Unpacked Size

    20.3 kB

    Total Files

    8

    Last publish

    Collaborators

    • sodaru-it