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

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

    I think delete this directory and clean the cache of npm is better:

    rm -rf ~/.node-gyp/
    rm -r node_modules/.bin/;
    rm -r build/
    npm cache clean
    

    and you can test

    npm install -g node-gyp
    

    and

    npm install -g node-pre-gyp
    

    finally:

    npm install 
    

提交回复
热议问题