Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

npm -g install terminalgpt failed on Mac #80

Closed
JayZhao opened this issue Nov 9, 2023 · 1 comment · Fixed by #82
Closed

npm -g install terminalgpt failed on Mac #80

JayZhao opened this issue Nov 9, 2023 · 1 comment · Fixed by #82
Labels
bug Something isn't working

Comments

@JayZhao
Copy link

JayZhao commented Nov 9, 2023

% npm -g install terminalgpt
npm ERR! code 2
npm ERR! path /opt/homebrew/lib/node_modules/terminalgpt
npm ERR! command failed
npm ERR! command sh -c tsc
npm ERR! src/utils.ts(17,5): error TS2322: Type 'TerminalRenderer' is not assignable to type 'Renderer'.
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 | undefined'.
npm ERR! Type 'null' is not assignable to type 'Renderer | undefined'.

npm ERR! A complete log of this run can be found in: /Users/zhaojianyin/.npm/_logs/2023-11-09T13_20_38_483Z-debug-0.log[
installlog.log
](url)

@JayZhao JayZhao added the bug Something isn't working label Nov 9, 2023
@1llyaa
Copy link

1llyaa commented Nov 13, 2023

Same issue but on archlinux
npm install -g terminalgpt@latest

npm ERR! code 2
npm ERR! path /home/illyam/.nvm/versions/node/v20.9.0/lib/node_modules/terminalgpt
npm ERR! command failed
npm ERR! command sh -c tsc
npm ERR! src/utils.ts(17,5): error TS2322: Type 'TerminalRenderer' is not assignable to type 'Renderer'.
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 | undefined'.
npm ERR! Type 'null' is not assignable to type 'Renderer | undefined'.

npm ERR! A complete log of this run can be found in: /home/illyam/.npm/_logs/2023-11-13T09_04_13_367Z-debug-0.log

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants