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.

npm run dist throws error

See original GitHub issue

when running npm run dist i get an error. this is the complete log:

0 info it worked if it ends with ok
1 verbose cli [ 'C:\\Program Files\\nodejs\\node.exe',
1 verbose cli   'C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js',
1 verbose cli   'run',
1 verbose cli   'dist' ]
2 info using npm@5.6.0
3 info using node@v8.10.0
4 verbose run-script [ 'predist', 'dist', 'postdist' ]
5 info lifecycle anapp@0.0.1~predist: anapp@0.0.1
6 info lifecycle anapp@0.0.1~dist: anapp@0.0.1
7 verbose lifecycle anapp@0.0.1~dist: unsafe-perm in lifecycle true
8 verbose lifecycle anapp@0.0.1~dist: PATH: C:\Program Files\nodejs\node_modules\npm\node_modules\npm-lifecycle\node-gyp-bin;C:\Users\msal4\OneDrive\Desktop\anapp\node_modules\.bin;C:\Program Files (x86)\Python37-32\Scripts\;C:\Program Files (x86)\Python37-32\;C:\ProgramData\Oracle\Java\javapath;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files\nodejs\;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\Program Files\Microsoft SQL Server\130\Tools\Binn\;C:\Program Files\dotnet\;C:\Users\msal4\AppData\Local\atom\bin;C:\ProgramData\chocolatey\bin;C:\Program Files\Dart\dart-sdk\bin;C:\Users\msal4\AppData\Local\Android\Sdk\platform-tools;C:\Program Files (x86)\Windows Kits\8.1\Windows Performance Toolkit\;C:\Users\msal4\AppData\Local\Microsoft\WindowsApps;C:\Users\msal4\AppData\Roaming\npm;C:\Program Files\Microsoft VS Code\bin;C:\Users\msal4\AppData\Local\GitHubDesktop\bin
9 verbose lifecycle anapp@0.0.1~dist: CWD: C:\Users\msal4\OneDrive\Desktop\anapp
10 silly lifecycle anapp@0.0.1~dist: Args: [ '/d /s /c', 'electron-builder' ]
11 silly lifecycle anapp@0.0.1~dist: Returned: code: 1  signal: null
12 info lifecycle anapp@0.0.1~dist: Failed to exec dist script
13 verbose stack Error: anapp@0.0.1 dist: `electron-builder`
13 verbose stack Exit status 1
13 verbose stack     at EventEmitter.<anonymous> (C:\Program Files\nodejs\node_modules\npm\node_modules\npm-lifecycle\index.js:285:16)
13 verbose stack     at emitTwo (events.js:126:13)
13 verbose stack     at EventEmitter.emit (events.js:214:7)
13 verbose stack     at ChildProcess.<anonymous> (C:\Program Files\nodejs\node_modules\npm\node_modules\npm-lifecycle\lib\spawn.js:55:14)
13 verbose stack     at emitTwo (events.js:126:13)
13 verbose stack     at ChildProcess.emit (events.js:214:7)
13 verbose stack     at maybeClose (internal/child_process.js:925:16)
13 verbose stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:209:5)
14 verbose pkgid anapp@0.0.1
15 verbose cwd C:\Users\msal4\OneDrive\Desktop\anapp
16 verbose Windows_NT 10.0.15063
17 verbose argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "run" "dist"
18 verbose node v8.10.0
19 verbose npm  v5.6.0
20 error code ELIFECYCLE
21 error errno 1
22 error anapp@0.0.1 dist: `electron-builder`
22 error Exit status 1
23 error Failed at the anapp@0.0.1 dist script.
23 error This is probably not a problem with npm. There is likely additional logging output above.
24 verbose exit [ 1, true ]

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
kusti8commented, May 7, 2018

Yeah windows support is coming soon.

On Mon, May 7, 2018, 3:03 PM Mohammed Salman notifications@github.com wrote:

I installed it but it looks like the windows platform is not supported

