Socket
Socket
Sign inDemoInstall

npm-safe-install

Package Overview
Dependencies
4
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

npm-safe-install


Version published
Maintainers
1
Created

Readme

Source

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

FAQs

Last updated on 03 Mar 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc