npm run dist throws error
See original GitHub issuewhen 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:
- Created 5 years ago
- Comments:7 (5 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Yeah windows support is coming soon.
On Mon, May 7, 2018, 3:03 PM Mohammed Salman notifications@github.com wrote:
Upgrade node version to v8.11.1 fixes my problem. electron-builder issue#2899