在OpenShift中安装SailsJS时出错 [英] Error installing SailsJS in OpenShift

查看:127
本文介绍了在OpenShift中安装SailsJS时出错的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

info: Starting app...


Grunt :: module.js:340
    throw err;
          ^
Error: Cannot find module '/var/lib/openshift/54a3a0ec4382ecf1130000f1/app-root/runtime/repo/node_modules/sails/node_modules/grunt-cli/bin/grunt'
    at Function.Module._resolveFilename (module.js:338:15)
    at Function.Module._load (module.js:280:25)
    at Function.Module.runMain (module.js:497:10)

    at startup (node.js:119:16)
    at node.js:902:3


推荐答案

OpenShift需要将grunt单独添加到package.json中,它并不包含它。

OpenShift needs grunt separately added to package.json, it does not contain it out of box.

尝试添加以下内容以获得咕噜声:

Try to add the following there to get grunt working:

   "dependencies": { "grunt-cli": ">=0.1.13", "grunt": "~0.4.4",



<来源:
https://gist.github.com/ mdunisch / 4a56bdf972c2f708ccc6

这篇关于在OpenShift中安装SailsJS时出错的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