git push openshift master,然后得到了这个错误。使用diy-0.1,代码库为https://github.com/onepiecejs/nodejs-cantas,它可以直接在线部署到openshift。有人能给我一个暗示吗?
remote: - Installing dependencies w/ new version of npm ...
remote:
remote: npm info it worked if it ends with ok
remote: npm info using npm@1.4.3
remote: npm info using node@v0.10.26
remote: npm info preinstall cantas@1.0.0
remote: npm ERR! Error: Attempt to unlock connect-redis@1.4.x, which hasn't been locked
remote: npm ERR! at unlock (/var/lib/openshift/536769dd500446ba9c00014f/app-root/data/node-v0.10.26-linux-x64/lib/node_modules/npm/lib/cache.js:1304:11)
remote: npm ERR! at cb (/var/lib/openshift/536769dd500446ba9c00014f/app-root/data/node-v0.10.26-linux-x64/lib/node_modules/npm/lib/cache.js:646:5)
remote: npm ERR! at /var/lib/openshift/536769dd500446ba9c00014f/app-root/data/node-v0.10.26-linux-x64/lib/node_modules/npm/lib/cache.js:655:20
remote: npm ERR! at /var/lib/openshift/536769dd500446ba9c00014f/app-root/data/node-v0.10.26-linux-x64/lib/node_modules/npm/lib/cache.js:1282:20
remote: npm ERR! at afterMkdir (/var/lib/openshift/536769dd500446ba9c00014f/app-root/data/node-v0.10.26-linux-x64/lib/node_modules/npm/lib/cache.js:1013:14)
remote: npm ERR! at /var/lib/openshift/536769dd500446ba9c00014f/app-root/data/node-v0.10.26-linux-x64/lib/node_modules/npm/node_modules/mkdirp/index.js:37:53
remote: npm ERR! at Object.oncomplete (fs.js:107:15)
remote: npm ERR! If you need help, you may report this *entire* log,
remote: npm ERR! including the npm and node versions, at:
remote: npm ERR! <http://github.com/npm/npm/issues>
....
答案 0 :(得分:0)
我使用替代步骤克服了这个问题。
通过new reop升级hook_action / lib / utils: https://github.com/ramr/nodejs-custom-version-openshift
使用ndoe-0.10盒而不是diy-0.1,然后再次重新部署。它完成了任务。