I have 2 projects(packages) in npm
, I want to inject package_A
as dependency to package_B
. In package_A
root folder, I run npm install -g
, then npm
install it to C:\Users\Myuser\AppData\Roaming\npm\node_moduls\package_A
folder. Now in packages.json
in package_B
I add "package_A": "1.0.0"
in dependencies. When in package_B
root file I run npm install
, its failed package_A@1.0.0 not found
.
How can I identified npm to its my own local package?
Notes:
- We are a team, then I don't want to address
package_A
explicitly. - We are using nexus repository manager.
- I don't want to publish my projects to http://registry.npmjs.org/.