2014-10-20 14 views
7

npm install non riesce a causa di un problema di blocco dei file. Come posso evitare questo?Perché i build di TravisCI falliscono durante l'installazione di npm a causa del blocco dei file

Here is the log of travis-ci:

npm ERR! EEXIST, open '/home/travis/.npm/83f1dfb7-vis-npm-lodash-2-4-1-package-tgz.lock' 
File exists: /home/travis/.npm/83f1dfb7-vis-npm-lodash-2-4-1-package-tgz.lock 
Move it away, and try again. 
npm ERR! System Linux 2.6.32-042stab090.5 
npm ERR! command "/home/travis/.nvm/v0.10.32/bin/node" "/home/travis/.nvm/v0.10.32/bin/npm" "install" 
npm ERR! cwd /home/travis/build/wordnik/swagger-editor 
npm ERR! node -v v0.10.32 
npm ERR! npm -v 1.4.28 
npm ERR! path /home/travis/.npm/83f1dfb7-vis-npm-lodash-2-4-1-package-tgz.lock 
npm ERR! code EEXIST 
npm ERR! errno 47 
npm ERR! not ok code 0 
The command "npm install" failed and exited with 47 during . 

risposta

9

Aggiornamento a NPM alla versione 2 fisse mio problema.

install: 
    - npm install -g [email protected] 
+0

Non so perché questo è ancora un problema, ma ha risolto il mio problema, grazie. – Drazisil

Problemi correlati