Cita:
Iniciado por Anarko eso solo funciona en MAC y *nix.
También he probado con
serialpor2 pése a que ellos dicen que funciona en W7, siémpre obtengo errores y no instala.
Pese a que ellos dicen
Vale, vale, trabaja en W7, pero cómo se instala?
(ya tengo instalado
gyp)
Incluso descargo el
package.json y siempre obtengo lo mismo:
Código HTML:
E:\HTTP\NJS>npm install serialport2
npm WARN package.json [email protected] No readme data.
npm WARN package.json [email protected] No repository field.
npm http GET https://registry.npmjs.org/serialport2
npm http 304 https://registry.npmjs.org/serialport2
npm http GET https://registry.npmjs.org/bindings/0.3.0
npm http GET https://registry.npmjs.org/async/0.1.18
npm http GET https://registry.npmjs.org/sf/0.1.3
npm http GET https://registry.npmjs.org/optimist
npm http 304 https://registry.npmjs.org/sf/0.1.3
npm http 304 https://registry.npmjs.org/optimist
npm http 304 https://registry.npmjs.org/bindings/0.3.0
npm http 304 https://registry.npmjs.org/async/0.1.18
npm http GET https://registry.npmjs.org/wordwrap
npm http 304 https://registry.npmjs.org/wordwrap
> [email protected] install E:\HTTP\NJS\node_modules\serialport2
> node-gyp rebuild
E:\HTTP\NJS\node_modules\serialport2>node "E:\HTTP\NJS\node_modules\npm\bin\node
-gyp-bin\\..\..\node_modules\node-gyp\bin\node-gyp.js" rebuild
gyp ERR! configure error
gyp ERR! stack Error: Can't find Python executable "python", you can set the PYT
HON env variable.
gyp ERR! stack at failNoPython (E:\HTTP\NJS\node_modules\npm\node_modules\no
de-gyp\lib\configure.js:113:14)
gyp ERR! stack at E:\HTTP\NJS\node_modules\npm\node_modules\node-gyp\lib\con
figure.js:81:11
gyp ERR! stack at Object.oncomplete (fs.js:107:15)
gyp ERR! System Windows_NT 6.1.7600
gyp ERR! command "node" "E:\\HTTP\\NJS\\node_modules\\npm\\node_modules\\node-gy
p\\bin\\node-gyp.js" "rebuild"
gyp ERR! cwd E:\HTTP\NJS\node_modules\serialport2
gyp ERR! node -v v0.10.7
gyp ERR! node-gyp -v v0.9.5
gyp ERR! not ok
npm ERR! weird error 1
npm ERR! not ok code 0
E:\HTTP\NJS>