Recompiling node dependencies using another node version

前端 未结 6 1645
终归单人心
终归单人心 2021-01-03 02:38

I want to install some dependencies and in this case installing node-pty. But when I run it they give me this error:

Error: The module \'/home/dev/Do

6条回答
  •  隐瞒了意图╮
    2021-01-03 02:59

    In case anyone stumbles over this using WebStorm:

    The terminal window in WebStorm uses system settings for node, but the run configuration could use a different version, so npm install in the terminal could lead to this error. Just change the node version in your run configuration and it should be fine.

提交回复
热议问题