npm-safe-install

1.1.0 • Public • Published

Safe npm install

Build Status NPM version Required Node version NPM total downloads Contributors License

npm-safe-install

A cli utility that performs npm install in a safe manner such the locally linked modules are re-linked after installation

Getting Started

These instructions will get your a copy of the project up and running on your local machine.

Prerequisites

node >= 8.4.0

Installing

Install npm-safe-install globally by running the following command:

npm install -g npm-safe-install

Usage

You can run the module by using any of the following command :

  • npm-safe-install
  • nsi

When you run this utility ,it searches for the linked projects and rebuilds any broken links.

Alternatively you can create a .nsi.json in the root directory and list all the submodules in form of an array

// example
[
    "module-1",
    "module-2"
]

The utility will rebuild the links for the submodules specified in this file.

Options

This utility has the following options :

# run nsi in current directory 
nsi
 
# install npm packages 
nsi package-1 package-2
 
# run nsi in target folder 
nsi -t <target folder path>
 
# install npm package in target path 
nsi -t <target folder path> package-1 package-2
 
# check version 
nsi -v
 
# list all options 
nsi -h 

License

This project is licensed under the MIT License - see the LICENSE.md file for details

Readme

Keywords

none

Package Sidebar

Install

npm i npm-safe-install

Weekly Downloads

3,731

Version

1.1.0

License

MIT

Unpacked Size

1.71 MB

Total Files

19

Last publish

Collaborators

  • ud_ud