Comments (7)
Thanks will give that a try!!! Okay, that worked. Such a simple solution!!!
from explorer.
http-server is a npm package that this app relys on as a dependency, so you would want to run this app with just a "npm start" after you do an "npm install" the npm install will install its required dependencies.
You usually would want to start with via a "npm start" just in the main directory.
You could also try a "cd /app" to get into the main directory and then a "node app.js" and let me know what happens for you.
If you are wanting to change ports etc. I would recommend just setting up a reverse NGINX proxy server and setup to run on port 80 and to run the app from 8080.
from explorer.
Yes, I did do an "npm install" and then an "npm start". That is what gave me the error above. I did as you suggested and cd to the app directory. I then did the "node app.js" as you suggested. I got this error:
:\projects\dapps\explorer-master>cd app
c:\projects\dapps\explorer-master\app>node app.js
c:\projects\dapps\explorer-master\app\app.js:13
var WL=window.location;
^
ReferenceError: window is not defined
at Object. (c:\projects\dapps\explorer-master\app\app.js:13:8)
at Module._compile (module.js:571:32)
at Object.Module._extensions..js (module.js:580:10)
at Module.load (module.js:488:32)
at tryModuleLoad (module.js:447:12)
at Function.Module._load (module.js:439:3)
at Module.runMain (module.js:605:10)
at run (bootstrap_node.js:420:7)
at startup (bootstrap_node.js:139:9)
at bootstrap_node.js:535:3
from explorer.
here is the log when doing "npm start":
https://gist.github.com/rfikki/61f0ddf493e818449ce03600b6d2de8a
from explorer.
Try using a different version of nodejs like v6.x, Let me know your log output from that from doing an npm start after downgrading your version.
Make sure your also running an npm install and bower install before doing npm start, if you look in the node_modules folder do you see a list of different modules?
from explorer.
I ran the following command
npm install
It gave me error that not able to find bower. So I ran this
npm install -g bower (this installed bower)
npm install
Then executed following command
npm start
It gave me error that not able to find http-server. So I ran this
npm install -g http-server
npm start
Here is the output - So it worked
Starting up http-server, serving ./app
Available on:
http://localhost:8000
It connected to my private blockchain network. Now able to view all the blocks, accounts and transactions.
Will be exploring it more and if face any issue will share.
# Thanks for your great efforts!
from explorer.
Awesome, I would make sure you do a "bower install" after running npm install and before npm start, you shouldn't have to install http-server globally.
from explorer.
Related Issues (20)
- How can i make this project to a web project
- TypeError: The header content contains invalid characters HOT 2
- Try to connect to geth 1.7.2
- Explorer + Nginx Proxy + Geth Connecting issues. HOT 2
- Unable to connect to geth RPC using LXC HOT 3
- App makes 100+ requests on page load
- Black Dashboard on public IP HOT 1
- Running Public Site Without Exposing RPC HOT 3
- Angular sanitize error HOT 7
- not able to use web3.admin.peers
- https://cdn.fontawesome.com/js/stats.js 404
- home page console erro , can't get chaininfo
- Without MetaMask chrome plugin report "web3 is not defined" HOT 2
- Google browser console "web3 is not defined" HOT 3
- xx
- geth is not running at public address
- Problem at running explorer webapp HOT 1
- Install issue HOT 5
- npm install got so many errors ! HOT 2
- Nothing is displayed
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 explorer.