linux - fails installing node package using npm on debian -


i have built server , installed nodejs (compiled source). can install global packages using npm can't install locally:

$ npm install restify npm err! error: attempt unlock restify@~2.6.2, hasn't been locked npm err!     @ unlock (/usr/local/lib/node_modules/npm/lib/cache.js:1304:11) npm err!     @ cb (/usr/local/lib/node_modules/npm/lib/cache.js:646:5) npm err!     @ /usr/local/lib/node_modules/npm/lib/cache.js:655:20 npm err!     @ /usr/local/lib/node_modules/npm/lib/cache.js:1290:7 npm err!     @ /usr/local/lib/node_modules/npm/node_modules/lockfile/lockfile.js:167:38 npm err!     @ openreq.req.done (/usr/local/lib/node_modules/npm/node_modules/graceful-fs/graceful-fs.js:144:5) npm err!     @ openreq.done (/usr/local/lib/node_modules/npm/node_modules/graceful-fs/graceful-fs.js:64:22) npm err!     @ object.oncomplete (fs.js:107:15) npm err! if need help, may report *entire* log, npm err! including npm , node versions, at: npm err!     <http://github.com/npm/npm/issues>  npm err! system linux 3.5.0-23-generic npm err! command "/usr/local/bin/node" "/usr/local/bin/npm" "install" "restify" npm err! cwd /home/likewise-open/coventry/aa7401/bookshop npm err! node -v v0.10.26 npm err! npm -v 1.4.3 npm err!  npm err! additional logging details can found in: npm err!     /home/likewise-open/.../npm-debug.log npm err! not ok code 0 $  

i running current versions of node , npm:

$ node -v v0.10.26 $ npm -v 1.4.3 $ 

i having same issues request package well. owner of folder , files int contains. know going on?

the issue may permissions on .npm directory in home directory. belatedly found post:

npm cannot install dependencies - attempt unlock hasn't been locked

unfortunately until work tomorrow have no way confirm this.


Comments

Popular posts from this blog

Android layout hidden on keyboard show -

google app engine - 403 Forbidden POST - Flask WTForms -

c - Why would PK11_GenerateRandom() return an error -8023? -