Use npm link accelerate debugging

We publish the package to npmthe upper, if you need to modify the local package, we need to change a version re-released. You then need to update this package to test the test. In this case, each time debugging are particularly troublesome. We can use npm linkto speed up the debugging process.

Step 1: Run the project root directorynpm link

npm link

Step 2: Use the root directory of this package project beyond the runningnpm link xxx

npm link + 包的名称

Step 3: When a change to a project, outside the project will be able to get the latest code.

Guess you like

Origin www.cnblogs.com/yinhaiying/p/11331028.html