-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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] hapijs/lab repo fails to install #2005
Comments
While it this issue could be similar to the one in #1998, it appears to be unique since this fails a direct install. Also, if I remove the It is interesting that the result depends on a third-party package.json property, which npm does not officially support. At least according to https://github.com/npm/cli/blob/v7.0.3/docs/content/configuring-npm/package-json.md. |
@kanongil npm definitely officially supports peerDependenciesMeta, it just appears to be missing from the docs. |
The issue here is that, while we do install We do officially support the What's happening here is that we're loading the peer edge ahead of the dev edge, and then skipping it. And since the peer edge is optional, we don't install it. For the root project at least, |
Also, even if it's not a dev dependency, if you explicitly tell it to install a package, it should do that, even if it's an optional peer. So, two bugs :) |
Current Behavior:
npm install fails to install all dependencies, and installing specific dependency fails with npm error.
From log:
Expected Behavior:
Npm installs all dependencies, and
npm install typescript
works.Steps To Reproduce:
Environment:
The text was updated successfully, but these errors were encountered: