common.gypi not found error in node.js

前端 未结 2 628
轻奢々
轻奢々 2021-01-08 00:49

I am trying to \"node-gyp configure\" to try to get the ms sql server driver. However, initially it said binding.gypi was missing or something to that effect. Now however it

相关标签:
2条回答
  • 2021-01-08 01:35

    Seems to be a common issue these days.

    You can check https://github.com/TooTallNate/node-gyp/issues/313 and https://github.com/TooTallNate/node-gyp/issues/376 to see if any of these solutions solve your issue.

    Particularly, you can:

    • Remove old dir ~/.node_gyp and run npm install

    • Copy an older version (ex: ~/.node-gyp/0.10.11/) to the complying path.

    • Copy the latest version to the complying path.

    • Chime in this thread to get help.

    0 讨论(0)
  • 2021-01-08 01:41

    I've had luck with:

    rm -rf ~/.node_gyp cd myAwesomeProject npm install npm rebuild

    when switching between node 4 and 0.12.4

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