A cli utility that performs npm install in a safe manner such the locally linked modules are re-linked after installation
These instructions will get your a copy of the project up and running on your local machine.
node >= 8.4.0
Install npm-safe-install
globally by running the following command:
npm install -g npm-safe-install
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.
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
This project is licensed under the MIT License - see the LICENSE.md file for details