How can I invoke npm on heroku command line (to install bower components)?

后端 未结 4 2128
清酒与你
清酒与你 2020-12-13 04:33

Bower is for client side Javascript what npm is for the server side and reads a component.json file to recognize dependencies that should be fetched at deploy t

4条回答
  •  失恋的感觉
    2020-12-13 05:31

    You can use bower directly like this

    "dependencies": {
        "bower": "^1.7.9"
    },
    "scripts": {
        "postinstall": "sudo bower install --allow-root "
    }
    

提交回复
热议问题