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.

Error: No such command "pack".

See original GitHub issue

“electron-builder”: “20.0.8”,

–linux snap --x64

Error: No such command "pack".
Error: /project/node_modules/app-builder-bin-linux/x64/app-builder exited with code 1
    at ChildProcess.childProcess.once.code (/project/node_modules/builder-util/src/util.ts:252:14)
    at Object.onceWrapper (events.js:318:30)
    at emitTwo (events.js:125:13)
    at ChildProcess.emit (events.js:213:7)
    at maybeClose (internal/child_process.js:927:16)
    at Process.ChildProcess._handle.onexit (internal/child_process.js:211:5)
From previous event:
    at SnapTarget.build (/project/node_modules/electron-builder-lib/out/targets/snap.js:174:11)
    at taskManager.addTask.default.map.it (/project/node_modules/electron-builder-lib/src/platformPackager.ts:121:67)
From previous event:
    at LinuxPackager.packageInDistributableFormat (/project/node_modules/electron-builder-lib/src/platformPackager.ts:121:23)
    at /project/node_modules/electron-builder-lib/src/platformPackager.ts:116:10
    at Generator.next (<anonymous>)
    at runCallback (timers.js:785:20)
    at tryOnImmediate (timers.js:747:5)
    at processImmediate [as _immediateCallback] (timers.js:718:5)
From previous event:
    at LinuxPackager.pack (/project/node_modules/electron-builder-lib/out/platformPackager.js:188:11)
    at /project/node_modules/electron-builder-lib/src/packager.ts:372:24
    at Generator.next (<anonymous>)
    at xfs.mkdir.er (/project/node_modules/fs-extra/lib/mkdirs/mkdirs.js:37:14)
    at FSReqWrap.oncomplete (fs.js:136:15)
From previous event:
    at Packager.doBuild (/project/node_modules/electron-builder-lib/out/packager.js:441:11)
    at /project/node_modules/electron-builder-lib/src/packager.ts:316:52
From previous event:
    at Packager._build (/project/node_modules/electron-builder-lib/out/packager.js:385:11)
    at /project/node_modules/electron-builder-lib/src/packager.ts:278:23
    at Generator.next (<anonymous>)
    at runCallback (timers.js:785:20)
    at tryOnImmediate (timers.js:747:5)
    at processImmediate [as _immediateCallback] (timers.js:718:5)
From previous event:
    at Packager.build (/project/node_modules/electron-builder-lib/out/packager.js:341:11)
    at /project/node_modules/electron-builder-lib/src/index.ts:50:40
    at Generator.next (<anonymous>)
From previous event:
    at build (/project/node_modules/electron-builder-lib/out/index.js:47:21)
    at build (/project/node_modules/electron-builder/src/builder.ts:228:10)
    at then (/project/node_modules/electron-builder/src/cli/cli.ts:48:33)
    at runCallback (timers.js:785:20)
    at tryOnImmediate (timers.js:747:5)
    at processImmediate [as _immediateCallback] (timers.js:718:5)
From previous event:
    at Object.args [as handler] (/project/node_modules/electron-builder/src/cli/cli.ts:48:33)
    at Object.runCommand (/project/node_modules/yargs/lib/command.js:235:44)
    at Object.parseArgs [as _parseArgs] (/project/node_modules/yargs/yargs.js:1024:28)
    at Object.get [as argv] (/project/node_modules/yargs/yargs.js:957:21)
    at Object.<anonymous> (/project/node_modules/electron-builder/src/cli/cli.ts:42:15)
    at Module._compile (module.js:624:30)
    at Object.Module._extensions..js (module.js:635:10)
    at Module.load (module.js:545:32)
    at tryModuleLoad (module.js:508:12)
    at Function.Module._load (module.js:500:3)
    at Function.Module.runMain (module.js:665:10)
    at startup (bootstrap_node.js:187:16)
    at bootstrap_node.js:608:3

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
vladimirycommented, Feb 23, 2018

If I do PATH=/snap/bin:$PATH explicitly before running electron-builder, then exec: "snapcraft": executable file not found in $PATH error is gone, running with electronuserland/builder image https://github.com/vladimiry/protonmail-desktop-app/blob/60988931b28efc4dfd8474a311b076dc9cb26a7d/.travis.yml#L63 So issue is solved for me.

0reactions
michaldevcommented, Mar 26, 2018

I have the same problem

Read more comments on GitHub >

github_iconTop Results From Across the Web

Error: No such command "home" · Issue #2923 - GitHub
I tried to remove both PlatformIO from VSC and reinstall and also reinstalled VSC, with no luck. The only thing that helped was...
Read more >
Error: No such command "ci" (Platformio 5.0.1 / 5.0.3)
Hi,. I am using Platformio under Linux (Gentoo). Gentoo installs version 5.0.1. and “pip install --user platformio” installs version 5.0.3.
Read more >
Error: No such command "aldex2" - QIIME 2 Forum
I get the following error: Usage: qiime [OPTIONS] COMMAND [ARGS]… Try “qiime --help” for help. Error: No such command “aldex2”. ... Does this...
Read more >
Error: No such command 'flower'. Did you mean one of these ...
end when i am using celery --help, there is no flower command: Commands: amqp AMQP Administration Shell. beat Start the beat periodic task ......
Read more >
Error: No such command "db". : Forums - PythonAnywhere
I am left with the error Error: No such command "db". I tried running the command in a venv ... Recreate it, install...
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