could not install prerender using npm - “Failed to locate: CL.exe”

后端 未结 3 1918
时光说笑
时光说笑 2020-12-29 04:19

I\'ve been trying to install PreRender.Io on my local machine to test. I\'ve installed Python 2.7.10. When I type:

npm install prerender<

3条回答
  •  谎友^
    谎友^ (楼主)
    2020-12-29 04:32

    I've managed to solve the problem, although it was quite strange. Honestly, I'm not sure which one solved it completely as I've done quite some stuff. I had installed Visual Studio 2015 on my machine. Below is a summary of what I've done:

    • Installed Visual C++ Compiler, from the VS 2015 installation. By default it was unticked. I think this is what fixed the issue.

    • Added the path where CL.exe (C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin) and stdlib.h (C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\include) are located to the PATH environment variable.

    • Executed the npm install prerender from the Developer Command Prompt in of Visual Studio 2015, running in Administrator mode

提交回复
热议问题