Since creation ~/.npmusually does not require access, we must find ways to move the npm cache (usually ~/.npm) and the user configuration of npm (usually ~/.npmrc) to accessible folders to get everything going. The following information comes in part from a report I submitted to Redhat on this subject.
.npmrc. ( ) .env $OPENSHIFT_DATA_DIR. :
export NPM_CONFIG_USERCONFIG=$OPENSHIFT_HOMEDIR/app-root/build-dependencies/.npmrc
.npmrc , /. , .npmrc $OPENSHIFT_HOMEDIR/app-root/build-dependencies/. , webhook/ script, :
touch $OPENSHIFT_DATA_DIR/.env
, , .npmrc, /. npm. touch .env .npm $OPENSHIFT_HOMEDIR/app-root/build-dependencies/. :
npm config set cache $OPENSHIFT_HOMEDIR/app-root/build-dependencies/.npm
NPM , NodeJS. .