Error installing SailsJS in OpenShift

情到浓时终转凉″ 提交于 2019-12-08 11:20:57

问题


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

回答1:


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",

Source: https://gist.github.com/mdunisch/4a56bdf972c2f708ccc6



来源:https://stackoverflow.com/questions/28369538/error-installing-sailsjs-in-openshift

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!