Giter VIP home page Giter VIP logo

Comments (5)

lucasgooliveira avatar lucasgooliveira commented on May 25, 2024

Hi @calebgibney , can you give the logs of the error ? It would help a lot , as I don't have a Windows machine.

from terminalgpt.

calebgibney avatar calebgibney commented on May 25, 2024

2023-10-01T15_44_41_224Z-debug-0.log

@lucasgooliveira thank you very much for willingness to investigate!

from terminalgpt.

squirrelroad avatar squirrelroad commented on May 25, 2024

The above is because typescript is not installed yet, so it could not call tsc to compile.
Maybe adding typescript to the dependency helps?

Describe the bug
Compile error -- pasted below

To Reproduce

  • have nodejs installed
    npm install -g terminalgpt

Expected behavior
npm installed without issues

Desktop (please complete the following information):

  • OS: Windows 10
  • Terminnal : cwd

Additional context
Add any other context about the problem here.

npm ERR! code 2
npm ERR! path C:\Users\squirrelroad\.conda\envs\ter\node_modules\terminalgpt
npm ERR! command failed
npm ERR! command C:\windows\system32\cmd.exe /d /s /c tsc
npm ERR! src/utils.ts(17,5): error TS2322: Type 'TerminalRenderer' is not assignable to type 'Renderer<never>'.
npm ERR!   The types of 'options.renderer' are incompatible between these types.
npm ERR!     Type 'Omit<_Renderer, "constructor"> | null | undefined' is not assignable to type 'Renderer<never> | undefined'.
npm ERR!       Type 'null' is not assignable to type 'Renderer<never> | undefined'.

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\squirrelroad\AppData\Local\npm-cache\_logs\2023-10-05T09_13_08_580Z-debug-0.log

I think types/marked-terminal is not compatible with Windows? if there's alternative to test by temporarily removing this package?

Kind regards,

from terminalgpt.

calebgibney avatar calebgibney commented on May 25, 2024

I hope this helps so after installing typescript the main install command yields new error:
2023-10-05T18_21_46_573Z-debug-0.log

image

from terminalgpt.

lucasgooliveira avatar lucasgooliveira commented on May 25, 2024

I've re-tested and found the error, I've update the library to version 1.7.3 and hopefully you'll be able to install it again.
#82

from terminalgpt.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.