Currently there are multiple projects, all of which are in /work/project
Each project uses a module: A
According to npm's search order, if the module is not found in the node_modules of the current project, it will search in the node_modules of the parent directory. However, the node_modules of the parent directory clearly contains the module react native, but an error is reported saying that it is not there.
What causes this?
Although I can install this module into node_modules in each project, because this module A will be modified every day, sharing one is the best way. How to achieve this requirement?