Unable to install bower on Openshift

前端 未结 3 1594
长情又很酷
长情又很酷 2021-02-09 05:25

I am unable to install bower on Openshift. I keep on getting errors like

remote: npm ERR! Error: ENOENT, lstat \'/var/lib/openshift/537xxxxcd/app-root/runtime/re         


        
3条回答
  •  醉梦人生
    2021-02-09 06:04

    This suggests the following approach:

    1. Add dependency "bower": "latest" to package.json
    2. Add script for postinstall:

      "scripts": {  
          ... 
          "postinstall": "HOME=$OPENSHIFT_REPO_DIR bower install || bower install"  
      },
      

提交回复
热议问题