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

Cannot load lawnchair dependency #219

Open
forceoflight opened this issue Sep 14, 2015 · 3 comments
Open

Cannot load lawnchair dependency #219

forceoflight opened this issue Sep 14, 2015 · 3 comments

Comments

@forceoflight
Copy link

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
Copy link
Collaborator

@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
Copy link
Author

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

@MarkMYoung
Copy link
Collaborator

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

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