NPM install fails with node-gyp

前端 未结 9 536
闹比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:58

    For Windows 8 or 10:

    Assuming node and npm installed already.

    My node and npm version (At the time of writing this answer) :

    node : 8.9.4

    npm : 5.6.0

    1. First install python 2.x

    2. Make sure it is available on path

    3. Install Visual Studio Installer

    4. After installation, run it

    5. A new interface will open it where you can select various options.
    6. Now select Build Tools for Visual Studio 2017 from the available options and install it. You don't need to install Visual Studio.

    After the installation it should work perfectly.

提交回复
热议问题