Comments (6)
Hi, @brocaar
I create PR to fix build failures.
Please check.
from chirpstack-application-server.
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.
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.
Cheers, I merged your changes!
from chirpstack-application-server.
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.logprebuild: [email protected]
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]
6 silly lifecycle [email protected]prebuild: no script for prebuild, continuingbuild: [email protected]
7 info lifecycle [email protected]
8 verbose lifecycle [email protected]build: unsafe-perm in lifecycle truebuild: 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
9 verbose lifecycle [email protected]
10 verbose lifecycle [email protected]build: CWD: /root/loraserver/src/github.com/brocaar/lora-app-server/uibuild: Args: [ '-c', 'react-scripts build' ]
11 silly lifecycle [email protected]
12 silly lifecycle [email protected]build: Returned: code: 1 signal: nullbuild: Failed to exec build script
13 info lifecycle [email protected]
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.
i fixed this problem with "npm install create-react-class"
from chirpstack-application-server.
Related Issues (20)
- MQTT Integration forces me to use client-certificate? HOT 2
- Postgres connection drop
- AS923-2 shows as EU868 in Application server v3.17.6 HOT 2
- Application server features
- HTML file not found HOT 2
- Improve manual gateway location positioning HOT 1
- Join Request/Accept shown in LoRaWAN Frames but no Join event in Device Data
- Downlink frame-counter (network)* can not +1
- Swagger docs misleading on "id" field
- AMQP Integration doesn't reestablish connection if channel was closed
- Changing service profile of application does not change devices' service profile in network database HOT 3
- Make GlobalSearch accessible also for authorization with API-Keys HOT 3
- Autoclear the Frame counter in ABP mode HOT 2
- enqueue downlink payload error: create device-queue item error: rpc error: code = InvalidArgument desc = device security-context out of sync (code: 13) HOT 1
- Strange data payload after doing unwise restoration HOT 2
- We encountered a problem when sending data using multicast
- How can I integrate HTTP with chirpstack? The link https://www.chirpstack.io/docs/chirpstack/integrations/http.html provides the code, but are there any instructions to use this code in chirpstack? Basically using the HTTP integration feature, I need to retrieve the data sent by the end devices and store it in a file. HOT 1
- OIDC - Email is missing on login
- "Validation errors" when editing existing Javascript CODEC: Chirpstack v4.5.1
- AWS SNS integration could perform some input validation
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 chirpstack-application-server.