Kar*_*sar 26 node.js prerender npm
我一直在尝试PreRender.Io
在我的本地机器上安装进行测试.我已经安装了Python 2.7.10.当我输入:
npm install prerender
它给出了一个错误:
C:\PreRender\node_modules\prerender\node_modules\phantom\node_modules\dnode\node
_modules\weak>if not defined npm_config_node_gyp (node "C:\Program Files\nodejs\
node_modules\npm\bin\node-gyp-bin\\..\..\node_modules\node-gyp\bin\node-gyp.js"
rebuild ) else (node rebuild )
Building the projects in this solution one at a time. To enable parallel build,
please add the "/m" switch.
TRACKER : error TRK0005: Failed to locate: "CL.exe". The system cannot find the
file specified. [C:\PreRender\node_modules\prerender\node_modules\phantom\node
_modules\dnode\node_modules\weak\build\weakref.vcxproj]
gyp ERR! build error
gyp ERR! stack Error: `C:\Program Files (x86)\MSBuild\14.0\bin\msbuild.exe` fail
ed with exit code: 1
gyp ERR! stack at ChildProcess.onExit (C:\Program Files\nodejs\node_modules\
npm\node_modules\node-gyp\lib\build.js:269:23)
gyp ERR! stack at ChildProcess.emit (events.js:110:17)
gyp ERR! stack at Process.ChildProcess._handle.onexit (child_process.js:1074
:12)
gyp ERR! System Windows_NT 6.1.7601
Run Code Online (Sandbox Code Playgroud)
我找不到CL.exe,在Google上快速搜索似乎是一些缺少的Visual C++编译器.但是,我尝试安装说VC++ 2008可再发行的x86,但仍然存在同样的问题.
知道什么可能是错的吗?操作系统是Windows 7 64位.
Kar*_*sar 53
我设法解决了这个问题,虽然这很奇怪.老实说,我不确定哪一个完全解决了,因为我做了很多东西.我在我的机器上安装了Visual Studio 2015.以下是我所做的总结:
从VS 2015安装中安装的Visual C++编译器.默认情况下,它是未被攻击的.我认为这就解决了这个问题.
添加了CL.exe (C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin)
和stdlib.h (C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\include)
到PATH环境变量的路径.
npm install prerender
从Developer Command Prompt
Visual Studio的2015年中,在运行管理模式 归档时间: |
|
查看次数: |
21685 次 |
最近记录: |