romgrk / termrk

Terminal for atom, using pty.js & term.js
MIT License
33 stars 7 forks source link

How to install it? #83

Closed VitaliyAT closed 8 years ago

VitaliyAT commented 8 years ago

I can't install it. Atom write me something not clear. No instructions about it. Also, it text below, I see some additional packages. See 'node-gyp', but don't see it in Atom packages. Plus, VCBuild... plus Visual Studio... Should I install other IDE for getting terminal inside Atom?

Installing “Termrk@0.2.5” failed.Hide output…

> pty.js@0.3.0 install C:\Users\99E7~1\AppData\Local\Temp\apm-install-dir-116716-2444-rfl9ki\node_modules\Termrk\node_modules\pty.js
> node-gyp rebuild

C:\Users\99E7~1\AppData\Local\Temp\apm-install-dir-116716-2444-rfl9ki\node_modules\Termrk\node_modules\pty.js>if not defined npm_config_node_gyp (node "C:\Users\��⠫��\AppData\Local\atom\app-1.9.8\resources\app\apm\node_modules\npm\bin\node-gyp-bin\\..\..\node_modules\node-gyp\bin\node-gyp.js" rebuild )  else (node  rebuild ) 
����஥��� �஥�⮢ � �⮬ ��襭�� �� ������. �⮡� �������� ��ࠫ���쭮� ����஥���, �������� ��ࠬ��� "/m".
MSBUILD : error MSB3428: ����㧪� ���������� Visual C++ "VCBuild.exe" ����������. ���ᮡ� ��襭�� �஡����: 1) ��⠭���� .NET Framework 2.0 SDK, 2) ��⠭���� Microsoft Visual Studio 2005 ��� 3) 㪠����� ������ ���������� � ���⥬��� ����, �᫨ ��������� ��⠭����� � ��㣮� �����.  [C:\Users\99E7~1\AppData\Local\Temp\apm-install-dir-116716-2444-rfl9ki\node_modules\Termrk\node_modules\pty.js\build\binding.sln]
MSBUILD : error MSB3428: ����㧪� ���������� Visual C++ "VCBuild.exe" ����������. ���ᮡ� ��襭�� �஡����: 1) ��⠭���� .NET Framework 2.0 SDK, 2) ��⠭���� Microsoft Visual Studio 2005 ��� 3) 㪠����� ������ ���������� � ���⥬��� ����, �᫨ ��������� ��⠭����� � ��㣮� �����.  [C:\Users\99E7~1\AppData\Local\Temp\apm-install-dir-116716-2444-rfl9ki\node_modules\Termrk\node_modules\pty.js\build\binding.sln]

gypnpm ERR! Windows_NT 6.1.7601
npm ERR! argv "C:\\Users\\Виталий\\AppData\\Local\\atom\\app-1.9.8\\resources\\app\\apm\\bin\\node.exe" "C:\\Users\\Виталий\\AppData\\Local\\atom\\app-1.9.8\\resources\\app\\apm\\node_modules\\npm\\bin\\npm-cli.js" "--globalconfig" "C:\\Users\\Виталий\\.atom\\.apm\\.apmrc" "--userconfig" "C:\\Users\\Виталий\\.atom\\.apmrc" "install" "C:\\Users\\99E7~1\\AppData\\Local\\Temp\\d-116716-2444-5iz7jd\\package.tgz" "--target=0.37.8" "--arch=ia32"
npm ERR! node v0.10.40
npm ERR! npm  v2.13.3
npm ERR! code ELIFECYCLE

npm ERR! pty.js@0.3.0 install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the pty.js@0.3.0 install script 'node-gyp rebuild'.
npm ERR! This is most likely a problem with the pty.js package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     node-gyp rebuild
npm ERR! You can get their info via:
npm ERR!     npm owner ls pty.js
npm ERR! There is likely additional logging output above.
romgrk commented 8 years ago

The thing is windows has no tty as it exists in nixes. (as far as I know). To overcome that limitation, Termrk needs pty.js, a C++ NodeJS module, which will run its native magic and provide TTYs. But to compile C++ in windows, you need a compiler; default will be VCBuild and friends. That is why you see the Visual C++ in the output. As mentionned in the log, this is an issue with the pty.js module. I'd recommend opening an issue there. Though before make sure you have everything installed properly (Frameworks, compiler, etc)

An alternative is also to look for precompiled binaries for windows. I think there might be some versions around the internet.

(Another alternative is also to switch to Linux, if applicable)