What is the best way to npm link
a local dependency that has the same name as a project in the npm registry, like
https://registry.npmjs.org/react-financial-charts
?
Here is an example:
cd ~/projects/react-financial-charts // Step 1: Navigate to the package directory
npm link // Step 2: Create a global link
cd ~/projects/your-project // Step 3: Move to another package directory
npm link react-financial-charts // Step 4: Link-install the package
I have noticed that step 4 above links to the official repository instead of my local project with the same name.
Is there a solution to this naming conflict? I want step 4 to link to my local repository, not the package in the npm registry with the same name.