Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

how do you build this package? #18

Open
silverhikari opened this issue Jan 14, 2023 · 2 comments
Open

how do you build this package? #18

silverhikari opened this issue Jan 14, 2023 · 2 comments

Comments

@silverhikari
Copy link

i am trying to build from the git as i noticed the releases are quite old. after cloning i used pnpm install as i noticed the pnpm lock file. but after installing using pnpm install when i try to build the package either with pnpm package or make i get this error from electron-forge.

> [email protected] package /home/silver/game/debugtron
> electron-forge package
✖ Checking your system
An unhandled error has occurred inside Forge:
Command failed with a non-zero return code (1):
yarn --version
Usage Error: This project is configured to use pnpm

$ yarn ...
Error: Command failed with a non-zero return code (1):
yarn --version
Usage Error: This project is configured to use pnpm

$ yarn ...
    at ChildProcess.<anonymous> (/home/silver/game/debugtron/node_modules/.pnpm/@[email protected]/node_modules/@malept/cross-spawn-promise/dist/src/index.js:101:24)
    at ChildProcess.emit (node:events:527:28)
    at maybeClose (node:internal/child_process:1090:16)
    at ChildProcess._handle.onexit (node:internal/child_process:302:5)
 ELIFECYCLE  Command failed with exit code 1.

so i am wondering do i have to install with yarn first then run pnpm or am i missing something?

@hostar
Copy link

hostar commented Apr 27, 2023

All I had to do was to run "npm install" and "npm run start", no additional installation required.

@petrsiegl
Copy link

The problem you have encountered is caused by this line in package.json:

  },
  "packageManager": "[email protected]"
}

You can safely remove it. It's experimental field and defines what package manager is expected to be used.
Unfortunately it seems electron-forge is checking yarn version and this line causes error.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants