Closed shihshen closed 9 years ago
It works on my cases, thanks...
I think this can sometimes occur if the build process fails before the build
action_hook can run and move packages.json back.
In this case force redeploy the local repo (which should still have packages.json in the proper place) with rhc deploy master
or whatever branch / sha you want. Or rhc ssh
and move packages.json back: mv "$tmp_package_json""${OPENSHIFT_REPO_DIR}/package.json"
.
Might need to npm install
if you do the latter.
Without this fix,
.openshift/markers/NODEJS_VERSION
is necessary, due to package.json can't be found because it was moved to temp folder before npm install.