exebook / deodar

Классическая двухпанельная рабочая среда (коммандер) для О.С. Линукс
The Unlicense
72 stars 8 forks source link

Error: Attempt to unlock pty.js, which hasn't been locked #9

Closed xoyk closed 10 years ago

xoyk commented 10 years ago

xoyk@xoyk-ubuntu:~/deodar$ npm install pty.js npm ERR! Error: Attempt to unlock pty.js, which hasn't been locked npm ERR! at unlock (/usr/local/lib/node_modules/npm/lib/cache.js:1304:11) npm ERR! at cb (/usr/local/lib/node_modules/npm/lib/cache.js:866:5) npm ERR! at /usr/local/lib/node_modules/npm/lib/cache.js:883:20 npm ERR! at /usr/local/lib/node_modules/npm/lib/cache.js:1290:7 npm ERR! at /usr/local/lib/node_modules/npm/node_modules/lockfile/lockfile.js:167:38 npm ERR! at OpenReq.Req.done (/usr/local/lib/node_modules/npm/node_modules/graceful-fs/graceful-fs.js:144:5) npm ERR! at OpenReq.done (/usr/local/lib/node_modules/npm/node_modules/graceful-fs/graceful-fs.js:64:22) npm ERR! at Object.oncomplete (fs.js:107:15) npm ERR! If you need help, you may report this entire log, npm ERR! including the npm and node versions, at: npm ERR! http://github.com/npm/npm/issues

npm ERR! System Linux 3.11.0-18-generic npm ERR! command "/usr/local/bin/node" "/usr/local/bin/npm" "install" "pty.js" npm ERR! cwd /home/xoyk/deodar npm ERR! node -v v0.10.26 npm ERR! npm -v 1.4.3 npm ERR! npm ERR! Additional logging details can be found in: npm ERR! /home/xoyk/deodar/npm-debug.log npm ERR! not ok code 0

npm-debug.log:

0 info it worked if it ends with ok 1 verbose cli [ '/usr/local/bin/node', 1 verbose cli '/usr/local/bin/npm', 1 verbose cli 'install', 1 verbose cli 'pty.js' ] 2 info using npm@1.4.3 3 info using node@v0.10.26 4 verbose cache add [ 'pty.js', null ] 5 verbose cache add name=undefined spec="pty.js" args=["pty.js",null] 6 verbose parsed url { protocol: null, 6 verbose parsed url slashes: null, 6 verbose parsed url auth: null, 6 verbose parsed url host: null, 6 verbose parsed url port: null, 6 verbose parsed url hostname: null, 6 verbose parsed url hash: null, 6 verbose parsed url search: null, 6 verbose parsed url query: null, 6 verbose parsed url pathname: 'pty.js', 6 verbose parsed url path: 'pty.js', 6 verbose parsed url href: 'pty.js' } 7 silly lockFile 97a5cb65-pty-js pty.js 8 verbose lock pty.js /home/xoyk/.npm/97a5cb65-pty-js.lock 9 silly lockFile 97a5cb65-pty-js pty.js 10 error Error: Attempt to unlock pty.js, which hasn't been locked 10 error at unlock (/usr/local/lib/node_modules/npm/lib/cache.js:1304:11) 10 error at cb (/usr/local/lib/node_modules/npm/lib/cache.js:866:5) 10 error at /usr/local/lib/node_modules/npm/lib/cache.js:883:20 10 error at /usr/local/lib/node_modules/npm/lib/cache.js:1290:7 10 error at /usr/local/lib/node_modules/npm/node_modules/lockfile/lockfile.js:167:38 10 error at OpenReq.Req.done (/usr/local/lib/node_modules/npm/node_modules/graceful-fs/graceful-fs.js:144:5) 10 error at OpenReq.done (/usr/local/lib/node_modules/npm/node_modules/graceful-fs/graceful-fs.js:64:22) 10 error at Object.oncomplete (fs.js:107:15) 11 error If you need help, you may report this entire log, 11 error including the npm and node versions, at: 11 error http://github.com/npm/npm/issues 12 error System Linux 3.11.0-18-generic 13 error command "/usr/local/bin/node" "/usr/local/bin/npm" "install" "pty.js" 14 error cwd /home/xoyk/deodar 15 error node -v v0.10.26 16 error npm -v 1.4.3 17 verbose exit [ 1, true ]

anton44eg commented 10 years ago

sudo npm install pty.js

xoyk commented 10 years ago

Однако, инструкцию по установке нужно дополнить )

exebook commented 10 years ago

npm install не должна требовать sudo! она инсталит в текущую папку (или типа того по правилам node_modules)

http://nodejs.org/api/modules.html#modules_loading_from_node_modules_folders

sudo требуется если указан ключик -g тоесть глобальная установка. возможно у вас в системе напутано с правами доступа (если я вообще верно понял issue, к сожалению понятность сообщений node-gyp за гранью)

anton44eg commented 10 years ago

Вроде все нормально с праваии