Próbowałem zainstalować PreRender.Io
na moim komputerze lokalnym do testowania. Zainstalowałem Python 2.7.10. Po wpisaniu:nie można zainstalować prerender za pomocą npm - "Nie można zlokalizować: CL.exe"
npm install prerender
To daje błąd:
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
nie mogłem zlokalizować cl.exe i szybkie wyszukiwanie w Google wydaje się być nieco brakuje kompilator Visual C++. Próbowałem jednak zainstalować redystrybuowalny x86 VC++ 2008, ale wciąż ten sam problem.
Każdy pomysł, co może być nie tak? System operacyjny to Windows 7 64-bitowy.
Nie wiem, czy jest to ten sam problem, czy nie: http://stackoverflow.com/questions/32424622/installing-ws-with-npm-causes-error-with-node-gyp –
Nie naprawdę, jednak w końcu udało mi się go rozwiązać. Opublikuję odpowiedź na ten temat, na wypadek gdyby ktoś natknął się na ten sam problem. –