[BUG] Dependencies installed with a git URL commit does not contain the folders of the package #5130
Closed
2 tasks done
Labels
Bug
thing that needs fixing
Needs Triage
needs review for next steps
Release 8.x
work is associated with a specific npm 8 release
Is there an existing issue for this?
This issue exists in the latest npm version
Current Behavior
This has already been reported a while ago: npm/npm#15654
When installing a dependency from a git commit, the folders aren't downloaded.
Expected Behavior
node_modules/my_dependency
should contain not only package.json but also the src foldersSteps To Reproduce
This started because
react-block-ui
package isn't maintained anymore and is stuck with React 16. I wrote a merge request Availity/react-block-ui#65 to say it also works with React 17. But waiting for it to be integrated, I wanted to use my own version of react-block-ui with my patch, available at Flaburgan/react-block-ui@0feb0f1Here is my
package.json
file:And same change in
package-lock.json
.When I run
npm install
and then navigate tonode_modules/react-block-ui
, I have the files (CHANGELOG, LICENCE, package.json (which contains my patch) and README) but I miss some other files, and especially I don't have the folders (src and scripts), so obviously nothing is working.Environment
The text was updated successfully, but these errors were encountered: