node-gyp compiling against wrong NODE_MODULE_VERSION

前端 未结 1 1480
陌清茗
陌清茗 2021-02-19 03:07

I\'ve set up a Gitlab CI pipeline which is compiling a native nodejs addon in the first stage and running some tests with it in the second one. The job is running on the same Do

1条回答
  •  星月不相逢
    2021-02-19 03:58

    Maybe compilation is not done because and existing module. Try using rebuild and then clean for the old modules.

    node-gyp configure --target=$(node --version)
    node-gyp rebuild
    node-gyp clean
    

    hope this help

    0 讨论(0)
提交回复
热议问题