Recompiling node dependencies using another node version

前端 未结 6 1705
终归单人心
终归单人心 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 03:22

    In my case I was working on a Meteor project for the first time and didn't realize there was difference between meteor npm install and npm install. The former ensures that the correct packages that get installed using using the same npm version that has been tested with your current version of Meteor. My understanding is that this is common with other frameworks such as Electron.

提交回复
热议问题