4min chapter

Changelog Master Feed cover image

Making "safe npm" (JS Party #272)

Changelog Master Feed

CHAPTER

How to Deal With MPM's Uninstall Fights

NPM was never really built to be extended. Even with these plugin systems on other package managers, we're having to go and change the hooks. So it's hard to know what hooks you actually need until you write an actual thing to use them. And a lot of the times people are using the hooks for things and they aren't respecting what users have already installed on disk. That's a big thing. We've been talking to a couple of package managers about this. They were surprised that we want to know what's already on disk. This affects your version of MPM because it can't simply say you're uninstalling. You should not ever install anything because that's actually

00:00

Get the Snipd
podcast app

Unlock the knowledge in podcasts with the podcast player of the future.
App store bannerPlay store banner

AI-powered
podcast player

Listen to all your favourite podcasts with AI-powered features

Discover
highlights

Listen to the best highlights from the podcasts you love and dive into the full episode

Save any
moment

Hear something you like? Tap your headphones to save it with AI-generated key takeaways

Share
& Export

Send highlights to Twitter, WhatsApp or export them to Notion, Readwise & more

AI-powered
podcast player

Listen to all your favourite podcasts with AI-powered features

Discover
highlights

Listen to the best highlights from the podcasts you love and dive into the full episode