Unable to install bower on Openshift

前端 未结 3 1604
长情又很酷
长情又很酷 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:14

    well, for each time you need to use bower install, you can use export HOME=$HOME/app-root/runtime/repo in the RHC tool, and then into the folder './app-root/repo' you can use the bower install, if bower command is not available, go to folder './nodejs' and do npm install bower.

    Then, in order with RHC tool (this worked perfect to me):

    • 1 - rhc ssh proyect-name
    • 2 - cd nodejs
    • 3 - npm install bower
    • 4 - cd ..
    • 5 - export HOME=$HOME/app-root/runtime/repo
    • 6 - cd app-root/repo
    • 7 - bower install

    done! good luck with your projects

提交回复
热议问题