0 info it worked if it ends with ok1 verbose cli [ ‘C:\Program Files\nodejs\node.exe’,1 verbose cli ‘C:\Program Files\nodejs\node_modules\npm\bin\npm-cli.js’,1 verbose cli ‘run’,1 verbose cli ‘dist’ ]2 info using npm@5.6.03 info using node@v8.10.04 verbose run-script [ ‘predist’, ‘dist’, ‘postdist’ ]5 info lifecycle anapp@0.0.1~predist: anapp@0.0.16 info lifecycle anapp@0.0.1~dist: anapp@0.0.17 verbose lifecycle anapp@0.0.1~dist: unsafe-perm in lifecycle true8 verbose lifecycle anapp@0.0.1~dist: PATH: C:\Program Files\nodejs\node_modules\npm\node_modules\npm-lifecycle\node-gyp-bin;C:\Users\msal4\OneDrive\Desktop\anapp\node_modules.bin;C:\Program Files (x86)\Python37-32\Scripts;C:\Program Files (x86)\Python37-32;C:\ProgramData\Oracle\Java\javapath;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0;C:\Program Files\nodejs;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\Program Files\Microsoft SQL Server\130\Tools\Binn;C:\Program Files\dotnet;C:\Users\msal4\AppData\Local\atom\bin;C:\ProgramData\chocolatey\bin;C:\Program Files\Dart\dart-sdk\bin;C:\Users\msal4\AppData\Local\Android\Sdk\platform-tools;C:\Program Files (x86)\Windows Kits\8.1\Windows Performance Toolkit;C:\Users\msal4\AppData\Local\Microsoft\WindowsApps;C:\Users\msal4\AppData\Roaming\npm;C:\Program Files\Microsoft VS Code\bin;C:\Users\msal4\AppData\Local\GitHubDesktop\bin9 verbose lifecycle anapp@0.0.1~dist: CWD: C:\Users\msal4\OneDrive\Desktop\anapp10 silly lifecycle anapp@0.0.1~dist: Args: [ ‘/d /s /c’, ‘electron-builder’ ]11 silly lifecycle anapp@0.0.1~dist: Returned: code: 1 signal: null12 info lifecycle anapp@0.0.1~dist: Failed to exec dist script13 verbose stack Error: anapp@0.0.1 dist: electron-builder13 verbose stack Exit status 113 verbose stack at EventEmitter.<anonymous> (C:\Program Files\nodejs\node_modules\npm\node_modules\npm-lifecycle\index.js:285:16)13 verbose stack at emitTwo (events.js:126:13)13 verbose stack at EventEmitter.emit (events.js:214:7)13 verbose stack at ChildProcess.<anonymous> (C:\Program Files\nodejs\node_modules\npm\node_modules\npm-lifecycle\lib\spawn.js:55:14)13 verbose stack at emitTwo (events.js:126:13)13 verbose stack at ChildProcess.emit (events.js:214:7)13 verbose stack at maybeClose (internal/child_process.js:925:16)13 verbose stack at Process.ChildProcess._handle.onexit (internal/child_process.js:209:5)14 verbose pkgid anapp@0.0.115 verbose cwd C:\Users\msal4\OneDrive\Desktop\anapp16 verbose Windows_NT 10.0.1506317 verbose argv “C:\Program Files\nodejs\node.exe” “C:\Program Files\nodejs\node_modules\npm\bin\npm-cli.js” “run” "dist"18 verbose node v8.10.019 verbose npm v5.6.020 error code ELIFECYCLE21 error errno 122 error anapp@0.0.1 dist: electron-builder22 error Exit status 123 error Failed at the anapp@0.0.1 dist script.23 error This is probably not a problem with npm. There is likely additional logging output above.24 verbose exit [ 1, true ]

— You are receiving this because you commented.

Reply to this email directly, view it on GitHub https://github.com/kusti8/proton-native/issues/115#issuecomment-387169270, or mute the thread https://github.com/notifications/unsubscribe-auth/AJW73Ha4LBswNsGNaLWNwOUU10Oyw9DHks5twJqVgaJpZM4T1adL .

0reactions
IceMimosacommented, May 11, 2018

Upgrade node version to v8.11.1 fixes my problem. electron-builder issue#2899

Read more comments on GitHub >

github_iconTop Results From Across the Web

I am getting an error while running command "npm run build ...
I am getting an error while running command "npm run build" and the js file in dist folder is not getting created.
Read more >
npm run build is throwing error · Discussion #726 - GitHub
npm ->7.21.0 tsc->4.5.0 (type script). when I am running npm run build, I am getting following issue. @fingerprintjs/fingerprintjs@3.3.2 build. rimraf dist ...
Read more >
Common errors | npm Docs
You are trying to install on a drive that either has no space, or has no permission to write. Free some disk space...
Read more >
cannot find module [Node npm Error Solved] - freeCodeCamp
To fix the error, you need to install the package that is absent in your project directory – npm install package-name or yarn...
Read more >
npm ERR! Missing script: "build" [Solved] | bobbyhadz
Missing script: build error, make sure to add a `build` command to the `scripts` object ... or run the command with its specified...
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