Coder Social home page Coder Social logo

install-peer's Introduction

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/[email protected] requires a peer of @test/d@^1.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN @test/[email protected] requires a peer of @test/g@^1.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN @test/[email protected] requires a peer of @test/p@^1.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN @test/[email protected] requires a peer of @test/j@^1.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN @test/[email protected] 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 [email protected] for queries on this project

install-peer's People

Contributors

raaghu avatar

Watchers

 avatar

install-peer's Issues

Error trying to install peer deps

/home/em/projects/project/app/node_modules/.bin/install-peer: 1: /home/em/projects/project/app/node_modules/.bin/install-peer: var: not found
/home/em/projects/project/app/node_modules/.bin/install-peer: 2: /home/em/projects/project/app/node_modules/.bin/install-peer: var: not found
/home/em/projects/project/app/node_modules/.bin/install-peer: 3: /home/em/projects/project/app/node_modules/.bin/install-peer: var: not found
/home/em/projects/project/app/node_modules/.bin/install-peer: 4: /home/em/projects/project/app/node_modules/.bin/install-peer: var: not found
/home/em/projects/project/app/node_modules/.bin/install-peer: 5: /home/em/projects/project/app/node_modules/.bin/install-peer: var: not found
/home/em/projects/project/app/node_modules/.bin/install-peer: 6: /home/em/projects/project/app/node_modules/.bin/install-peer: var: not found
/home/em/projects/project/app/node_modules/.bin/install-peer: 7: /home/em/projects/project/app/node_modules/.bin/install-peer: Syntax error: "(" unexpected
error Command failed with exit code 2.

running on linux debian 9, node v14

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.