2016-06-01 18 views
0

をOpenshiftするSailsJSアプリを展開することができません私は前方に移動するために、任意のポインタは大歓迎ですOpenshiftSailsJSnpm ERR! EEXIST -

に新しいです。

私は単純なSailsアプリケーションを作成しました。 sails new myapp、およびOpenshift展開命令package.jsonhere

package.json

を追った私は私のアプリを起動するnode app.jssails liftの両方を試してみました。

"scripts": { 
    "debug": "node debug app.js", 
    "start": "node app.js" 
    }, 
    "dependencies": { 
    "ejs": "2.3.4", 
    "grunt": "0.4.5", 
    "grunt-bower": "^0.21.2", 
    "grunt-bower-task": "^0.3.4", 
    "grunt-cli": "^1.2.0", 
    "grunt-contrib-clean": "0.6.0", 
    "grunt-contrib-coffee": "0.13.0", 
    "grunt-contrib-concat": "0.5.1", 
    "grunt-contrib-copy": "0.5.0", 
    "grunt-contrib-cssmin": "0.9.0", 
    "grunt-contrib-jst": "0.6.0", 
    "grunt-contrib-less": "1.1.0", 
    "grunt-contrib-uglify": "0.7.0", 
    "grunt-contrib-watch": "0.5.3", 
    "grunt-sails-linker": "~0.10.1", 
    "grunt-sync": "0.2.4", 
    "include-all": "~0.1.6", 
    "rc": "1.0.1", 
    "sails": "~0.12.3", 
    "sails-disk": "~0.10.9" 
    }, 
    "name": "myapp", 
    "private": true, 
    "version": "0.0.0", 
    "description": "a Sails application", 
    "keywords": [], 
    "main": "app.js", 
    "repository": { 
    "type": "git", 
    "url": "git://github.com/joel/myapp.git" 
    }, 
    "author": "joel", 
    "license": "" 
} 

私は--traceで実行しようとすべきか、コマンド

remote: npm ERR! EEXIST, open '/var/lib/openshift/574f48527628e1bce8000273/.npm/68d71095-273-npm-lodash-2-4-2-package-tgz.lock' 
remote: File exists: /var/lib/openshift/574f48527628e1bce8000273/.npm/68d71095-273-npm-lodash-2-4-2-package-tgz.lock 
remote: Move it away, and try again. 
remote: 
remote: npm ERR! System Linux 2.6.32-573.12.1.el6.x86_64 
remote: npm ERR! command "node" "/opt/rh/nodejs010/root/usr/bin/npm" "install" "-d" 
remote: npm ERR! cwd /var/lib/openshift/574f48527628e1bce8000273/app-root/runtime/repo 
remote: npm ERR! node -v v0.10.35 
remote: npm ERR! npm -v 1.4.28 
remote: npm ERR! path /var/lib/openshift/574f48527628e1bce8000273/.npm/68d71095-273-npm-lodash-2-4-2-package-tgz.lock 
remote: npm ERR! code EEXIST 
remote: npm ERR! errno 47 
remote: npm info preuninstall [email protected] 
remote: npm info uninstall [email protected] 
remote: npm info postuninstall [email protected] 
remote: npm info preuninstall [email protected] 
remote: npm info uninstall [email protected] 
remote: npm info postuninstall [email protected] 
remote: npm info preuninstall [email protected] 
remote: npm info uninstall [email protected] 
remote: npm info postuninstall [email protected] 
remote: npm info preuninstall [email protected] 
remote: npm info uninstall [email protected] 
remote: npm info postuninstall [email protected] 
remote: npm info preuninstall [email protected] 
remote: npm info uninstall [email protected] 
remote: npm info postuninstall [email protected] 
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/574f48527628e1bce8000273/nodejs 
remote: 
remote: For more details about the problem, try running the command again with the '--trace' option. 
To ssh://[email protected]/~/git/myapp.git 
    cdc73e6..df77e95 HEAD -> master 

openshift Gitのプッシュ?

RHCテール-a myappの

DEBUG: Starting child process with 'node app.js' 
DEBUG: Sending SIGTERM to child... 
DEBUG: Running node-supervisor with 
DEBUG: program 'app.js' 
DEBUG: --watch '/var/lib/openshift/574f48527628e1bce8000273/app-root/data/.nodewatch' 
DEBUG: --ignore 'undefined' 
DEBUG: --extensions 'node|js|coffee' 
DEBUG: --exec 'node' 
DEBUG: Starting child process with 'node app.js' 
DEBUG: Watching directory '/var/lib/openshift/574f48527628e1bce8000273/app-root/data/.nodewatch' for changes. 
To run an app using `node app.js`, you usually need to have a version of `sails` installed in the same directory as your app. 
To do that, run `npm install sails` 
Alternatively, if you have sails installed globally (i.e. you did `npm install -g sails`), you can use `sails lift`. 
When you run `sails lift`, your app will still use a local `./node_modules/sails` dependency if it exists, 
but if it doesn't, the app will run with the global sails instead! 
DEBUG: Program node app.js exited with code 0 
DEBUG: Starting child process with 'node app.js' 
To run an app using `node app.js`, you usually need to have a version of `sails` installed in the same directory as your app. 
To do that, run `npm install sails` 
Alternatively, if you have sails installed globally (i.e. you did `npm install -g sails`), you can use `sails lift`. 
When you run `sails lift`, your app will still use a local `./node_modules/sails` dependency if it exists, 
but if it doesn't, the app will run with the global sails instead! 
DEBUG: Program node app.js exited with code 0 

答えて

0

はブロッカーは、ように見えた:

remote: File exists: /var/lib/openshift/574f48527628e1bce8000273/.npm/68d71095-273-npm-lodash-2-4-2-package-tgz.lock 

これらの手順は、私は再び展開し、ローカルマシンから順方向

rhc ssh -a myapp 
cd .npm 
rm 68d71095-273-npm* 

動かすことができます

git push 
関連する問題