Deploying meanjs to Bluemix, but always failing

三世轮回 提交于 2019-12-13 04:12:17

问题


node-pre-gyp install --fallback-to-build sh: 1: node-pre-gyp: not found npm ERR! Linux 3.19.0-25-generic npm ERR! argv "node" "/tmp/staged/app/.heroku/node/bin/npm" "rebuild" npm ERR! node v0.10.40 npm ERR! npm v3.3.5 npm ERR! file sh npm ERR! code ELIFECYCLE npm ERR! errno ENOENT npm ERR! syscall spawn npm ERR! v8-debug@0.4.6 install: node-pre-gyp install --fallback-to-build npm ERR! spawn ENOENT npm ERR! npm ERR! Failed at the v8-debug@0.4.6 install script 'node-pre-gyp install --fallback-to-build'. npm ERR! This is most likely a problem with the v8-debug package, npm ERR! not with npm itself. npm ERR! Tell the author that this fails on your system: npm ERR! node-pre-gyp install --fallback-to-build npm ERR! You can get their info via: npm ERR! npm owner ls v8-debug npm ERR! There is likely additional logging output above. npm ERR! Please include the following file with any support


回答1:


To deploy meanjs in Bluemix simply follow the steps Ryan Baxter described in his article and I am summarizing here:

$ cf login -a api.ng.bluemix.net
$ cf create-service mongolab sandbox mean-mongo
$ git clone https://github.com/meanjs/mean.git && cd mean
$ npm install
$ grunt build
$ cf push



回答2:


In addition to Alex's answer above, if you need the ability to debug more than just logs or if you want to use utilities like node-inspector or if you want to just shell into your Bluemix container, then I suggest you take a look at App Management feature in Bluemix. It takes advantage of the following 4 utilities:

  • devconsole (development console)
  • shell (tty.js)
  • inspector (node-inspector)
  • hc (Health Center)

For further details, take a look at the blog and video posted below:

https://developer.ibm.com/bluemix/2015/10/05/advanced-debugging-node-apps-bluemix/



来源:https://stackoverflow.com/questions/32981441/deploying-meanjs-to-bluemix-but-always-failing

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