question-mark
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.

Pre-flight checklist

  • I have read the contribution documentation for this project.
  • I agree to follow the code of conduct that this project uses.
  • I have searched the issue tracker for a feature request that matches the one I want to file, without success.

Problem description

Using pnpm does not seem to work with electron-forge. An error is thrown when executing pnpx electron-forge import and I do not see any mention of pnpm in the repository and docs.

It would be nice if it worked as pnpm is becoming more and more popular.

Proposed solution

Allow pnpm to work and show working in docs along npm and yarn.

Alternatives considered

npm and yarn

Additional information

No response

Issue Analytics

  • State:open
  • Created 2 years ago
  • Reactions:21
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
MarshallOfSoundcommented, Nov 4, 2022

This isn’t just a case of supporting pnpm with hoist enabled in this repository, several core dependencies do package traversal. The key ones being:

Galactus depends on flora-colossus so if support is added correctly in the former galactus may Just Work™️

Then there’s the stuff in this repository, most of which I believe is tied into the yarn-or-npm helper and routed into various helpers throughout the codebase

1reaction
AlexanderMaccommented, Jul 5, 2022

Try the solution from electron-builder: https://www.electron.build/index.html#note-for-pnpm

My .npmrc file in the project root looks so:

node-linker=hoisted
public-hoist-pattern=*
Read more comments on GitHub >

github_iconTop Results From Across the Web

Fast, disk space efficient package manager | pnpm
pNPM. Fast, disk space efficient package manager ... Supports monorepos. pnpm has built-in support for multiple packages in a repository ...
Read more >
Installation | pnpm
Here is a list of past pnpm versions with respective Node.js version support. Node.js, pnpm 4, pnpm 5, pnpm 6, pnpm 7. Node.js...
Read more >
Tools | pnpm
Nx - Next generation build system with first class monorepo support and powerful integrations. Renovate - Automated dependency updates, for humans; syncpack ...
Read more >
Workspace | pnpm
Workspace. pnpm has built-in support for monorepositories (AKA multi-package repositories, multi-project repositories, or monolithic repositories).
Read more >
pnpm CLI
Run as if pnpm was started in the root of the workspace instead of the current working directory. Commands​. For more information, see...
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 Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found