-
Notifications
You must be signed in to change notification settings - Fork 799
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
Problems installing the dependencies #648
Comments
hi @brianbancroft. thanks so much for jumping in to contribute to this project! based on my reading of your error logs, i'm under the impression that something is wrong with your base installation of node/npm. when you type the following commands into the terminal, what is returned? $ node --version
v4.1.1
$ npm --version
2.14.4 secondly, its always a good idea to use |
Hi @jgravois, Based on your suggestion, I looked at what I had, but couldn't get the version out of node or npm. So I uninstalled using the package manager, and reinstalled using apt-get install. Here's what I have now:
Thanks for pointing me in this direction. This is certainly one problem down. There's still another to go, unfortunately:
On a side note, I'm currently attempting to get the http-server as illustrated in your gist to work, but I'm running into similar problems as here. |
since you noted that in terminal, (i'm not a linux user, so please take this recommendation with a grain of salt) |
@brianbancroft Since you're on ubuntu: For the http-server stuff, this should do the trick: |
Thanks @GISDev01 ! This has solved my shenanigans 👍 |
Sorry to say, but I do still have some troubles getting this to work via http-server. The file runs locally off of file:///.../debug.html with blue states, but when I try to run this via http-server in the way prescribed by @GISDev01, I get the blank window with the title div. When I inspect the terminal window that is running http-server, I run into the following problem:
|
are you sure that you've if so, are you positive that the resources which can't be loaded are present in the locations |
So I started with the hello world the other day. a simple index.html and it worked fine. But it turns out that the problem was the directory that I referenced. By choosing /home/brian/git/esri-leaflet/debug/ as the directory in http-server, it meant that I wasn't able to access the files in any prior directory such as .../esri-leaflet/. I realized this just now and tested by trying to reference a text file with a few words that I threw in the /esri-leaflet/ directory. It didn't work, but choosing the /home/brian/git/esri-leaflet/ as my directory in http-server did, and allowed me to test the webpage the proper way. There was so much learnt in this frustrating exercise. From beginner-level applied practice in command line, to the more important lesson you were trying to impart: For debugging, and testing recent changes, serving the webpage through a server protocol as opposed to through file protocol is much less hassle, once you get things running. Thanks again! |
Hi there,
I'm having a bit of trouble in making it to the starting gate to make it to the issue offered for first-timers: #647
Specifically, I wasn't able to load the sample html file locally. Instead, I got what appears to be the leaflet framework, but with no basemap. I believe the problem is related to my inability to install the dependencies properly using "npm install". I've installed what appears to be the latest nodejs using sudo apt-get install, and have attempted to install esri-leaflet using the directions found on the readme.md.
At somepoint in the npm install process, I run into a lot of red. This is where it starts going bad:
I'm unsure where to go next. I'd love to help with the problem, but I got to make it to the starting line first. I'm running on a Thinkpad t430 with a newly-installed copy of Ubuntu 14.04.
Thanks for any assistance!
The text was updated successfully, but these errors were encountered: