isaacs/npm — Issue #1859: Forever installation Error
Author: akshayakrsh
Created: 2011-12-09 10:09:49+00:00
State: open

I am again not able to install forever on my ubuntu 11.04, below is the log I get:

root@ubuntu:/# npm install mongodb -g
npm WARN nodeunit@0.5.1 package.json: bugs['web'] should probably be bugs['url']

> mongodb@0.9.7-1.4 install /usr/local/lib/node_modules/mongodb
> node install.js

================================================================================
= =
= To install with C++ bson parser do =
= =
================================================================================
mongodb@0.9.7-1.4 /usr/local/lib/node_modules/mongodb
root@ubuntu:/# npm install forever –g
npm ERR! 404 '%E2%80%93g' is not in the npm registry.
npm ERR! 404 You could maybe bug the author to publish it
npm ERR! 404 Note that you can also install from a tarball or folder.
npm ERR!
npm ERR! System Linux 3.0.0-13-generic
npm ERR! command "node" "/usr/local/bin/npm" "install" "forever" "–g"
npm ERR! cwd /
npm ERR! node -v v0.4.9
npm ERR! npm -v 1.0.106
npm ERR! code E404
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /npm-debug.log
npm not ok

And the npm-debug.log had this:

info it worked if it ends with ok
verbose cli [ 'node',
verbose cli '/usr/local/bin/npm',
verbose cli 'install',
verbose cli 'forever',
verbose cli '–g' ]
info using npm@1.0.106
info using node@v0.4.9
verbose config file /root/.npmrc
verbose config file /usr/local/etc/npmrc
verbose config file /usr/local/lib/node_modules/npm/npmrc
verbose into / [ 'forever', '–g' ]
verbose cache add forever
verbose cache add [ 'forever', null ]
silly cache add: name, spec, args [ undefined, 'forever', [ 'forever', null ] ]
verbose parsed url { pathname: 'forever', href: 'forever' }
verbose cache add –g
verbose cache add [ '–g', null ]
silly cache add: name, spec, args [ undefined, '–g', [ '–g', null ] ]
verbose parsed url { pathname: '–g', href: '–g' }
info addNamed [ 'forever', '' ]
verbose addNamed [ null, '' ]
info addNamed [ '–g', '' ]
verbose addNamed [ null, '' ]
verbose GET forever
verbose raw, before any munging forever
verbose url resolving [ 'https://registry.npmjs.org/', './forever' ]
verbose url resolved https://registry.npmjs.org/forever
verbose GET –g
verbose raw, before any munging –g
verbose url resolving [ 'https://registry.npmjs.org/', './%E2%80%93g' ]
verbose url resolved https://registry.npmjs.org/%E2%80%93g
silly get cb [ 200,
silly get cb { vary: 'Accept',
silly get cb server: 'CouchDB/1.1.0 (Erlang OTP/R14B04)',
silly get cb etag: '"AG98N5FZFW82FJMKC403MKDB2"',
silly get cb date: 'Fri, 09 Dec 2011 10:04:08 GMT',
silly get cb 'content-type': 'application/json',
silly get cb 'content-length': '24094' } ]
verbose mkdir (expected) error ENOENT, No such file or directory '/root/.npm/forever'
verbose mkdir done: /root/.npm/forever 755
verbose GET forever/0.7.5
verbose raw, before any munging forever/0.7.5
verbose url resolving [ 'https://registry.npmjs.org/', './forever/0.7.5' ]
verbose url resolved https://registry.npmjs.org/forever/0.7.5
silly get cb [ 404,
silly get cb { server: 'CouchDB/1.1.0 (Erlang OTP/R14B04)',
silly get cb date: 'Fri, 09 Dec 2011 10:04:10 GMT',
silly get cb 'content-type': 'application/json',
silly get cb 'content-length': '52',
silly get cb 'cache-control': 'must-revalidate' } ]
ERR! 404 '%E2%80%93g' is not in the npm registry.
ERR! 404 You could maybe bug the author to publish it
ERR! 404 Note that you can also install from a tarball or folder.
ERR!
ERR! System Linux 3.0.0-13-generic
ERR! command "node" "/usr/local/bin/npm" "install" "forever" "–g"
ERR! cwd /
ERR! node -v v0.4.9
ERR! npm -v 1.0.106
ERR! code E404
verbose exit [ 1, true ]

What to do?