Skip to content
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

instructions for dev environment don't work on ubuntu 16.04 #11

Closed
mrjones-plip opened this issue May 12, 2016 · 6 comments
Closed

instructions for dev environment don't work on ubuntu 16.04 #11

mrjones-plip opened this issue May 12, 2016 · 6 comments

Comments

@mrjones-plip
Copy link
Contributor

heya! I'm running a new install of ubuntu 16.04 and I have trouble setting up my dev environment. First up, if i just run sudo apt-get install npm i end up with:

➜  ~ npm -v   
3.5.2
➜  ~ node -v
v4.2.6

I'm not sure which versions of node and npm you were expecting.

i believe, since you're using the global flag (-g), you need a sudo before both npm install -g gulp and npm install -g bower.

when running npm install i got an error:

npm WARN optional Skipping failed optional dependency /chokidar/fsevents:
npm WARN notsup Not compatible with your operating system or architecture: fsevents@1.0.12

However, this looks OK, because it's optional and just a WARN not a FATAL.

next up is that node can't actually be run in bower install, because it's called nodejs, so thanks to stack overflow, i had to run this:

 sudo ln -s /usr/bin/nodejs /usr/bin/node

after that bower install gives me this error

bower install
bower                     invalid-meta The "main" field cannot contain minified files

which I can not currently get past, but haven't given up! it looks like maybe one of the src files we're referencing is minified which is not desired? i only see the vendor files as being minified, but i'm kinda stabbing in the dark here being a node newb. Hopefully using non-minified version is compatible with your dev set up so it won't break it or force upgrade or some such silliness.

@mrjones-plip
Copy link
Contributor Author

mrjones-plip commented May 12, 2016

ok - I have it working under ubuntu! I after changing the bower.json to have "main": "dist/maptable.js", instead of "main": "dist/maptable.min.js", i then had to recreate the now missing examples dir cited in gulpfile.js and tweak the src/index.js.

I'll do up a PR directly!

@mrjones-plip
Copy link
Contributor Author

@melalj - can you take a look at the updated readme.md real quick? I'll merge that to master and add v 1.0.2 tag to master if it all looks good!

mrjones-plip pushed a commit that referenced this issue Jun 22, 2016
get ubuntu dev environment working per #11
@mrjones-plip
Copy link
Contributor Author

latest merged PR #12 should fix all this!

@mrjones-plip
Copy link
Contributor Author

Hrm - I ran gulp dist. and while it did create a lot of changes, the dist/maptable.js does not reflect the chanes i made in dev/maptable.js. I'm re-opening this ticket so we can make sure this works (or fix the way I work so I can update the docs ;)

@melalj
Copy link
Member

melalj commented Jun 22, 2016

You shouldn't make an changes in dev'maptable.js, both dev/maptable.js and dist/maptable.js are auto-generated with gulp.
You need to make the changes in /src

@mrjones-plip
Copy link
Contributor Author

all good - thanks for all the hand holding. i'll soon not be a JS newbie with all your help!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants