I'm trying to patch one of the web3 packages and use the patched version in my node script. I'm confused about what to use in the npm link program: web3 or web3.js.
Here's what I did:
- Cloned the web3 repo.
- Executed
npm bootstrap(which linked web3 subpackages). - Ran
npm link(which put a link to theweb3.jsfolder into my global modules folder). - Created a project named
web3testand rannpm install web3for it.
Now I don't know how to link my project to the local copy of web3. If I run npm link web3, it puts a web3 folder in the global modules directory, which is not the same as my web3.js repository. But my project is supposed to use web3, not web3.js, so it doesn't make sense to link to web3.js.
I'm on Windows 10.