cocktailpeanut / dalai

The simplest way to run LLaMA on your local machine
https://cocktailpeanut.github.io/dalai
13.09k stars 1.43k forks source link

On Mac OS, I got this error #468

Open parolkar opened 9 months ago

parolkar commented 9 months ago

Hi There,

On my Mac OS, the npx dalai command was returning nothing:

bash-3.2$ npx dalai alpaca install 7B
bash-3.2$ npx dalai llama install 7B
bash-3.2$ npx dalai serve
bash-3.2$ npx dalai 
bash-3.2$ npx dalai --verbose

then I saw this error:


bash-3.2$ node bin/cli.js serve
node:internal/modules/cjs/loader:1051
  throw err;
  ^

Error: Cannot find module 'yargs/yargs'

Fixed it locally by running

npm init
 npm i yargs --save

Hopefully it helps others.