Giter VIP home page Giter VIP logo

Comments (6)

tamagohan avatar tamagohan commented on June 18, 2024 1

Hi, @brocaar
I create PR to fix build failures.
Please check.

from chirpstack-application-server.

brocaar avatar brocaar commented on June 18, 2024

Thanks for reporting! Would you be able to do some testing with https://github.com/creationix/nvm and installing the latest NodeJS version?

from chirpstack-application-server.

tamagohan avatar tamagohan commented on June 18, 2024

Thank you for reply, @brocaar

I add some commands to Dockerfile to use nvm.

RUN apt-get update
RUN apt-get -y install build-essential libssl-dev
RUN curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.1/install.sh | bash
ENV NVM_DIR "/root/.nvm"
RUN /bin/bash -c "source $NVM_DIR/nvm.sh; nvm install node; nvm use node"

RUN apt-get -y install ruby-dev ruby
RUN gem install fpm

(I added commands to install ruby, because make package-deb command required fpm gem)

In an environment where node was installed by nvm, make ui statics command succeeded!
(Installed node version is v7.7.3)

Thank you!

from chirpstack-application-server.

brocaar avatar brocaar commented on June 18, 2024

Cheers, I merged your changes!

from chirpstack-application-server.

dreamerzjy avatar dreamerzjy commented on June 18, 2024

Hi,i got error like this:
Building ui

[email protected] build /root/loraserver/src/github.com/brocaar/lora-app-server/ui
react-scripts build

Creating an optimized production build...
Failed to compile.

Module not found: Error: Cannot resolve module 'create-react-class' in /root/loraserver/src/github.com/brocaar/lora-app-server/ui/node_modules/react-input-autosize/lib

npm ERR! Linux 3.16.0-30-generic
npm ERR! argv "/root/.nvm/versions/node/v7.7.3/bin/node" "/root/.nvm/versions/node/v7.7.3/bin/npm" "run" "build"
npm ERR! node v7.7.3
npm ERR! npm v4.1.2
npm ERR! code ELIFECYCLE
npm ERR! [email protected] build: react-scripts build
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] build script 'react-scripts build'.
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 ui package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! react-scripts build
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs ui
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls ui
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR! /root/loraserver/src/github.com/brocaar/lora-app-server/ui/npm-debug.log
make: *** [ui/build] Error 1

the log is:
root@loraserver:/loraserver/src/github.com/brocaar/lora-app-server# cat /root/loraserver/src/github.com/brocaar/lora-app-server/ui/npm-debug.log
0 info it worked if it ends with ok
1 verbose cli [ '/root/.nvm/versions/node/v7.7.3/bin/node',
1 verbose cli '/root/.nvm/versions/node/v7.7.3/bin/npm',
1 verbose cli 'run',
1 verbose cli 'build' ]
2 info using [email protected]
3 info using [email protected]
4 verbose run-script [ 'prebuild', 'build', 'postbuild' ]
5 info lifecycle [email protected]
prebuild: [email protected]
6 silly lifecycle [email protected]prebuild: no script for prebuild, continuing
7 info lifecycle [email protected]
build: [email protected]
8 verbose lifecycle [email protected]build: unsafe-perm in lifecycle true
9 verbose lifecycle [email protected]
build: PATH: /root/.nvm/versions/node/v7.7.3/lib/node_modules/npm/bin/node-gyp-bin:/root/loraserver/src/github.com/brocaar/lora-app-server/ui/node_modules/.bin:/root/.nvm/versions/node/v7.7.3/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/usr/local/go/bin:/root/loraserver/bin:/usr/local/liteide/bin:/usr/local/go/bin:/root/loraserver/bin:/usr/local/liteide/bin
10 verbose lifecycle [email protected]build: CWD: /root/loraserver/src/github.com/brocaar/lora-app-server/ui
11 silly lifecycle [email protected]
build: Args: [ '-c', 'react-scripts build' ]
12 silly lifecycle [email protected]build: Returned: code: 1 signal: null
13 info lifecycle [email protected]
build: Failed to exec build script
14 verbose stack Error: [email protected] build: react-scripts build
14 verbose stack Exit status 1
14 verbose stack at EventEmitter. (/root/.nvm/versions/node/v7.7.3/lib/node_modules/npm/lib/utils/lifecycle.js:279:16)
14 verbose stack at emitTwo (events.js:106:13)
14 verbose stack at EventEmitter.emit (events.js:194:7)
14 verbose stack at ChildProcess. (/root/.nvm/versions/node/v7.7.3/lib/node_modules/npm/lib/utils/spawn.js:40:14)
14 verbose stack at emitTwo (events.js:106:13)
14 verbose stack at ChildProcess.emit (events.js:194:7)
14 verbose stack at maybeClose (internal/child_process.js:899:16)
14 verbose stack at Process.ChildProcess._handle.onexit (internal/child_process.js:226:5)
15 verbose pkgid [email protected]
16 verbose cwd /root/loraserver/src/github.com/brocaar/lora-app-server/ui
17 error Linux 3.16.0-30-generic
18 error argv "/root/.nvm/versions/node/v7.7.3/bin/node" "/root/.nvm/versions/node/v7.7.3/bin/npm" "run" "build"
19 error node v7.7.3
20 error npm v4.1.2
21 error code ELIFECYCLE
22 error [email protected] build: react-scripts build
22 error Exit status 1
23 error Failed at the [email protected] build script 'react-scripts build'.
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 ui package,
23 error not with npm itself.
23 error Tell the author that this fails on your system:
23 error react-scripts build
23 error You can get information on how to open an issue for this project with:
23 error npm bugs ui
23 error Or if that isn't available, you can get their info via:
23 error npm owner ls ui
23 error There is likely additional logging output above.
24 verbose exit [ 1, true ]

from chirpstack-application-server.

dreamerzjy avatar dreamerzjy commented on June 18, 2024

i fixed this problem with "npm install create-react-class"

from chirpstack-application-server.

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.