Comments (7)
I'll take a look at it today and see if we can come up with a solution. Thanks for submitting the issue!
from lnd-explorer.
I am unable to reproduce this problem on a clean system.
I'm using an Odroid-XU4 (same CPU as HC2) with a fresh install of the Ubuntu server image provided by hardkernel + latest updates applied, kernel version 4.14.5-92.
Installed build-essential & git from default apt sources, installed nodejs 8.9.4 from nodesource using install scripts (https://nodejs.org/en/download/package-manager/), cloned lnd-explorer and ran npm install && npm run build && npm start
I verified that [email protected] is installed and working properly and verified that the complied app.css is accessible on the webserver.
Can you provide any other information and/or try running npm rebuild node-sass
?
from lnd-explorer.
I just tried again. With npm rebuild node-sass
I get the error message that "python" or "python2" could not be found in the path. Not sure what packages (apt or npm) to install, or just to set the path correctly...
My config:
Linux kernel 4.14.20-108
Node.js v8.10.0
When trying the build
again:
$ sudo npm run build
> [email protected] build /home/admin/download/lnd-explorer
> npm-run-all build:*
> [email protected] build:app /home/admin/download/lnd-explorer
> NODE_ENV=production browserify src/client/app.jsx --extension=.jsx -o ./dist/app/bundle.js
> [email protected] build:app-compress /home/admin/download/lnd-explorer
> uglifyjs -c -o ./dist/app/bundle.js ./dist/app/bundle.js
> [email protected] build:scss /home/admin/download/lnd-explorer
> node-sass -o dist/css --output-style compressed src/scss/app.scss
/home/admin/download/lnd-explorer/node_modules/node-sass/lib/binding.js:13
throw new Error(errors.unsupportedEnvironment());
^
Error: Node Sass does not yet support your current environment: Linux Unsupported architecture (arm) with Node.js 8.x
For more information on which environments are supported please see:
https://github.com/sass/node-sass/releases/tag/v4.7.2
at module.exports (/home/admin/download/lnd-explorer/node_modules/node-sass/lib/binding.js:13:13)
at Object.<anonymous> (/home/admin/download/lnd-explorer/node_modules/node-sass/lib/index.js:14:35)
at Module._compile (module.js:652:30)
at Object.Module._extensions..js (module.js:663:10)
at Module.load (module.js:565:32)
at tryModuleLoad (module.js:505:12)
at Function.Module._load (module.js:497:3)
at Module.require (module.js:596:17)
at require (internal/module.js:11:18)
at Object.<anonymous> (/home/admin/download/lnd-explorer/node_modules/node-sass/bin/node-sass:10:10)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] build:scss: `node-sass -o dist/css --output-style compressed src/scss/app.scss`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] build:scss script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! /home/admin/.npm/_logs/2018-03-10T14_49_39_752Z-debug.log
ERROR: "build:scss" exited with 1.
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] build: `npm-run-all build:*`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] build script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! /home/admin/.npm/_logs/2018-03-10T14_49_39_815Z-debug.log
Debug log:
cat /home/admin/.npm/_logs/2018-03-10T14_49_39_815Z-debug.log
0 info it worked if it ends with ok
1 verbose cli [ '/usr/bin/node', '/usr/bin/npm', 'run', '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 info lifecycle [email protected]~build: [email protected]
7 verbose lifecycle [email protected]~build: unsafe-perm in lifecycle true
8 verbose lifecycle [email protected]~build: PATH: /usr/lib/node_modules/npm/node_modules/npm-lifecycle/node-gyp-bin:/home/admin/download/lnd-explorer/node_modules/.bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin
9 verbose lifecycle [email protected]~build: CWD: /home/admin/download/lnd-explorer
10 silly lifecycle [email protected]~build: Args: [ '-c', 'npm-run-all build:*' ]
11 silly lifecycle [email protected]~build: Returned: code: 1 signal: null
12 info lifecycle [email protected]~build: Failed to exec build script
13 verbose stack Error: [email protected] build: `npm-run-all build:*`
13 verbose stack Exit status 1
13 verbose stack at EventEmitter.<anonymous> (/usr/lib/node_modules/npm/node_modules/npm-lifecycle/index.js:285:16)
13 verbose stack at emitTwo (events.js:126:13)
13 verbose stack at EventEmitter.emit (events.js:214:7)
13 verbose stack at ChildProcess.<anonymous> (/usr/lib/node_modules/npm/node_modules/npm-lifecycle/lib/spawn.js:55:14)
13 verbose stack at emitTwo (events.js:126:13)
13 verbose stack at ChildProcess.emit (events.js:214:7)
13 verbose stack at maybeClose (internal/child_process.js:925:16)
13 verbose stack at Process.ChildProcess._handle.onexit (internal/child_process.js:209:5)
14 verbose pkgid [email protected]
15 verbose cwd /home/admin/download/lnd-explorer
16 verbose Linux 4.14.20-108
17 verbose argv "/usr/bin/node" "/usr/bin/npm" "run" "build"
18 verbose node v8.10.0
19 verbose npm v5.7.1
20 error code ELIFECYCLE
21 error errno 1
22 error [email protected] build: `npm-run-all build:*`
22 error Exit status 1
23 error Failed at the [email protected] build script.
23 error This is probably not a problem with npm. There is likely additional logging output above.
24 verbose exit [ 1, true ]
from lnd-explorer.
You need to have python in order to build node-sass.
Can you run python --version
and/or which python
and ensure it is installed and that the path is correct? The odroid I'm using for testing has Python 2.7.12 installed.
from lnd-explorer.
Sorry for the lack of any response, I am heavily focused on my Raspberry Pi project at the moment and currently do not have a running Odroid setup. Please bear with me, I will pick this up again. Thanks for your patience!
from lnd-explorer.
For what it's worth, I ran into this problem on an Odriod and was able to get it working by manually making the changes included in this yet merged pull request for the node-sass repo:
https://github.com/sass/node-sass/pull/2253/files
from lnd-explorer.
On a new try, it actually worked on the Raspberry Pi with the following commands:
$ git clone https://github.com/altangent/lnd-explorer
$ cd lnd-explorer
$ npm install
$ npm audit
$ npm audit fix
$ npm run build
$ npm start
from lnd-explorer.
Related Issues (10)
- Add force close channel
- Start with systemd unit
- Pre-built binaries not found for [email protected] and [email protected]
- Scroll bars in node display overwrite text
- How to uninstall lnd-explorer
- Docker build fails on linux x64 machine
- Update to 0.4-beta
- Running behind basic HTTP auth proxy HOT 2
- Unhandled error in GRPC calls HOT 2
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 lnd-explorer.