Skip to content
This repository has been archived by the owner on Aug 17, 2019. It is now read-only.

Why does cipm need a separate tool? #34

Closed
styfle opened this issue Dec 7, 2017 · 2 comments
Closed

Why does cipm need a separate tool? #34

styfle opened this issue Dec 7, 2017 · 2 comments

Comments

@styfle
Copy link

styfle commented Dec 7, 2017

Why does cipm need to be a separate tool?
Couldn't it be a command line flag for the existing npm tool?

@zkat
Copy link
Owner

zkat commented Dec 7, 2017

It's going to be integrated into npm as npm ci. The point of developing it separately is to have external tools that we can experiment with and investigate new ideas with. It was a very successful experiment when we tried it with npx, and so we're taking to doing that. It's also helped because it's forced us to refactor and extract and rewrite some other parts of npm itself into external libraries, which will then make it easier to do other such experiments.

npm is a very old codebase by Node standards: in fact, one of the oldest Node projects in existence, and as such, is a bit harder to work with than a green field project would otherwise be. This is just another way for us to continue modernizing npm itself.

Does that answer your question?

@styfle
Copy link
Author

styfle commented Dec 7, 2017

Yes, thanks for the detailed answer!

Sometimes the division of npm is scary because it's such a fundamental part of the Node ecosystem.
Every major version of npm I wonder what will break.
I cross my fingers when running npm install...so far so good.
And now we have yarn as an alternative so its hard to choose.

I was reading about the whole package-lock.json fiasco where the lock file wasn't really locking dependencies which is how I found a reference to cipm.

I look forward to trying it out, and hopefully never worrying about a bad install again 👍

@zkat zkat closed this as completed Dec 8, 2017
@hoschi hoschi mentioned this issue Nov 6, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants