Skip to content
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

Can we do npm-install without transitive dependencies? #1205

Closed
MadhuriGurumurthy11 opened this issue Apr 24, 2020 · 3 comments
Closed

Can we do npm-install without transitive dependencies? #1205

MadhuriGurumurthy11 opened this issue Apr 24, 2020 · 3 comments

Comments

@MadhuriGurumurthy11
Copy link

I have a scenario where I want to download a dependency (dependency is a react app) through npm install without downloading any of its transitive dependencies.

"dependencies": { "my-react-app": "latest" }
and under node_modules I am expecting only my-react-app. Is this possible?

@ljharb
Copy link
Contributor

ljharb commented Apr 24, 2020

Not that I know of, nor does it make any sense to me. If you depend on a thing, why would you want it in a broken state (missing its own deps)?

@MadhuriGurumurthy11
Copy link
Author

MadhuriGurumurthy11 commented Apr 24, 2020

So I took the react-app alone, deployed the app, and it works. So I didn't understand why the transitive dependencies are required. I am beginner in react. But I am assuming react bundles the required dependencies when we build the app.

So there is no way to avoid transitive dependencies?

@ljharb
Copy link
Contributor

ljharb commented Apr 24, 2020

not that i know of.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants