diff --git a/cmd/templates/angular-template/frontend/npm-debug.log b/cmd/templates/angular-template/frontend/npm-debug.log new file mode 100644 index 000000000..64c9f05c5 --- /dev/null +++ b/cmd/templates/angular-template/frontend/npm-debug.log @@ -0,0 +1,46 @@ +0 info it worked if it ends with ok +1 verbose cli [ '/usr/bin/node', '/usr/bin/npm', 'run', 'build' ] +2 info using npm@3.5.2 +3 info using node@v8.10.0 +4 verbose run-script [ 'prebuild', 'build', 'postbuild' ] +5 info lifecycle my-app@0.0.0~prebuild: my-app@0.0.0 +6 silly lifecycle my-app@0.0.0~prebuild: no script for prebuild, continuing +7 info lifecycle my-app@0.0.0~build: my-app@0.0.0 +8 verbose lifecycle my-app@0.0.0~build: unsafe-perm in lifecycle true +9 verbose lifecycle my-app@0.0.0~build: PATH: /usr/share/npm/bin/node-gyp-bin:/home/bh90210/wails-angular/frontend/node_modules/.bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/usr/local/go/bin:/usr/local/go/bin:/home/bh90210/go/bin +10 verbose lifecycle my-app@0.0.0~build: CWD: /home/bh90210/wails-angular/frontend +11 silly lifecycle my-app@0.0.0~build: Args: [ '-c', +11 silly lifecycle 'npx ng build --single-bundle true --output-hashing none --prod --bundle-styles false' ] +12 silly lifecycle my-app@0.0.0~build: Returned: code: 3 signal: null +13 info lifecycle my-app@0.0.0~build: Failed to exec build script +14 verbose stack Error: my-app@0.0.0 build: `npx ng build --single-bundle true --output-hashing none --prod --bundle-styles false` +14 verbose stack Exit status 3 +14 verbose stack at EventEmitter. (/usr/share/npm/lib/utils/lifecycle.js:232:16) +14 verbose stack at emitTwo (events.js:126:13) +14 verbose stack at EventEmitter.emit (events.js:214:7) +14 verbose stack at ChildProcess. (/usr/share/npm/lib/utils/spawn.js:24:14) +14 verbose stack at emitTwo (events.js:126:13) +14 verbose stack at ChildProcess.emit (events.js:214:7) +14 verbose stack at maybeClose (internal/child_process.js:925:16) +14 verbose stack at Process.ChildProcess._handle.onexit (internal/child_process.js:209:5) +15 verbose pkgid my-app@0.0.0 +16 verbose cwd /home/bh90210/wails-angular/frontend +17 error Linux 4.18.0-22-generic +18 error argv "/usr/bin/node" "/usr/bin/npm" "run" "build" +19 error node v8.10.0 +20 error npm v3.5.2 +21 error code ELIFECYCLE +22 error my-app@0.0.0 build: `npx ng build --single-bundle true --output-hashing none --prod --bundle-styles false` +22 error Exit status 3 +23 error Failed at the my-app@0.0.0 build script 'npx ng build --single-bundle true --output-hashing none --prod --bundle-styles false'. +23 error Make sure you have the latest version of node.js and npm installed. +23 error If you do, this is most likely a problem with the my-app package, +23 error not with npm itself. +23 error Tell the author that this fails on your system: +23 error npx ng build --single-bundle true --output-hashing none --prod --bundle-styles false +23 error You can get information on how to open an issue for this project with: +23 error npm bugs my-app +23 error Or if that isn't available, you can get their info via: +23 error npm owner ls my-app +23 error There is likely additional logging output above. +24 verbose exit [ 1, true ] diff --git a/cmd/wails/9_issue.go b/cmd/wails/9_issue.go index 596363c8d..ed7356797 100644 --- a/cmd/wails/9_issue.go +++ b/cmd/wails/9_issue.go @@ -42,12 +42,37 @@ To help you in this process, we will ask for some information, add Go/Wails deta gomodule = "(Not Set)" } + // Get versions for GCC, node & npm + program := cmd.NewProgramHelper() + var gccVersion, nodeVersion, npmVersion string + + gcc := program.FindProgram("gcc") + if gcc != nil { + stdout, _, _, _ := gcc.Run("--version") + gccVersion = stdout + } + + npm := program.FindProgram("npm") + if npm != nil { + stdout, _, _, _ := npm.Run("--version") + nodeVersion = stdout + } + + node := program.FindProgram("node") + if node != nil { + stdout, _, _, _ := node.Run("--version") + npmVersion = stdout + } + str.WriteString("\n| Name | Value |\n| ----- | ----- |\n") str.WriteString(fmt.Sprintf("| Wails Version | %s |\n", cmd.Version)) str.WriteString(fmt.Sprintf("| Go Version | %s |\n", runtime.Version())) str.WriteString(fmt.Sprintf("| Platform | %s |\n", runtime.GOOS)) str.WriteString(fmt.Sprintf("| Arch | %s |\n", runtime.GOARCH)) str.WriteString(fmt.Sprintf("| GO111MODULE | %s |\n", gomodule)) + str.WriteString(fmt.Sprintf("| Gcc | %s |\n", gccVersion)) + str.WriteString(fmt.Sprintf("| Npm | %s |\n", npmVersion)) + str.WriteString(fmt.Sprintf("| Node | %s |\n", nodeVersion)) fmt.Println() fmt.Println("Processing template and preparing for upload.")