Node useful tips

1. Most of the node projects have a folder called node-modules, where the node stores the dependent libraries with npm i
2. How to link a dependent node project

First, install Node.js (If you haven't installed) then clone source code and install npm packages.

$ git clone git@bitbucket.org:## project account ##
$ cd project1
$ npm install


In the project directory, make globally-installed symbolic link by command. (create a link available to share to others directory).

$ npm link

In others node folders, if you'd like to use modules in project1

$ npm link project1

No comments:

 Python Basics How to check the version of Python interpreter mac terminal

Popular in last 30 days