Code Monkey home page Code Monkey logo

Comments (5)

puengel avatar puengel commented on September 24, 2024

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.

bratekai avatar bratekai commented on September 24, 2024

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.

bratekai avatar bratekai commented on September 24, 2024

I did tried to follow

cd gotron
npm install
npm run build
go run .

it crashes on:

npm run build

from gotron.

puengel avatar puengel commented on September 24, 2024

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.

bratekai avatar bratekai commented on September 24, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.