BuilderIO / ai-shell

A CLI that converts natural language to shell commands.
MIT License
3.92k stars 239 forks source link

Unable to install using Node v18 #65

Closed cvp2004 closed 1 year ago

qihangnet commented 1 year ago

Are you sure your installation command is the following:

npm install -g @builder.io/ai-shell

and not

npm install -g ai-shell

or something else?

cvp2004 commented 1 year ago

Yes, I used "npm install -g @builder.io/ai-shell" command

cvp2004 commented 1 year ago

PS C:\Users\cpara> npm install -g @builder.io/ai-shell ParserError: Line | 1 | npm install -g @builder.io/ai-shell | ~~~~ | The splatting operator '@' cannot be used to reference variables in an expression. '@builder' can be used only | as an argument to a command. To reference variables in an expression use '$builder'. PS C:\Users\cpara>

cvp2004 commented 1 year ago

PS C:\Users\cpara> npm install -g builder.io/ai-shell npm ERR! code 128 npm ERR! An unknown git error occurred npm ERR! command git --no-replace-objects ls-remote ssh://git@github.com/builder.io/ai-shell.git npm ERR! git@github.com: Permission denied (publickey). npm ERR! fatal: Could not read from remote repository. npm ERR! npm ERR! Please make sure you have the correct access rights npm ERR! and the repository exists.

npm ERR! A complete log of this run can be found in: npm ERR! C:\Users\cpara\AppData\Local\npm-cache_logs\2023-05-08T14_26_08_863Z-debug-0.log PS C:\Users\cpara>

AlaEddineBoughanmmi commented 1 year ago

You need to escape the @ character. try this:

npm install -g '@builder.io/ai-shell'
cvp2004 commented 1 year ago

Thank you very much.

The solution worked.

SaidTorres3 commented 8 months ago

Also, it works if you run it in CMD instead of PowerShell.