gpt4 book ai didi

npm - 为什么TravisCI构建会在npm安装期间由于文件锁定而失败

转载 作者:行者123 更新时间:2023-12-04 03:37:23 27 4
gpt4 key购买 nike

npm install由于文件锁定问题而失败。如何避免这种情况?

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 .

最佳答案

将npm更新到版本2修复了我的问题。

install:
- npm install -g npm@2

关于npm - 为什么TravisCI构建会在npm安装期间由于文件锁定而失败,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/26474640/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com