Closed
Description
Is there an existing issue for this?
- I have searched the existing issues
This issue exists in the latest npm version
- I am using the latest npm
Current Behavior
npm install ../relative-path-to-my-module
doesn't resolve the dependencies of the installed module
this happens only when path goes to the directory level up like "my-module-a:file:../my-module-a"
or if the path is absolute.
Expected Behavior
the dependencies should be installed in current module
should behave the same way as yarn install
command
Steps To Reproduce
- checkout example
git clone https://github.com/spamshaker/npm-bug
- cd npm-but/my-module-b
npm install
- See react dependency is not installed in
my-module-b
react dependency should be resolved and installed inmy-module-b
Environment
- npm: 8.3.0
- Node: 16.13.0
- OS: Windows 11
- platform:
- npm config:
; copy and paste output from `npm config ls` here