Closed
Description
Is there an existing issue for this?
- I have searched the existing issues
Current Behavior
If a package is being referenced using a local path designated in the package.json file, any peer dependencies of the referenced package will not be downloaded and installed. The local package must first be packed for it to download the packages.
Expected Behavior
The behavior of a package needing to be packed before peer dependencies are installed should be in the documentation in this section or npm should be modified to install peer dependencies from packages using local paths.
Steps To Reproduce
- Using npm 7 and an angular package with a peer dependency
- Run ng build
- In another app, reference the above package using a local path in the local dist directory
- Build the app using ng build
- You should notice the peer dependency can't be resolved
Environment
- OS: Windows 10, build 1909
- Node: 16.9.0
- npm: 7.19.1