【发布时间】:2015-01-27 15:39:48
【问题描述】:
我正在运行 node 和 npm,在 Docker 容器中安装了 nvm 以运行测试。 NPM 安装由拥有自己的节点安装的非 root 用户运行。出于某种原因,我必须像这样调用节点...... /home/user/.nvm/v0.10.33/bin/node 和像 /home/user/.nvm/v0.10.33/bin/npm 这样的 npm ... 这个导致问题并给了我一个“/usr/bin/env”“节点”不存在,所以我将 /home/user/.nvm/v0.10.33/bin/node 符号链接到 /usr/bin/node 并且事情开始滚动再次。但是现在我遇到了这个奇怪的错误。
我搜索了这个错误,显然以前没有人见过它。
npm ERR! Could not get cache stat
这是完整的堆栈...
npm ERR! Could not get cache stat
npm ERR! Could not get cache stat
npm ERR! Linux 3.16.4-tinycore64
npm ERR! argv "node" "/home/jenkins/.nvm/v0.10.33/bin/npm" "install"
npm ERR! node v0.10.33
npm ERR! npm v2.1.10
npm ERR! path /home/jenkins/.npm/_git-remotes/<<address_to_private_repo>>/objects/pack/tmp_pack_GKEEeR
npm ERR! code ENOENT
npm ERR! errno 34
npm ERR! enoent ENOENT, chown '/home/jenkins/.npm/_git-remotes/<<address_to_private_repo>>/objects/pack/tmp_pack_GKEEeR'
npm ERR! enoent This is most likely not a problem with npm itself
npm ERR! enoent and is related to npm not being able to find a file.
npm ERR! enoent
npm ERR! Please include the following file with any support request:
npm ERR! /home/jenkins/schools.vidigami.com/npm-debug.log
```
【问题讨论】: