-
Notifications
You must be signed in to change notification settings - Fork 3.8k
Closed
Labels
Bugthing that needs fixingthing that needs fixingDocumentationdocumentation related issuedocumentation related issuePriority 2secondary priority issuesecondary priority issueRelease 8.xwork is associated with a specific npm 8 releasework is associated with a specific npm 8 release
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` hereMetadata
Metadata
Assignees
Labels
Bugthing that needs fixingthing that needs fixingDocumentationdocumentation related issuedocumentation related issuePriority 2secondary priority issuesecondary priority issueRelease 8.xwork is associated with a specific npm 8 releasework is associated with a specific npm 8 release