iLanguage / OPrime

Open Source Experimentation Libraries - Online and Offline for Android and HTML5
3 stars 21 forks source link

cant npm install #41

Closed cesine closed 10 years ago

cesine commented 10 years ago

I decided to clone SAILS and I tried to run it on my mac but I couldn't ...

I'm quite new with Node, Grunt, MontageJS and I can't quite figure out what's going wrong. So, I'll tell you what I did, what I get, and I would greatly appreciate if you could help me about that:

As I said, I cloned SAILS project from https://github.com/ProjetDeRechercheSurLecriture/SAILS and got my local copy I realized there was some stuff missing (node_modules for examples) and I read a bit about Grunt and understood I had to install grunt and then to run "npm install" in my folder in order to get that stuff. Now, the problem is that the npm install keep throwing the following error : npm ERR! Error: ENOENT, open '/Users/username/.npm/tmp_537c592f3f16tmp_42464f4f3dc3package/package.json'

Do you have any idea why?

Thanks a lot for your help,

cesine commented 10 years ago

If you want to record audio and video you should probably use the Android codebase. If you dont want to record audio and video, then you can use MontageJS that Alexandre showed you. Thanks for reporting that npm ERR. It was a problem, I fixed it. I published oprime-montage on NPM and now it works, but we have a bigger problem. You wont be able to load or see SAILS because it's experimental design json is all privately owned by the prof. This means we would need to create some sample experimental design so you can actually try the oprime-montage library... so we are back to the beginning problem.

 Thanks for your quick answer. I think I'll have to go with option A as I need to record audio (at least, at the moment I don't need video but it could eventually be useful). The other data I need to record is the position where the user clicks on the screen. It would have been easier for me to work with MontageJS than working with Android code directly, but I guess I'll have to get familiar with it ... 

About option B, as I was curious about SAILS, I pulled your new version and it now "npm install" without error. However, as you said, I'm missing all the stimuli ... so I can't see anything ...