我无法在 Openshift 上安装 bower。我一直收到类似以下的错误:
remote: npm ERR! Error: ENOENT, lstat '/var/lib/openshift/537xxxxcd/app-root/runtime/repo/node_modules/bower/node_modules/mout/array/intersection.js'[K
remote: npm ERR! If you need help, you may report this log at:[K
remote: npm ERR! <http://github.com/isaacs/npm/issues>[K
remote: npm ERR! or email it to:[K
remote: npm ERR! <npm-@googlegroups.com>[K
您可以通过此链接查看完整的部署日志: https://s3.amazonaws.com/archive.travis-ci.org/jobs/26291843/log.txt [来自travis]。
我尝试了几种方法: 1)使用或不使用.bowerrc文件
情况:1
{
"directory": "~/app-root/runtime/repo/public/libs"
"storage": {
"cache": "~/app-root/runtime/repo/node_modules/bower/cache",
"completion": "~/app-root/runtime/repo/node_modules/bower/completion",
"git": "~/app-root/runtime/repo/node_modules/bower/git_template"
},
"interactive": "false",
"tmp":"~/app-root/runtime/repo/node_modules/bower/tmp",
"cwd":"~/app-root/runtime/repo"
}
case:2
{
"directory": "public libs"
}
此外,我尝试在$HOME/app-root/runtime/repo目录下运行以下命令,并尝试通过SSH shell安装npm install bower。
npm cache clear
npm cache clean
任何帮助解决这个问题都会很好。
如果您想查看我的存储库,可以在这里找到它:https://github.com/prasunsultania/demoblog。