Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ud-ud/npm-safe-install
A node cli that performs npm install in a safe manner such the locally linked modules are not removed during install
https://github.com/ud-ud/npm-safe-install
javascript npm npm-install
Last synced: about 3 hours ago
JSON representation
A node cli that performs npm install in a safe manner such the locally linked modules are not removed during install
- Host: GitHub
- URL: https://github.com/ud-ud/npm-safe-install
- Owner: UD-UD
- License: mit
- Created: 2018-04-08T06:16:29.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2024-09-06T10:24:19.000Z (4 months ago)
- Last Synced: 2024-12-19T11:13:04.614Z (8 days ago)
- Topics: javascript, npm, npm-install
- Language: JavaScript
- Homepage: https://www.npmjs.com/package/npm-safe-install
- Size: 3.33 MB
- Stars: 21
- Watchers: 2
- Forks: 1
- Open Issues: 21
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[![Build Status](https://travis-ci.org/UD-UD/npm-safe-install.svg?branch=develop)](https://travis-ci.org/UD-UD/npm-safe-install)
[![NPM version](https://img.shields.io/npm/v/npm-safe-install.svg)](https://www.npmjs.com/package/npm-safe-install)
[![Required Node version](https://img.shields.io/node/v/npm-safe-install.svg)](https://www.npmjs.com/package/npm-safe-install)
[![NPM total downloads](https://img.shields.io/npm/dt/npm-safe-install.svg)](https://www.npmjs.com/package/npm-safe-install)
[![Contributors](https://img.shields.io/github/contributors/UD-UD/npm-safe-install.svg)](https://github.com/UD-UD/npm-safe-install/graphs/contributors)
[![License](https://img.shields.io/github/license/UD-UD/npm-safe-install.svg)](https://github.com/UD-UD/npm-safe-install/blob/master/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:
```bash
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
```json
// 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 :```bash
# run nsi in current directory
nsi# install npm packages
nsi package-1 package-2# run nsi in target folder
nsi -t# install npm package in target path
nsi -t 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](LICENSE.md) file for details