isaacs/npm — Issue #1549: ReferenceError: FMODE is not defined
Author: bobbyhouse
Created: 2011-10-13 15:55:49+00:00
State: open

When running npm install -g some-tar-file.tar.gz I receive the mentioned error, i.e., ReferenceError: FMODE is not defined.
Verified that v1.0.94 does not product the same result.

CONSOLE OUTPUT:
npm ERR! ReferenceError: FMODE is not defined
npm ERR! at [object Object]. (/usr/lib/node_modules/npm/lib/cache.js:520:7)
npm ERR! at [object Object].emit (events.js:81:20)
npm ERR! at fs.js:1039:12
npm ERR! Report this *entire* log at:
npm ERR!
npm ERR! or email it to:
npm ERR!
npm ERR!
npm ERR! System Linux 2.6.32-33-server
npm ERR! command "node" "/usr/bin/npm" "install" "-g" "jsservicelib-latest.tar.gz"
npm ERR! cwd /tmp
npm ERR! node -v v0.4.11
npm ERR! npm -v 1.0.95
npm ERR! type not_defined
npm ERR! arguments [ 'FMODE' ]
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /tmp/npm-debug.log
npm not ok

NPM-DEBUG.LOG
--------------------------
info it worked if it ends with ok
verbose cli [ 'node',
verbose cli '/usr/bin/npm',
verbose cli 'install',
verbose cli '-g',
verbose cli 'jsservicelib-latest.tar.gz' ]
info using npm@1.0.95
info using node@v0.4.11
verbose config file /home/vagrant/.npmrc
verbose config file /usr/etc/npmrc
verbose config file /usr/lib/node_modules/npm/npmrc
verbose into /usr/lib [ 'jsservicelib-latest.tar.gz' ]
verbose cache add jsservicelib-latest.tar.gz
verbose cache add [ 'jsservicelib-latest.tar.gz', null ]
silly cache add: name, spec, args [ undefined,
silly cache add: name, spec, args 'jsservicelib-latest.tar.gz',
silly cache add: name, spec, args [ 'jsservicelib-latest.tar.gz', null ] ]
verbose parsed url { pathname: 'jsservicelib-latest.tar.gz',
verbose parsed url href: 'jsservicelib-latest.tar.gz' }
verbose mkdir (expected) error ENOENT, No such file or directory '/tmp/npm-1318521308425'
verbose mkdir (expected) error ENOENT, No such file or directory '/tmp/npm-1318521308425/1318521308425-0.7176498947665095'
verbose mkdir done: /tmp/npm-1318521308425/1318521308425-0.7176498947665095 755
ERR! ReferenceError: FMODE is not defined
ERR! at [object Object]. (/usr/lib/node_modules/npm/lib/cache.js:520:7)
ERR! at [object Object].emit (events.js:81:20)
ERR! at fs.js:1039:12
ERR! Report this *entire* log at:
ERR!
ERR! or email it to:
ERR!
ERR!
ERR! System Linux 2.6.32-33-server
ERR! command "node" "/usr/bin/npm" "install" "-g" "jsservicelib-latest.tar.gz"
ERR! cwd /tmp
ERR! node -v v0.4.11
ERR! npm -v 1.0.95
ERR! type not_defined
ERR! arguments [ 'FMODE' ]
verbose exit [ 1, true ]