Comments (5)
Hello @bratekai ,
Seems like there is a bad call
[email protected] postbuild:js /mnt/data/Downloads/opt/opt/golang/src/go_electron
cpy ui/js/build/. app/assets/ && move-cli app/assets/bundle.js app/assets/js/index.js && echo "Build Ui {ui/js}, cp bundle.js to app/assets/js/index.js"
should be like this. (note the *.*
)
[email protected] postbuild:js /home/dani/go/src/gotron
> cpy ui/js/build/*.* app/assets/ && move-cli app/assets/bundle.js app/assets/js/index.js && echo "Build Ui {ui/js}, cp bundle.js to app/assets/js/index.js"
Also can you please check if you followed these installation steps:
cd gotron
npm install
npm run build
go run .
instead of these:
cd gotron
npm run install
npm run build
go run .
Hope that helps.
Cheers
from gotron.
It did not :(.
my bad, I previously inserted build output without quotes. That is why . went missing. The listing is OK at the moment; exactly as I see it on my screen.
it crashes on postbuild:js. I would be grateful for solution :)
$ npm run build
> [email protected] build /mnt/data/Downloads/opt/opt/golang/src/go_electron
> npm run build:js
> [email protected] build:js /mnt/data/Downloads/opt/opt/golang/src/go_electron
> cd ui/js && npm run build
> [email protected] build /mnt/data/Downloads/opt/opt/golang/src/go_electron/ui/js
> webpack
Hash: 4b93db3183f37013989f
Version: webpack 2.7.0
Time: 676ms
Asset Size Chunks Chunk Names
7b5fb88f12bec8143f00e21bc3222124.ttf 162 kB [emitted]
bundle.js 74.5 kB 0 [emitted] main
[0] ./src/app.js 356 bytes {0} [built]
[1] ./~/base64-js/index.js 3.94 kB {0} [built]
[2] ./~/buffer/index.js 48.6 kB {0} [built]
[3] ./~/css-loader!./src/style.css 539 bytes {0} [built]
[4] ./~/css-loader/lib/css-base.js 2.19 kB {0} [built]
[5] ./~/ieee754/index.js 2.06 kB {0} [built]
[6] ./~/isarray/index.js 132 bytes {0} [built]
[7] ./~/style-loader/addStyles.js 8.51 kB {0} [built]
[8] ./~/style-loader/fixUrls.js 3.01 kB {0} [built]
[9] ./src/style.css 899 bytes {0} [built]
[10] ./src/Roboto-Light.ttf 82 bytes {0} [built]
[11] (webpack)/buildin/global.js 509 bytes {0} [built]
[12] multi ./src/app.js 28 bytes {0} [built]
> [email protected] postbuild:js /mnt/data/Downloads/opt/opt/golang/src/go_electron
> cpy ui/js/build/*.* app/assets/ && move-cli app/assets/bundle.js app/assets/js/index.js && echo "Build Ui {ui/js}, cp bundle.js to app/assets/js/index.js"
/usr/bin/env: ‘node\r’: No such file or directory
npm ERR! Linux 4.15.0-39-generic
npm ERR! argv "/usr/bin/node" "/usr/bin/npm" "run" "build:js"
npm ERR! node v8.10.0
npm ERR! npm v3.5.2
npm ERR! file sh
npm ERR! code ELIFECYCLE
npm ERR! errno ENOENT
npm ERR! syscall spawn
npm ERR! [email protected] postbuild:js: `cpy ui/js/build/*.* app/assets/ && move-cli app/assets/bundle.js app/assets/js/index.js && echo "Build Ui {ui/js}, cp bundle.js to app/assets/js/index.js" `
npm ERR! spawn ENOENT
npm ERR!
npm ERR! Failed at the [email protected] postbuild:js script 'cpy ui/js/build/*.* app/assets/ && move-cli app/assets/bundle.js app/assets/js/index.js && echo "Build Ui {ui/js}, cp bundle.js to app/assets/js/index.js" '.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the gotron package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! cpy ui/js/build/*.* app/assets/ && move-cli app/assets/bundle.js app/assets/js/index.js && echo "Build Ui {ui/js}, cp bundle.js to app/assets/js/index.js"
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs gotron
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls gotron
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request:
npm ERR! /mnt/data/Downloads/opt/opt/golang/src/go_electron/npm-debug.log
npm ERR! Linux 4.15.0-39-generic
npm ERR! argv "/usr/bin/node" "/usr/bin/npm" "run" "build"
npm ERR! node v8.10.0
npm ERR! npm v3.5.2
npm ERR! code ELIFECYCLE
npm ERR! [email protected] build: `npm run build:js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] build script 'npm run build:js'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the gotron package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! npm run build:js
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs gotron
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls gotron
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request:
npm ERR! /mnt/data/Downloads/opt/opt/golang/src/go_electron/npm-debug.log
from gotron.
I did tried to follow
cd gotron
npm install
npm run build
go run .
it crashes on:
npm run build
from gotron.
I noticed you are using
node v8.10.0
npm v3.5.2
Can you please try updating your node and npm version? I am using
node v10.10.0 (you can also go for a later version)
npm v6.4.1 (latest)
from gotron.
hmm... I prefer to stick with LTS, at least for the moment.
Anyway I made it go away
$sudo apt-get install dos2unix
$cd gotron
$find . -exec dos2unix {} \;
It builds now :)
from gotron.
Related Issues (20)
- copy.Perm undefined HOT 1
- Using gotron-builder failed HOT 5
- gotron-builder failed with --win, on mac HOT 4
- gotron-builder fails on windows HOT 1
- gotron-builder fails on windows HOT 9
- Notes for install with godep HOT 3
- Changing application icon HOT 7
- Gotron-builder does not create a self-contained application HOT 2
- hang up on Ubuntu 19.04 HOT 2
- Refactor window.On to accept String as Event
- Apps using Gotron
- file actions (e.g., drag and drop)
- Typescript-vue example
- fork/exec node_modules/.bin/electron-builder: no such file or directory: HOT 1
- Is this project still maintained? HOT 2
- Cannot find .gotron/node_modules/.bin/electron on first run HOT 1
- chmod .gotron/assets: operation not permitted HOT 2
- Can send values to backend? HOT 1
- Arch: 'error while loading shared libraries: libgconf-2.so.4'
- Is this project still going on HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gotron.