GYP ERR! build error. stack Error: 'make' failed with exit code 2

后端 未结 11 1482
自闭症患者
自闭症患者 2021-01-07 16:30

I am currently working on a nodejs web application I am having trouble pushing the application online with cloud foundry. I did some research on the errors and it seems that

11条回答
  •  无人及你
    2021-01-07 16:41

    CentOS 6 users

    Node 10+ requires GCC4.9. And apparently CentOS 6 doesn't have it. You can use these commands before npm install as a workaround (tested with Node 11 NPM 6).

    yum install devtoolset-7
    source scl_source enable devtoolset-7
    

    Source: https://github.com/lovell/sharp/issues/1283

提交回复
热议问题