We publish the package to
npm
the 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 usenpm link
to 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.