node.js - Errors installing pty.js (node) on OS X -
I have gone into an unnecessary problem when trying to use pty.js node:
If I run I have a node-jeep installed which is running OS X with the Xcode + Commandline installed. I'm not sure where the problem is? Dependence can be. I have a separate node package The problem is that a header file is configured incorrectly for : This way you can fix the problem in Good luck! npm install pty.js I get this error:
& gt; Node-jeep result CGX (target) release / ozjetajit / PTI / SCR / UNIX / PTO./src/unix/pty.cc:487:10: error: unauthorized identifier 'OpenTy' returns OpenTytes use Amaster, aslave , Name, (termios *) termp, (winsize *) winp); ^ ../src/unix/pty.ccration33:10: Error: unknown identifier using 'forkpty' return forkpty (amaster, name, (termios *) termp, (winsize *) winp); ^ 2 Generating errors: *** [release / obj.target / pty / src / unix / pty.o] Error 1 Gp ERR! Create error gipple ERR! Stack error: `Devo` in exit code failed: 2GIP ERR! Stack in hair process XXit (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/build.jsailand67:23) gyp ERR! Stack on childProcess.emit (events.js: 98: 17) gyp ERR! On Stack Process. Child Process._hand.onexit (child_process.js: 809: 12) gyp ERR! System Darwin 13.3.0 GEP ERR! Command "node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild" gyp ERR! CWD / User / Autovite / Developer / Project / Web / Hachaway / Node_Module / Rick.JS gyp ERR! Node-v v0.10.29 gip err! Node-jeep-v v0.13.1 gep err! Not right NPM ERR! Pty.js@0.2.4 installs: 'Node-GIP reconstruction' NMP ERR! Exit status 1 NMR ERR! NPM ERR! Pty.js@0.2.4 installs failed on the script NPM ERR! This is most likely the pty.js package, NPM ERR! NPM ERR with NPM itself! Tell the author that it fails on your system: NPM ERR! Node-jeep NPM ERR rebuild! You can get your information: NPM ERR! NPM owner ls pty.js NMP ERR! Upward additional logging output is likely to occur. NPM ERR! System Darwin 13.3.0 NMP ERR! Command "node" "/ usr / local / bin / npm" "install" "pty.js" npm ERR! CWD / user / otiswright / developer / projects / web / hatchway npm ERR! Node-V v0.10.29 NMP ERR! NPM-V 1.5.0-alpha-4 NPM ERR! Code ELIFECYCLE NPM ERR! NPM ERR! Additional logging details can be found in the following: NPM ERR! / Usars / totewite / developer / project / web / hachaway / nm-debug Log NMP ERR! The code is not valid 0
devtools-terminal .
OSX .
mkdir /tmp/pty.js
git Clone https://github.com/chjj/pty.js.git/tmp/pty.js
vi /tmp/pty.js/src/unix/pty Cc
#include & lt; Use.h & gt; with
#include "/usr/include/util.h"
NPM install -g /tmp/pty.js < / Li>
npm install -g devtools-terminal should work.
pty.js and use your local copy as dependency for that package. You installed
Comments
Post a Comment