-
Notifications
You must be signed in to change notification settings - Fork 330
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error on Windows: http-server #5
Comments
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. |
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 ReferenceError: window is not defined |
here is the log when doing "npm start": |
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? |
I ran the following command It gave me error that not able to find bower. So I ran this Then executed following command It gave me error that not able to find http-server. So I ran this Here is the output - So it worked 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! |
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. |
Thanks will give that a try!!! Okay, that worked. Such a simple solution!!! |
npm ERR! node v7.4.0
npm ERR! npm v4.2.0
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! EthereumExplorerV2@0.1.0 start:
http-server ./app -a localhost -p 8000 -c-1
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the EthereumExplorerV2@0.1.0 start script 'http-server ./app -a localhost -p 8000 -c-1'.
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 EthereumExplorerV2 package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! http-server ./app -a localhost -p 8000 -c-1
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs EthereumExplorerV2
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls EthereumExplorerV2
npm ERR! There is likely additional logging output above.
The text was updated successfully, but these errors were encountered: