-
Notifications
You must be signed in to change notification settings - Fork 3.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG] Deep dependency in workspace missing #4471
Comments
( pardon the branch name 💀 ) |
whoa, this is an interesting one. you're absolutely right, we're totally failing to install that dependency despite it being a requirement of
i find it to be accurate lol |
I am running into the same problem (If i'm understanding the OP correctly).
Ultimately after running
Note that the strnum dependency is not installed in the root node_modules nor in the nested-workspace node_modules directory for package-b. It does appear that the root package-lock.json file is updated correctly; it's just that the module is never installed: // root/package-lock.json
// ...
"packages/package-b/node_modules/fast-xml-parser": {
"version": "4.0.7",
"license": "MIT",
"dependencies": {
"strnum": "^1.0.5"
},
"bin": {
"fxparser": "src/cli/cli.js"
},
"funding": {
"type": "paypal",
"url": "https://paypal.me/naturalintelligence"
}
},
// ... Environmentnpm: 8.7.0 |
I'm struggling with the same now, has this issue gone totally cold? |
Had the same problem recently. Delete package-lock.js + delete node_modules + npm install helped me |
I have the same issue. Node v19.6.0 - NPM 9.4.1 - MacOS 13.2.1 (22D68) |
Same issue here: Now using node v20.3.0 (npm v9.6.7) |
Issue is still present |
This is a dealbreaker for me. NPM is not usable in my project as it just does not install some of the dependencies no matter what I do. Yarn works fine in this situation, so I am switching to Yarn. |
I had this issue with node v20 and npm 10 |
Glad to hear that. Is there some issue or report from NPM stating that this has been resolved? I would much like to switich back to NPM from Yarn, but I need to be sure this is working. We had so many problems with workspaces that my teammates are gonna kill me if it stops working again. |
original issue author.
|
however: deleting |
Is there an existing issue for this?
This issue exists in the latest npm version
Current Behavior
browserify@17.0.0
npm install
, missing at least one deep normal dependency (dep path is all non-dev non-bundled dep)workspace(browserify)
>browserify@17.0.0
>util@0.12.3
> (missing)is-generator-function@^1.0.7
package-lock.json
includes 2 references, showing that it recognizes its a dependencybut does not include any entry for
is-generator-function
Expected Behavior
it should install the full tree of non-dev deep deps
Steps To Reproduce
npm install
from rootnpm ls util
confirm parent deep dep is installed (as expected)npm ls is-generator-function
confirm deep dep is NOT installed (bug!)Environment
The text was updated successfully, but these errors were encountered: