I've been enjoying pnpm as my node package manager for about a year now. " rel="nofollow">https://github.com/pnpm/pnpm> It centrally downloads all of the modules and then "symlinks" them into your `node_modules` folder. This is nice because one, it uses less disk space, two, if you've already downloaded a package at a particular version it links it out of the local repo. Also uses shrinkwrap to handle package locking…
To Yarn and Back to Npm Again
21–30 of 54 posts
Re: To Yarn and Back to Npm Again
#22I've been enjoying pnpm as my node package manager for about a year now. " rel="nofollow">https://github.com/pnpm/pnpm> It centrally downloads all of the modules and then "symlinks" them into your `node_modules` folder. This is nice because one, it uses less disk space, two, if you've already downloaded a package at a particular version it links it out of the local repo. Also uses shrinkwrap to handle package locking…
- [1] https://github.com/pnpm/pnpm
- [2] https://intoli.com/blog/node-package-manager-benchmarks/
Re: To Yarn and Back to Npm Again
#23I wonder if they ever tried `yarn --pure-lockfile` to avoid updating the lockfile unnecessarily? > We never observed install inconsistencies when using npm previously Interesting, since NPM has had issues being deterministic since package-lock came to be, and this was one of the main reasons yarn was created. The fact that yarn has a healthy community, actually accepts contributions, and encourages public discussion…
NPM error: ~probably not our fault, there might be additional output above
Yarn error: ~an error has occured, here's what you'd do if you think it is a bug
NPM is probably correct most of the time but the difference in attitude felt striking to me.
Re: To Yarn and Back to Npm Again
#24We're using a boilerplate project from a year ago with Yarn/React and it's still behaving the same way. Of course we have some deprecation warnings, but is it really so bad to have this "If it's not broke, don't fix it" mentality?
That doesn't gain you as many stars on GitHub, conference talks, TechCrunch articles and HN threads.
Re: To Yarn and Back to Npm Again
#25> Yarn often produces yarn.lock files that are invalid when you run add, remove, or update. This has never happened to us with heavy daily usage. It's one of the things that remains reliable about Yarn. Would appreciate more details on what exactly happened.
Here's an issue I've experienced with using upgrade: https://github.com/yarnpkg/yarn/issues/5749
Sounds like what I'd expect from running yarn clean...
(If anyone isn't aware: that command doesn't clean target folders but rather goes crazy inside node_modules.)
Re: To Yarn and Back to Npm Again
#26Earlier quoted context omitted.
Our experience has been yarn is fast and reliable.
Hmm, `yarn add` reliably takes a few years in my environment (WSL). Maybe the environment is the problem, though.
Re: To Yarn and Back to Npm Again
#27Re: To Yarn and Back to Npm Again
#28I've been enjoying pnpm as my node package manager for about a year now. " rel="nofollow">https://github.com/pnpm/pnpm> It centrally downloads all of the modules and then "symlinks" them into your `node_modules` folder. This is nice because one, it uses less disk space, two, if you've already downloaded a package at a particular version it links it out of the local repo. Also uses shrinkwrap to handle package locking…
Re: To Yarn and Back to Npm Again
#29I've been enjoying pnpm as my node package manager for about a year now. " rel="nofollow">https://github.com/pnpm/pnpm> It centrally downloads all of the modules and then "symlinks" them into your `node_modules` folder. This is nice because one, it uses less disk space, two, if you've already downloaded a package at a particular version it links it out of the local repo. Also uses shrinkwrap to handle package locking…
Yes, pnpm is awesome. Only occasional issue was for me, that it didn't installed peerDependencies by default. Also not sure if it's gonna work in environments like react-native (never tested).
Re: To Yarn and Back to Npm Again
#30I've been enjoying pnpm as my node package manager for about a year now. " rel="nofollow">https://github.com/pnpm/pnpm> It centrally downloads all of the modules and then "symlinks" them into your `node_modules` folder. This is nice because one, it uses less disk space, two, if you've already downloaded a package at a particular version it links it out of the local repo. Also uses shrinkwrap to handle package locking…
Saved me over 6GB on my file system across several projects. Big thumbs up from me.