NPM install fails with node-gyp

前端 未结 9 696
闹比i
闹比i 2021-01-31 04:09

We are having problems running \"npm install\" on our project. A certain file cannot be found :

fatal error C1083: Cannot open include file: \'w         


        
9条回答
  •  情书的邮戳
    2021-01-31 04:34

    1. Install VC++ Build Tools Technical Preview [Windows 7 only] requires .NET Framework 4.5.1

    2. Install Python 2.7, and add it to your PATH, npm config set python python2.7

    3. Launch cmd, npm config set msvs_version 2015 --global (this is instead of npm install [package name] --msvs_version=2015 every time.)

    4.SO MUCH npm install :tada:

提交回复
热议问题