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

后端 未结 11 1458
自闭症患者
自闭症患者 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:54

    In our case (since make failed), this issue could be resolved by installing the build / development tools:

    Ubuntu / Debian:

    apt-get install -y build-essential
    

    CentOS:

    yum install gcc gcc-c++ make 
    

    Fedora 23 and above:

    dnf install @development-tools
    

    If this is not the solution, you might want to try to upgrade or downgrade node, remove package-lock.json and the node_modules folder, and then re-run npm install.

提交回复
热议问题