Ho provato a installare PreRender.Io
sul mio computer locale per testare. Ho installato Python 2.7.10. Quando digito:Impossibile installare prerender utilizzando npm - "Impossibile trovare: CL.exe"
npm install prerender
dà un errore:
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
non ho potuto individuare Cl.exe, e una rapida ricerca su Google sembra essere un po 'di compilatore C++ visivo manca. Tuttavia, ho provato a installare VC++ 2008 ridistribuibile x86, ma ancora lo stesso problema.
Qualche idea di cosa potrebbe essere sbagliato? Il sistema operativo è Windows 7 a 64 bit.
Non sono sicuro se questo è lo stesso problema o no: http://stackoverflow.com/questions/32424622/installing-ws-with-npm-causes-error-with-node-gyp –
Non davvero, comunque sono riuscito a risolverlo finalmente. Pubblicherò una risposta a riguardo, nel caso in cui qualcuno inciampi sullo stesso problema –