Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Use pnpm instead of npm

See original GitHub issue

Is your feature request related to a problem? Please describe. pnpm makes a better use of your drive, is faster than npm and results in more predictable behaviors (you cannot use packages not listed in the dependencies because they are not located in node_modules). I have seen a lot of people in the Vue ecosystem starting to use it and since this template is Vue by default I think it makes sense to switch as well.

Describe the solution you’d like Remove npm lockfile, generate pnpm lockfile and replace all npm instructions with pnpm counterparts (cli is largely the same though)

Additional context Comparison between npm and pnpm version if this template.

git clone npm
cd npm
npm install

results in a 580.8 MB directory

git clone pnpm
cd pnpm
rm package-lock.json
pnpm install

results in a 424.2 kB directory

I know that the space is still used somewhere else, but since those version of required packages can be reused for other node projects the space is utilized in a much better. If you have 2 electron apps based on this template you save 580.1 MB of space (size of node_modules with npm). If you have 3 of them you save 1160.2 MB and so on.

Will make a PR if the author approves.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:7 (2 by maintainers)

github_iconTop GitHub Comments

cawa-93commented, Nov 6, 2022

@seahindeniz My opinion on this does not change: Everyone chooses the package manager he likes. As part of this template, I’m keeping neutral and using the built-in default.

StarLederercommented, Nov 13, 2021

That makes sense. I think it is safe to close the issue.

Read more comments on GitHub >

github_iconTop Results From Across the Web

pnpm vs npm
On the other hand, pnpm manages node_modules by using hard linking and symbolic linking to a global on-disk content-addressable store. This nets you...
Read more >
Why you should prefer using pnpm over npm and yarn? | refine
The speed of package installation with pnpm is significantly better than npm and yarn. If you look at the below benchmark tests, you...
Read more >
Stop Using NPM/Yarn. Use PNPM Instead - Bits and Pieces
Here's a reference to the performance comparison chart provided by the official website, you can see that pnpm's performance is quite good. Although...
Read more >
Why should we use pnpm? - Medium
pnpm is an alternative package manager for Node.js. It is a drop-in replacement for npm, but faster and more efficient. How fast?
Read more >
JavaScript Package Managers: NPM Vs YARN Vs PNPM
PNPM : PNPM is 3 times faster and more efficient than NPM. With both cold and hot cache, PNPM is faster than Yarn....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Post

No results found

github_iconTop Related Hashnode Post

No results found