Git Product home page Git Product logo

Comments (7)

rfikki avatar rfikki commented on May 18, 2024 1

Thanks will give that a try!!! Okay, that worked. Such a simple solution!!!

from explorer.

metaspartan avatar metaspartan commented on May 18, 2024

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.

rfikki avatar rfikki commented on May 18, 2024

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.

rfikki avatar rfikki commented on May 18, 2024

here is the log when doing "npm start":
https://gist.github.com/rfikki/61f0ddf493e818449ce03600b6d2de8a

from explorer.

metaspartan avatar metaspartan commented on May 18, 2024

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.

susmit-git avatar susmit-git commented on May 18, 2024

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.

metaspartan avatar metaspartan commented on May 18, 2024

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)

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.