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

npm install -g doctoc-> "No compatible version found" #1

Closed
TomRoche opened this issue Aug 12, 2012 · 3 comments
Closed

npm install -g doctoc-> "No compatible version found" #1

TomRoche opened this issue Aug 12, 2012 · 3 comments

Comments

@TomRoche
Copy link

I'd like to generate TOCs for my github wiki pages, but am new to node.js. I'm running

$ lsb_release -ds
Linux Mint Debian Edition
$ cat /etc/debian_version
wheezy/sid
$ uname -rv
3.2.0-3-amd64 #1 SMP Thu Jun 28 09:07:26 UTC 2012
$ node --version
v0.5.11-pre
$ npm --version
1.0.106

I did

$ npm install -g doctoc
...

npm ERR! Additional logging details can be found in:
npm ERR! /home/me/bin/node/npm-debug.log
npm not ok

I noticed npm-debug.log had

verbose mkdir (expected) error ENOENT, No such file or directory '/home/me/.npm/doctoc'
verbose mkdir done: /home/me/.npm/doctoc 755

so I did

$ mkdir -p ~/.npm/doctoc
$ npm install -g doctoc

I no longer get the error above, but still get

$ cat /home/me/bin/node/npm-debug.log

info it worked if it ends with ok
verbose cli [ 'node', '/usr/local/bin/npm', 'install', '-g', 'doctoc' ]
info using npm@1.0.106
info using node@v0.5.11-pre
verbose config file /home/me/.npmrc
verbose config file /usr/local/etc/npmrc
verbose config file /usr/local/lib/node_modules/npm/npmrc
verbose into /usr/local/lib [ 'doctoc' ]
verbose cache add doctoc
verbose cache add [ 'doctoc', null ]
silly cache add: name, spec, args [ undefined, 'doctoc', [ 'doctoc', null ] ]
verbose parsed url { pathname: 'doctoc', path: 'doctoc', href: 'doctoc' }
info addNamed [ 'doctoc', '' ]
verbose addNamed [ null, '' ]
verbose GET doctoc
verbose raw, before any munging doctoc
verbose url resolving [ 'https://registry.npmjs.org/', './doctoc' ]
verbose url resolved https://registry.npmjs.org/doctoc
verbose etag "6IIV956MII1N2VCN38UL5UC81"
silly get cb [ 304,
silly get cb { server: 'CouchDB/1.2.0 (Erlang OTP/R15B)',
silly get cb etag: '"6IIV956MII1N2VCN38UL5UC81"',
silly get cb date: 'Sun, 12 Aug 2012 17:00:27 GMT',
silly get cb 'content-length': '0' } ]
verbose etag doctoc from cache
ERR! Error: No compatible version found: doctoc
ERR! No valid targets found.
ERR! Perhaps not compatible with your version of node?
ERR! at installTargetsError (/usr/local/lib/node_modules/npm/lib/cache.js:424:10)
ERR! at /usr/local/lib/node_modules/npm/lib/cache.js:406:17
ERR! at saved (/usr/local/lib/node_modules/npm/lib/utils/npm-registry-client/get.js:136:7)
ERR! at Object.cb as oncomplete
ERR! Report this entire log at:
ERR! http://github.com/isaacs/npm/issues
ERR! or email it to:
ERR! npm-@googlegroups.com
ERR!
ERR! System Linux 3.2.0-3-amd64
ERR! command "node" "/usr/local/bin/npm" "install" "-g" "doctoc"
ERR! cwd /home/me/bin/node
ERR! node -v v0.5.11-pre
ERR! npm -v 1.0.106
verbose exit [ 1, true ]

Is there another way to install doctoc? Do I need to update my version of node?

@thlorenz
Copy link
Owner

I made doctoc 0.0.3 support node 0.4 and greater.
Please give it a try now and make sure it actually works with that version of node.
I would appreciate if you let me know how that went so I can close this issue.

Otherwise I'd suggest to upgrade to node 0.8 (at this point very few people are still running anything below 0.6).

@TomRoche
Copy link
Author

https://github.com/thlorenz/doctoc/issues/1#issuecomment-7680466
> I made doctoc 0.0.3 support node 0.4 and greater.

Thanks, that installs:

$ date ; sudo npm install -g doctoc
> Sun Aug 12 19:08:07 EDT 2012
> /usr/local/bin/doctoc -> /usr/local/lib/node_modules/doctoc/doctoc.js
> doctoc@0.0.3 /usr/local/lib/node_modules/doctoc 
> └── underscore@1.3.3

Regarding

https://github.com/thlorenz/doctoc/issues/1#issuecomment-7680466
> I'd suggest to upgrade to node 0.8 
> (at this point very few people are still running anything below 0.6).

... how to do that? Note I installed using these directions, since I'm running debian and the only repo is for sid.

@thlorenz
Copy link
Owner

I'm closing this issue as things work for you now.
Look here to find more info on installing node 0.8 on linux.

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