isaacs/npm — Issue #2171: ENOENT on /tmp/npm-nnnnn/package/package.json
Author: randymized
Created: 2012-02-17 18:27:46+00:00
State: open

Whether I try to install from a local directory or from github, the result is the same: npm install fails not finding a tmp file.
Although it mentions package.json, there is a package.json in the project. Apparently there is something wrong about the project structure, but the error message doesn't lead me to any solutions.

$ cat /home/randymized/tmp/x/npm-debug.log
info it worked if it ends with ok
verbose cli [ 'node',
verbose cli '/usr/local/bin/npm',
verbose cli '-d',
verbose cli 'install',
verbose cli 'https://github.com/randymized/path-in-common' ]
info using npm@1.1.0-2
info using node@v0.7.0-pre
verbose config file /home/randymized/.npmrc
verbose config file /usr/local/etc/npmrc
verbose config file /usr/local/lib/node_modules/npm/npmrc
verbose cache add [ 'https://github.com/randymized/path-in-common', null ]
silly cache add: name, spec, args [ undefined,
silly cache add: name, spec, args 'https://github.com/randymized/path-in-common',
silly cache add: name, spec, args [ 'https://github.com/randymized/path-in-common', null ] ]
verbose parsed url { protocol: 'https:',
verbose parsed url slashes: true,
verbose parsed url host: 'github.com',
verbose parsed url hostname: 'github.com',
verbose parsed url href: 'https://github.com/randymized/path-in-common',
verbose parsed url pathname: '/randymized/path-in-common',
verbose parsed url path: '/randymized/path-in-common' }
verbose addRemoteTarball [ 'https://github.com/randymized/path-in-common', null ]
verbose mkdir (expected) error ENOENT, no such file or directory '/tmp/npm-1329501282726'
verbose mkdir (expected) error ENOENT, no such file or directory '/tmp/npm-1329501282726/1329501282726-0.32381718698889017'
verbose mkdir done: /tmp/npm-1329501282726/1329501282726-0.32381718698889017 755
verbose fetch to /tmp/npm-1329501282726/1329501282726-0.32381718698889017/tmp.tgz
http GET https://github.com/randymized/path-in-common
http 200 https://github.com/randymized/path-in-common
verbose mkdir (expected) error ENOENT, no such file or directory '/tmp/npm-1329501282726/1329501282726-0.32381718698889017/___package.npm'
verbose mkdir done: /tmp/npm-1329501282726/1329501282726-0.32381718698889017/___package.npm 755
verbose unpack_ uid, gid [ undefined, undefined ]
verbose unpackTarget /tmp/npm-1329501282726/1329501282726-0.32381718698889017/package
silly gunzTarPerm modes [ '755', '644' ]
silly afterUntar undefined
verbose gunzed /tmp/npm-1329501282726/1329501282726-0.32381718698889017/___package.npm
verbose rm'ed /tmp/npm-1329501282726/1329501282726-0.32381718698889017/package
verbose renamed [ '/tmp/npm-1329501282726/1329501282726-0.32381718698889017/___package.npm',
verbose renamed '/tmp/npm-1329501282726/1329501282726-0.32381718698889017/package' ]
ERR! couldn't unpack /tmp/npm-1329501282726/1329501282726-0.32381718698889017/tmp.tgz to /tmp/npm-1329501282726/1329501282726-0.32381718698889017
ERR! Error: ENOENT, no such file or directory '/tmp/npm-1329501282726/1329501282726-0.32381718698889017/package/package.json'
ERR! You may report this log at:
ERR!
ERR! or email it to:
ERR!
ERR!
ERR! System Linux 3.0.4-linode38
ERR! command "node" "/usr/local/bin/npm" "-d" "install" "https://github.com/randymized/path-in-common"
ERR! cwd /home/randymized/tmp/x
ERR! node -v v0.7.0-pre
ERR! npm -v 1.1.0-2
ERR! path /tmp/npm-1329501282726/1329501282726-0.32381718698889017/package/package.json
ERR! code ENOENT
ERR! message ENOENT, no such file or directory '/tmp/npm-1329501282726/1329501282726-0.32381718698889017/package/package.json'
ERR! errno {}
verbose exit [ 1, true ]