How To Install Local-npm & Register
Steps on how to install local-npm have been listed below.
i. The first step is to create a folder on C:/local disk(C:).
ii. The next step is to type in the code below on command prompt and press enter
cd/
iii. The step ii would take you to C:/local disk (C:) where you would type the code below and press enter.
cd local-npm
iv. After step iii you type in the code below to install local-npm and then press enter.
npm install-github local-npm
v. The next step after installing local-npm is package.json code which is below then press enter after typing it.
npm init
Example of what to expect in a package.json can be seen below, press enter until the end of the package where you see an option yes .
Package name : (local-npm)
version : (1.0.0)
description :
entry point: (index.js)
test command :
git repository :
key words :
author:
license:(ISC)is it ok? (yes)
vi. The last step is a code below that would set the registry in local npm after typing the code press enter.
npm set registry 'http://127.0.0.1:5080'
If you found this post useful? Kindly tap the 👏 button below and follow :) .