oferei / json-gate

A friendly, fast JSON schema validator
MIT License
100 stars 16 forks source link

Error using NPM install #17

Closed NicolasPelletier closed 11 years ago

NicolasPelletier commented 11 years ago

Following the exchanges we had two days ago ( #12, #13, #15 and #16 ), I had gotten your code directly from GitHub.

Somebody from my team asked me to use "npm install" instead as an insurance that what you finally released was something you considered stable and not what I blindly took from your repository. I tried it this morning and got the following error log trying it. Simply put, GET https://registry.npmjs.org/json-gate/-/json-gate-0.8.19.tgz returns error 404. So there is something that probably needs to be done on your end to insure the command works.

It would be too bad if somebody missed the opportunity to use your package because he could not get it...

0 info it worked if it ends with ok
1 verbose cli [ 'nodejs', '/usr/bin/npm', 'install', 'json-gate' ]
2 info using npm@1.1.69
3 info using node@v0.8.16
4 verbose read json /home/dev/GitHub/ToBeDeleted/package.json
5 verbose read json /home/dev/GitHub/ToBeDeleted/package.json
6 verbose cache add [ 'json-gate', null ]
7 silly cache add name=undefined spec="json-gate" args=["json-gate",null]
8 verbose parsed url { pathname: 'json-gate', path: 'json-gate', href: 'json-gate' }
9 silly lockFile a559c404-json-gate json-gate
10 verbose lock json-gate /home/dev/.npm/a559c404-json-gate.lock
11 silly lockFile a559c404-json-gate json-gate
12 verbose addNamed [ 'json-gate', '' ]
13 verbose addNamed [ null, '' ]
14 silly lockFile 9db89685-json-gate json-gate@
15 verbose lock json-gate@ /home/dev/.npm/9db89685-json-gate.lock
16 silly addNameRange { name: 'json-gate', range: '', hasData: false }
17 verbose url raw json-gate
18 verbose url resolving [ 'https://registry.npmjs.org/', './json-gate' ]
19 verbose url resolved https://registry.npmjs.org/json-gate
20 info trying registry request attempt 1 at 08:20:10
21 verbose etag "9Y5KLO48IEK9W62VA5JKABNM6"
22 http GET https://registry.npmjs.org/json-gate
23 http 304 https://registry.npmjs.org/json-gate
24 silly registry.get cb [ 304,
24 silly registry.get   { server: 'CouchDB/1.2.0 (Erlang OTP/R15B)',
24 silly registry.get     etag: '"9Y5KLO48IEK9W62VA5JKABNM6"',
24 silly registry.get     date: 'Thu, 10 Jan 2013 13:18:49 GMT',
24 silly registry.get     'content-length': '0' } ]
25 verbose etag json-gate from cache
26 silly addNameRange number 2 { name: 'json-gate', range: '', hasData: true }
27 silly addNameRange versions [ 'json-gate',
27 silly addNameRange   [ '0.8.0',
27 silly addNameRange     '0.8.1',
27 silly addNameRange     '0.8.2',
27 silly addNameRange     '0.8.3',
27 silly addNameRange     '0.8.4',
27 silly addNameRange     '0.8.5',
27 silly addNameRange     '0.8.6',
27 silly addNameRange     '0.8.7',
27 silly addNameRange     '0.8.8',
27 silly addNameRange     '0.8.9',
27 silly addNameRange     '0.8.10',
27 silly addNameRange     '0.8.11',
27 silly addNameRange     '0.8.12',
27 silly addNameRange     '0.8.13',
27 silly addNameRange     '0.8.14',
27 silly addNameRange     '0.8.15',
27 silly addNameRange     '0.8.16',
27 silly addNameRange     '0.8.17',
27 silly addNameRange     '0.8.18',
27 silly addNameRange     '0.8.19' ] ]
28 verbose addNamed [ 'json-gate', '0.8.19' ]
29 verbose addNamed [ '0.8.19', '0.8.19' ]
30 silly lockFile 60dc6433-json-gate-0-8-19 json-gate@0.8.19
31 verbose lock json-gate@0.8.19 /home/dev/.npm/60dc6433-json-gate-0-8-19.lock
32 silly lockFile bc8eed55-g-json-gate-json-gate-0-8-19-tgz https://registry.npmjs.org/json-gate/-/json-gate-0.8.19.tgz
33 verbose lock https://registry.npmjs.org/json-gate/-/json-gate-0.8.19.tgz /home/dev/.npm/bc8eed55-g-json-gate-json-gate-0-8-19-tgz.lock
34 verbose addRemoteTarball [ 'https://registry.npmjs.org/json-gate/-/json-gate-0.8.19.tgz',
34 verbose addRemoteTarball   '68edcc42ad5f225d2509eb2a42c393ced45896a6' ]
35 info retry fetch attempt 1 at 08:20:11
36 verbose fetch to= /home/dev/tmp/npm-24633/1357824011332-0.5183184570632875/tmp.tgz
37 http GET https://registry.npmjs.org/json-gate/-/json-gate-0.8.19.tgz
38 http 404 https://registry.npmjs.org/json-gate/-/json-gate-0.8.19.tgz
39 error fetch failed https://registry.npmjs.org/json-gate/-/json-gate-0.8.19.tgz
40 silly lockFile bc8eed55-g-json-gate-json-gate-0-8-19-tgz https://registry.npmjs.org/json-gate/-/json-gate-0.8.19.tgz
41 silly lockFile 60dc6433-json-gate-0-8-19 json-gate@0.8.19
42 silly lockFile 9db89685-json-gate json-gate@
43 error Error: 404 Not Found
43 error     at null.<anonymous> (/usr/lib/nodejs/npm/lib/utils/fetch.js:47:16)
43 error     at EventEmitter.emit (events.js:126:20)
43 error     at WriteStream.flush (fs.js:1529:12)
43 error     at fs.close (/usr/lib/nodejs/npm/node_modules/graceful-fs/graceful-fs.js:90:5)
43 error     at Object.oncomplete (fs.js:297:15)
44 error If you need help, you may report this log at:
44 error     <http://github.com/isaacs/npm/issues>
44 error or email it to:
44 error     <npm-@googlegroups.com>
45 error System Linux 3.2.0-35-generic
46 error command "nodejs" "/usr/bin/npm" "install" "json-gate"
47 error cwd /home/dev/GitHub/ToBeDeleted
48 error node -v v0.8.16
49 error npm -v 1.1.69
50 verbose exit [ 1, true ]
oferei commented 11 years ago

thanks for the info. I bumped the version to 20. even stranger than 404, I ran "npm install json-gate" and it installed. but the package.json was screwed up.

oferei commented 11 years ago

strange, even after the bump I get the strange package.json. it's 20KB! it seems to include the entire readme file.

NicolasPelletier commented 11 years ago

Thanks. It works like a charm now...

oferei commented 11 years ago

meanwhile I found what happened to the package.json file. apparently it's normal... "... then npm will attach a readme field to the data with the contents of this file." https://github.com/isaacs/read-package-json