brianleroux / lawnchair

A lightweight clientside JSON document store,
http://brianleroux.github.com/lawnchair
MIT License
2.13k stars 246 forks source link

Cannot load lawnchair dependency #219

Open forceoflight opened 9 years ago

forceoflight commented 9 years ago

Hello,

in our corporate network it isn't possible to use git as a protocol. Usually we have solved this issue by using https protocol and pointing to archive files.

-    "lawnchair": "git://github.com/brianleroux/lawnchair.git",
+    "lawnchair": "https://github.com/brianleroux/lawnchair/archive/0.6.4.tar.gz",

This has worked just fine with for example sly dependency.

"sly": "https://github.com/darsain/sly/archive/v1.5.1.tar.gz",

But with lawnchair we get following error.

npm http GET https://github.com/brianleroux/lawnchair/archive/0.6.4.tar.gz
npm http 200 https://github.com/brianleroux/lawnchair/archive/0.6.4.tar.gz
npm ERR! Error: ENOENT, open '/Users/xxx/tmp/npm-25238-r-82Tnod/1442229597419-0.4693440441042185/package/package.json'
npm ERR! If you need help, you may report this *entire* log,
npm ERR! including the npm and node versions, at:
npm ERR!     <http://github.com/npm/npm/issues>

npm ERR! System Darwin 13.4.0
npm ERR! command "node" "/usr/local/bin/npm" "install"
npm ERR! cwd /Users/xxx/repos/flow-ui
npm ERR! node -v v0.10.25
npm ERR! npm -v 1.4.3
npm ERR! path /Users/xxx/tmp/npm-25238-r-82Tnod/1442229597419-0.4693440441042185/package/package.json
npm ERR! code ENOENT
npm ERR! errno 34
npm ERR! 
npm ERR! Additional logging details can be found in:
npm ERR!     /Users/xxx/repos/flow-ui/npm-debug.log
npm ERR! not ok code 0

I think the issue is that gz file is missing package.json. There is only component.json.

xxx@xxx~/repos/flow-ui[bugfix/xxx*]$ ls /Users/xxx/tmp/npm-13892-Zk0bgzJo/1442215923834-0.32210210990160704/package/
Gruntfile.js    LICENSE     README.md   component.json  doc     makefile    src     test        util
MarkMYoung commented 9 years ago

@forceoflight, please make the proper package.json file and add it in a pull request. I do not use NPM, but I will gladly merge and/or edit a working package.json file.

forceoflight commented 9 years ago

We choose go with the Mozilla storage solution. Thanks anyway for your response!

MarkMYoung commented 9 years ago

@brianleroux, I don't know why package.json is not included in the .zip and .tar.gz files.