Npm install not installing because of node-gyp

后端 未结 6 657
青春惊慌失措
青春惊慌失措 2020-12-15 14:34

I\'m trying to install the filepreview module with npm. But it always gives error. Here is the error:

D:\\Program Files\\nodejs\\P         


        
6条回答
  •  时光说笑
    2020-12-15 15:08

    Simple fix worked for me is:

    I installed Python 3.7 and installed Visual Studio version 2017 from https://my.visualstudio.com/Downloads?q=visual%20studio%202017

    Also installed recommended updates.

    And then I set npm config set msvs_version 2017 --global.

提交回复
热议问题