I see that support was added for NPM in Kotlin 2.0...
# javascript
e
I see that support was added for NPM in Kotlin 2.0 RC1. Is there any benefit to using that over yarn (my only interaction with yarn is running the update yarn task occasionally when the build tells me to)?
e
Yarn Classic is pretty much dead. Switching to npm allows you to streamline package manager, e.g., if you're working in a monorepo. But the point is this is a starting point. A pluggable system means we could use other package managers in the future.
e
I'm coming from the perspective of not "using" any package manager, i.e. I don't interface with it directly; only opaquely through Kotlin. From that perspective is there any difference? Is it faster, more secure, etc... Something to justify switching to it vs staying with yarn as the default?
o
No need to download yarn No need to use unsupported technology
e
Wouldn't npm also have to be downloaded? Will npm become the default in a future release and I'll have to do the work to migrate at some point anyways?
o
Npm is included in nodejs, which downloaded anyway :) Regarding future plans - I don’t know :)
e
Wouldn't npm also have to be downloaded?
Need to verify but there might be an option to use a global installation. But yes, it's downloaded by default.
Will npm become the default in a future release
Yes
Yarn Classic has many problems. It's deprecated, and it's slower than npm at this point.
e
Ok I'll give it a shot 😄
e
My plan is to move to npm to have a single package manager instead of Yarn & npm. And then at some point it would be cool to have support for pnpm.
👍 1