将node.js应用程序部署到openshift时出现npm错误

时间:2016-02-26 04:53:56

标签: node.js reactjs sails.js openshift

我刚刚生成了带有sails的node.js骨架应用程序+ this example之后做出反应。 然后我按照these instructions关于如何将风帆应用程序部署到Openshift。

在git push上我总是收到以下错误:

remote: npm info postuninstall babel-plugin-transform-react-jsx@6.5.2
remote: npm info preuninstall babel-preset-react@6.5.0
remote: npm info uninstall babel-preset-react@6.5.0
remote: npm info postuninstall babel-preset-react@6.5.0
remote: npm ERR! not ok code 0
remote: An error occurred executing 'gear postreceive' (exit code: 47)
remote: Error message: CLIENT_ERROR: Failed to execute: 'control build' for /var/lib/openshift/***/nodejs
remote:
remote: For more details about the problem, try running the command again with the '--trace' option.
To ssh://***@***.rhcloud.com/~/git/***.git/
   ***  master -> master

我找到了一个解决方案:Deploying basic node.js app to openshift gives errors on git push

npm install npm -gnpm config set ca ""都没有解决问题。

这是我的package.json:

的一部分
  "engines": {
    "node": ">= 0.6.0",
    "npm": ">= 1.0.0"
  },
  "dependencies": {
    "babel-preset-es2015": "^6.5.0",
    "babel-preset-react": "^6.5.0",
    "bower": "^1.7.7",
    "ejs": "2.3.4",
    "grunt": "0.4.5",

任何帮助?

0 个答案:

没有答案